Logo Search packages:      
Sourcecode: inkscape version File versions

SPEventContext Class Reference

#include <event-context.h>

Inheritance diagram for SPEventContext:

SPPencilContext SPPencilContext SPPenContext SPPenContext SPPencilContext SPPencilContext SPPenContext SPPenContext

List of all members.

Detailed Description

Base class for Event processors.

SPEventContext is an abstract base class of all tools. As the name indicates, event context implementations process UI events (mouse movements and keypresses) and take actions (like creating or modifying objects). There is one event context implementation for each tool, plus few abstract base classes. Writing a new tool involves subclassing SPEventContext.

Definition at line 91 of file event-context.h.

Public Member Functions

Inkscape::MessageContextdefaultMessageContext ()
Inkscape::MessageContextdefaultMessageContext ()
void enableGrDrag (bool enable=true)
void enableGrDrag (bool enable=true)
void enableSelectionCue (bool enable=true)
void enableSelectionCue (bool enable=true)
GrDragget_drag ()
GrDragget_drag ()

Public Attributes

DelayedSnapEvent * _delayed_snap_event
Inkscape::SelCue * _selcue
bool _snap_window_open
GdkCursor * cursor
gchar const *const * cursor_shape
gint hot_x
gint hot_y
 indicates the cursor's hot spot
unsigned key
 Desktop eventcontext stack.
ShapeEditor * shape_editor
bool space_panning
gint tolerance
bool within_tolerance
 are we still within tolerance of origin
gint xp
gint yp
 where drag started

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

Generated by  Doxygen 1.6.0   Back to index