proto_types.h (3111B)
1 #ifndef LTK_PROTO_TYPES_H 2 #define LTK_PROTO_TYPES_H 3 4 #define LTK_WIDGET_UNKNOWN 0 5 #define LTK_WIDGET_ANY 1 6 #define LTK_WIDGET_GRID 2 7 #define LTK_WIDGET_BUTTON 3 8 #define LTK_WIDGET_LABEL 4 9 #define LTK_WIDGET_BOX 5 10 #define LTK_WIDGET_MENU 6 11 #define LTK_WIDGET_MENUENTRY 7 12 #define LTK_WIDGET_ENTRY 8 13 #define LTK_WIDGET_IMAGE 9 14 #define LTK_NUM_WIDGETS 10 15 16 #define LTK_WIDGETMASK_UNKNOWN (UINT32_C(1) << LTK_WIDGET_UNKNOWN) 17 #define LTK_WIDGETMASK_ANY (UINT32_C(0xFFFF)) 18 #define LTK_WIDGETMASK_GRID (UINT32_C(1) << LTK_WIDGET_GRID) 19 #define LTK_WIDGETMASK_BUTTON (UINT32_C(1) << LTK_WIDGET_BUTTON) 20 #define LTK_WIDGETMASK_LABEL (UINT32_C(1) << LTK_WIDGET_LABEL) 21 #define LTK_WIDGETMASK_BOX (UINT32_C(1) << LTK_WIDGET_BOX) 22 #define LTK_WIDGETMASK_MENU (UINT32_C(1) << LTK_WIDGET_MENU) 23 #define LTK_WIDGETMASK_MENUENTRY (UINT32_C(1) << LTK_WIDGET_MENUENTRY) 24 #define LTK_WIDGETMASK_ENTRY (UINT32_C(1) << LTK_WIDGET_ENTRY) 25 #define LTK_WIDGETMASK_IMAGE (UINT32_C(1) << LTK_WIDGET_IMAGE) 26 27 /* P == protocol; W == widget */ 28 29 #define LTK_PEVENT_MOUSEPRESS 0 30 #define LTK_PEVENT_2MOUSEPRESS 1 31 #define LTK_PEVENT_3MOUSEPRESS 2 32 #define LTK_PEVENT_MOUSERELEASE 3 33 #define LTK_PEVENT_2MOUSERELEASE 4 34 #define LTK_PEVENT_3MOUSERELEASE 5 35 #define LTK_PEVENT_MOUSEMOTION 6 36 #define LTK_PEVENT_MOUSESCROLL 7 37 #define LTK_PEVENT_KEYPRESS 8 38 #define LTK_PEVENT_KEYRELEASE 9 39 #define LTK_PEVENT_CONFIGURE 10 40 #define LTK_PEVENT_STATECHANGE 11 41 42 /* FIXME: standardize names - internally, buttonpress is used, here it's mousepress... */ 43 #define LTK_PEVENTMASK_NONE (UINT32_C(0)) 44 #define LTK_PEVENTMASK_MOUSEPRESS (UINT32_C(1) << LTK_PEVENT_MOUSEPRESS) 45 #define LTK_PEVENTMASK_2MOUSEPRESS (UINT32_C(1) << LTK_PEVENT_2MOUSEPRESS) 46 #define LTK_PEVENTMASK_3MOUSEPRESS (UINT32_C(1) << LTK_PEVENT_3MOUSEPRESS) 47 #define LTK_PEVENTMASK_MOUSERELEASE (UINT32_C(1) << LTK_PEVENT_MOUSERELEASE) 48 #define LTK_PEVENTMASK_2MOUSERELEASE (UINT32_C(1) << LTK_PEVENT_2MOUSERELEASE) 49 #define LTK_PEVENTMASK_3MOUSERELEASE (UINT32_C(1) << LTK_PEVENT_3MOUSERELEASE) 50 #define LTK_PEVENTMASK_MOUSEMOTION (UINT32_C(1) << LTK_PEVENT_MOUSEMOTION) 51 #define LTK_PEVENTMASK_KEYPRESS (UINT32_C(1) << LTK_PEVENT_KEYPRESS) 52 #define LTK_PEVENTMASK_KEYRELEASE (UINT32_C(1) << LTK_PEVENT_KEYRELEASE) 53 #define LTK_PEVENTMASK_CONFIGURE (UINT32_C(1) << LTK_PEVENT_CONFIGURE) 54 #define LTK_PEVENTMASK_EXPOSE (UINT32_C(1) << LTK_PEVENT_EXPOSE) 55 #define LTK_PEVENTMASK_STATECHANGE (UINT32_C(1) << LTK_PEVENT_STATECHANGE) 56 #define LTK_PEVENTMASK_MOUSESCROLL (UINT32_C(1) << LTK_PEVENT_MOUSESCROLL) 57 58 #define LTK_PWEVENT_MENUENTRY_PRESS 0 59 #define LTK_PWEVENTMASK_MENUENTRY_NONE (UINT32_C(0)) 60 #define LTK_PWEVENTMASK_MENUENTRY_PRESS (UINT32_C(1) << LTK_PWEVENT_MENUENTRY_PRESS) 61 62 #define LTK_PWEVENT_BUTTON_PRESS 0 63 #define LTK_PWEVENTMASK_BUTTON_NONE (UINT32_C(0)) 64 #define LTK_PWEVENTMASK_BUTTON_PRESS (UINT32_C(1) << LTK_PWEVENT_BUTTON_PRESS) 65 66 #endif /* LTK_PROTO_TYPES_H */