X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/28c82d8b28ffaae83acf74f348ddb7f864d0ce58..cca9f97b05c31a51ce886d5b14db93aa741cd95e:/src/viklayer.h diff --git a/src/viklayer.h b/src/viklayer.h index ca6788c8..0225fe5e 100644 --- a/src/viklayer.h +++ b/src/viklayer.h @@ -95,6 +95,7 @@ typedef enum { typedef gpointer (*VikToolConstructorFunc) (VikWindow *, VikViewport *); typedef void (*VikToolDestructorFunc) (gpointer); typedef VikLayerToolFuncStatus (*VikToolMouseFunc) (VikLayer *, GdkEventButton *, gpointer); +typedef VikLayerToolFuncStatus (*VikToolMouseMoveFunc) (VikLayer *, GdkEventMotion *, gpointer); typedef void (*VikToolActivationFunc) (VikLayer *, gpointer); typedef gboolean (*VikToolKeyFunc) (VikLayer *, GdkEventKey *, gpointer); @@ -106,10 +107,12 @@ struct _VikToolInterface { VikToolActivationFunc activate; VikToolActivationFunc deactivate; VikToolMouseFunc click; - VikToolMouseFunc move; + VikToolMouseMoveFunc move; VikToolMouseFunc release; VikToolKeyFunc key_press; /* return FALSE if we don't use the key press -- should return AFLSE most of the time if we want any shortcuts / UI keybindings to work! use sparingly. */ - const GdkPixdata *cursor; + GdkCursorType cursor_type; + const GdkPixdata *cursor_data; + const GdkCursor *cursor; }; /* Parameters (for I/O and Properties) */ @@ -280,11 +283,4 @@ VikLayer *vik_layer_get_and_reset_trigger(); void vik_layer_emit_update_secondary ( VikLayer *vl ); /* to be called by aggregate layer only. doesn't set the trigger */ void vik_layer_emit_update_although_invisible ( VikLayer *vl ); -GdkCursor *vik_layer_get_tool_cursor ( gint layer_id, gint tool_id ); -void vik_layer_cursors_init(); -void vik_layer_cursors_uninit(); - - - - #endif