Back to index

easystroke  0.5.5.1
Classes | Public Member Functions | Protected Member Functions | Private Attributes
Trace Class Reference

#include <trace.h>

Inheritance diagram for Trace:
Inheritance graph
[legend]
Collaboration diagram for Trace:
Collaboration graph
[legend]

List of all members.

Classes

struct  Point

Public Member Functions

 Trace ()
void draw (Point p)
void start (Point p)
void end ()
virtual void timeout ()
virtual ~Trace ()

Protected Member Functions

virtual void draw (Point p, Point q)=0
virtual void start_ ()=0
virtual void end_ ()=0

Private Attributes

Point last
bool active

Detailed Description

Definition at line 26 of file trace.h.


Class Documentation

struct Trace::Point

Definition at line 28 of file trace.h.

Class Members
float x
float y

Constructor & Destructor Documentation

Trace::Trace ( ) [inline]

Definition at line 37 of file trace.h.

: active(false) {}
virtual Trace::~Trace ( ) [inline, virtual]

Definition at line 42 of file trace.h.

{}

Member Function Documentation

virtual void Trace::draw ( Point  p,
Point  q 
) [protected, pure virtual]

Implemented in Trivial, Composite, Fire, Annotate, Water, and Shape.

void Trace::draw ( Point  p) [inline]

Definition at line 38 of file trace.h.

{ draw(last, p); last = p; }

Here is the call graph for this function:

Here is the caller graph for this function:

void Trace::end ( )

Definition at line 781 of file main.cc.

                {
       if (!active)
              return;
       active = false;
       XFixesShowCursor(dpy, ROOT);
       end_();
}

Here is the call graph for this function:

virtual void Trace::end_ ( ) [protected, pure virtual]

Implemented in Trivial, Composite, Fire, Annotate, Water, and Shape.

Here is the caller graph for this function:

Definition at line 774 of file main.cc.

                              {
       last = p;
       active = true;
       XFixesHideCursor(dpy, ROOT);
       start_();
}

Here is the call graph for this function:

virtual void Trace::start_ ( ) [protected, pure virtual]

Implemented in Trivial, Composite, Fire, Annotate, Water, and Shape.

Here is the caller graph for this function:

virtual void Trace::timeout ( ) [inline, virtual]

Reimplemented in Fire, and Shape.

Definition at line 41 of file trace.h.

{}

Member Data Documentation

bool Trace::active [private]

Definition at line 31 of file trace.h.

Point Trace::last [private]

Definition at line 30 of file trace.h.


The documentation for this class was generated from the following files: