3 #define MT_MAX_CURSORS 10
5 /* we don't want to break any unrelated code */
6 #define m_createStroke m_createStrokes[0]
7 #define m_moveStroke m_moveStrokes[0]
15 typedef struct t_draw_event DrawEvent
;
26 typedef struct t_drag_event DragEvent
;
34 typedef struct t_pan_event PanEvent
;
43 typedef struct t_zoom_event ZoomEvent
;
46 struct t_delete_event
{
51 typedef struct t_delete_event DeleteEvent
;
56 /* SDL_Events with one of the following have a DrawEvent as data1 */
57 SDL_NP_START_STROKE
= SDL_USEREVENT
+1,
66 /* SDL_Events with one of the following types have a DragEvent as data1 */
71 /* SDL_Events with one of the following types have a PanEvent as data1 */
74 /* SDL_Events with one of the following types have a ZoomEvent as data1 */
77 /* SDL_Events with one of the following types have a DeletEvent as data1 */
82 void queueStartStrokeEvent(int cursor_id
, int x
, int y
);
83 void queueAppendStrokeEvent(int cursor_id
, int x
, int y
);
84 void queueFinishStrokeEvent(int cursor_id
, int x
, int y
);
85 void queueStartRopeEvent(int cursor_id
, int x
, int y
);
86 void queueAppendRopeEvent(int cursor_id
, int x
, int y
);
87 void queueFinishRopeEvent(int cursor_id
, int x
, int y
);
88 void queueStartDragEvent(int cursor_id
, int x
, int y
, int xdiff
, int ydiff
);
89 void queueDragEvent(int cursor_id
, int x
, int y
, int xdiff
, int ydiff
);
90 void queueEndDragEvent(int cursor_id
, int x
, int y
, int xdiff
, int ydiff
);
91 void queuePanEvent(int xdiff
, int ydiff
);
92 void queueZoomEvent(int x
, int y
, float zoomfactor
);
93 void queueDeleteEvent(int x
, int y
);
94 void queueUserEvent(int type
, void *data1
, void *data2
);