Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPEventContext Class Reference

#include <event-context.h>

Inheritance diagram for SPEventContext:

SPPencilContext 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 90 of file event-context.h.


Public Member Functions

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

Public Attributes

DelayedSnapEvent * _delayed_snap_event
GrDrag_grdrag
Inkscape::MessageContext_message_context
Inkscape::SelCue * _selcue
GdkCursor * cursor
gchar const *const * cursor_shape
SPDesktopdesktop
gint hot_x
gint hot_y
 indicates the cursor's hot spot
SPItemitem_to_select
unsigned key
SPEventContextnext
 Desktop eventcontext stack.
Inkscape::Preferences::Observerpref_observer
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