Back to index

easystroke  0.5.5.1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
Handler Class Reference
Inheritance diagram for Handler:
Inheritance graph
[legend]
Collaboration diagram for Handler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Handler ()
Handlertop ()
virtual void motion (RTriple e)
virtual void raw_motion (RTriple e, bool, bool)
virtual void press (guint b, RTriple e)
virtual void release (guint b, RTriple e)
virtual void press_master (guint b, Time t)
virtual void pressure ()
virtual void proximity_out ()
virtual void pong ()
void replace_child (Handler *c)
virtual void init ()
virtual ~Handler ()
virtual std::string name ()=0
virtual Grabber::State grab_mode ()=0

Static Public Member Functions

static bool idle ()

Public Attributes

Handlerparent

Protected Attributes

Handlerchild

Detailed Description

Definition at line 123 of file main.cc.


Constructor & Destructor Documentation

Handler::Handler ( ) [inline]

Definition at line 128 of file main.cc.

: child(0), parent(0) {}
virtual Handler::~Handler ( ) [inline, virtual]

Definition at line 168 of file main.cc.

                          {
              if (child)
                     delete child;
       }

Member Function Documentation

virtual Grabber::State Handler::grab_mode ( ) [pure virtual]
static bool Handler::idle ( ) [inline, static]

Definition at line 135 of file main.cc.

{ return !handler->child; }

Here is the caller graph for this function:

virtual void Handler::init ( ) [inline, virtual]

Reimplemented in IdleHandler, StrokeHandler, and AdvancedHandler.

Definition at line 167 of file main.cc.

{}

Here is the caller graph for this function:

virtual void Handler::motion ( RTriple  e) [inline, virtual]

Reimplemented in StrokeHandler, AdvancedHandler, ButtonHandler, and IgnoreHandler.

Definition at line 137 of file main.cc.

{}
virtual std::string Handler::name ( ) [pure virtual]
virtual void Handler::pong ( ) [inline, virtual]

Reimplemented in WaitForPongHandler.

Definition at line 144 of file main.cc.

{}
virtual void Handler::press ( guint  b,
RTriple  e 
) [inline, virtual]

Reimplemented in IdleHandler, StrokeHandler, AdvancedHandler, AdvancedStrokeActionHandler, ScrollAdvancedHandler, ButtonHandler, and IgnoreHandler.

Definition at line 139 of file main.cc.

{}

Here is the caller graph for this function:

virtual void Handler::press_master ( guint  b,
Time  t 
) [inline, virtual]

Reimplemented in SelectHandler, and ScrollHandler.

Definition at line 141 of file main.cc.

{}
virtual void Handler::pressure ( ) [inline, virtual]

Reimplemented in StrokeHandler.

Definition at line 142 of file main.cc.

{}
virtual void Handler::proximity_out ( ) [inline, virtual]

Reimplemented in ScrollHandler.

Definition at line 143 of file main.cc.

{}
virtual void Handler::raw_motion ( RTriple  e,
bool  ,
bool   
) [inline, virtual]

Reimplemented in ScrollHandler, and AbstractScrollHandler.

Definition at line 138 of file main.cc.

{}
virtual void Handler::release ( guint  b,
RTriple  e 
) [inline, virtual]

Reimplemented in StrokeHandler, AdvancedHandler, AdvancedStrokeActionHandler, ScrollAdvancedHandler, ScrollHandler, ButtonHandler, and IgnoreHandler.

Definition at line 140 of file main.cc.

{}

Here is the caller graph for this function:

void Handler::replace_child ( Handler c) [inline]

Definition at line 145 of file main.cc.

                                      {
              if (child)
                     delete child;
              child = c;
              if (child)
                     child->parent = this;
              if (verbosity >= 2) {
                     std::string stack;
                     for (Handler *h = child ? child : this; h; h=h->parent) {
                            stack = h->name() + " " + stack;
                     }
                     printf("New event handling stack: %s\n", stack.c_str());
              }
              Handler *new_handler = child ? child : this;
              grabber->grab(new_handler->grab_mode());
              if (child)
                     child->init();
              while (queued.size() && Handler::idle()) {
                     (*queued.begin())();
                     queued.pop_front();
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Handler* Handler::top ( ) [inline]

Definition at line 129 of file main.cc.

                      {
              if (child)
                     return child->top();
              else
                     return this;
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Handler* Handler::child [protected]

Definition at line 125 of file main.cc.

Definition at line 127 of file main.cc.


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