Mercurial > projects > dwt-linux
comparison dwt/widgets/Widget.d @ 27:ffa3c27c4328
Display
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 09 Jan 2008 01:08:22 +0100 |
parents | 09f5459a5014 |
children | 10acbb123580 |
comparison
equal
deleted
inserted
replaced
26:09f5459a5014 | 27:ffa3c27c4328 |
---|---|
10 *******************************************************************************/ | 10 *******************************************************************************/ |
11 module dwt.widgets.Widget; | 11 module dwt.widgets.Widget; |
12 | 12 |
13 import dwt.internal.gtk.c.gtktypes; | 13 import dwt.internal.gtk.c.gtktypes; |
14 import dwt.internal.gtk.c.gdktypes; | 14 import dwt.internal.gtk.c.gdktypes; |
15 import dwt.widgets.Event; | |
15 | 16 |
16 class Widget{ | 17 class Widget{ |
18 int /*long*/ windowProc (GtkWidget* handle, int /*long*/ user_data) ; | |
19 int /*long*/ windowProc (GtkWidget* handle, int /*long*/ arg0, int /*long*/ user_data) ; | |
20 int /*long*/ windowProc (GtkWidget* handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ user_data); | |
21 int /*long*/ windowProc (GtkWidget* handle, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ user_data); | |
17 static const int DISPOSED = 1<<0; | 22 static const int DISPOSED = 1<<0; |
18 static const int CANVAS = 1<<1; | 23 static const int CANVAS = 1<<1; |
19 static const int KEYED_DATA = 1<<2; | 24 static const int KEYED_DATA = 1<<2; |
20 static const int HANDLE = 1<<3; | 25 static const int HANDLE = 1<<3; |
21 static const int DISABLED = 1<<4; | 26 static const int DISABLED = 1<<4; |
33 static const int THEME_BACKGROUND = 1<<16; | 38 static const int THEME_BACKGROUND = 1<<16; |
34 int style, state; | 39 int style, state; |
35 int /*long*/ cellDataProc (int /*long*/ tree_column, int /*long*/ cell, int /*long*/ tree_model, int /*long*/ iter, GtkWidget* data) { | 40 int /*long*/ cellDataProc (int /*long*/ tree_column, int /*long*/ cell, int /*long*/ tree_model, int /*long*/ iter, GtkWidget* data) { |
36 return 0; | 41 return 0; |
37 } | 42 } |
43 GdkFilterReturn filterProc (GdkXEvent* xEvent, GdkEvent* gdkEvent, void* data); | |
38 void fixedMapProc (GtkWidget* widget) { | 44 void fixedMapProc (GtkWidget* widget) { |
39 } | 45 } |
40 void rendererGetSizeProc(GtkCellRenderer *cell, GtkWidget *handle, GdkRectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height); | 46 void rendererGetSizeProc(GtkCellRenderer *cell, GtkWidget *handle, GdkRectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height); |
41 void rendererRenderProc (GtkCellRenderer * cell, GdkDrawable * window, GtkWidget * handle, GdkRectangle *background_area, GdkRectangle *cell_area, GdkRectangle *expose_area, int flags); | 47 void rendererRenderProc (GtkCellRenderer * cell, GdkDrawable * window, GtkWidget * handle, GdkRectangle *background_area, GdkRectangle *cell_area, GdkRectangle *expose_area, int flags); |
42 | 48 int /*long*/ menuPositionProc (GtkWidget * menu, int /*long*/ x, int /*long*/ y, int /*long*/ push_in, int /*long*/ user_data) ; |
49 int /*long*/ hoverProc (GtkWidget* handle); | |
50 bool isDisposed(); | |
51 void sendEvent (Event event) ; | |
52 void setForegroundColor (GtkWidget* handle, GdkColor* color); | |
53 | |
54 int /*long*/ shellMapProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) { | |
55 return 0; | |
56 } | |
57 | |
58 int /*long*/ sizeAllocateProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) { | |
59 return 0; | |
60 } | |
61 | |
62 int /*long*/ sizeRequestProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) { | |
63 return 0; | |
64 } | |
65 int /*long*/ timerProc (GtkWidget* widget) { | |
66 return 0; | |
67 } | |
68 | |
69 int /*long*/ treeSelectionProc (int /*long*/ model, int /*long*/ path, int /*long*/ iter, int [] selection, int length) { | |
70 return 0; | |
71 } | |
72 static const int ACTIVATE = 1; | |
73 static const int BUTTON_PRESS_EVENT = 2; | |
74 static const int BUTTON_PRESS_EVENT_INVERSE = 3; | |
75 static const int BUTTON_RELEASE_EVENT = 4; | |
76 static const int BUTTON_RELEASE_EVENT_INVERSE = 5; | |
77 static const int CHANGED = 6; | |
78 static const int CHANGE_VALUE = 7; | |
79 static const int CLICKED = 8; | |
80 static const int COMMIT = 9; | |
81 static const int CONFIGURE_EVENT = 10; | |
82 static const int DELETE_EVENT = 11; | |
83 static const int DELETE_RANGE = 12; | |
84 static const int DELETE_TEXT = 13; | |
85 static const int ENTER_NOTIFY_EVENT = 14; | |
86 static const int EVENT = 15; | |
87 static const int EVENT_AFTER = 16; | |
88 static const int EXPAND_COLLAPSE_CURSOR_ROW = 17; | |
89 static const int EXPOSE_EVENT = 18; | |
90 static const int EXPOSE_EVENT_INVERSE = 19; | |
91 static const int FOCUS = 20; | |
92 static const int FOCUS_IN_EVENT = 21; | |
93 static const int FOCUS_OUT_EVENT = 22; | |
94 static const int GRAB_FOCUS = 23; | |
95 static const int HIDE = 24; | |
96 static const int INPUT = 25; | |
97 static const int INSERT_TEXT = 26; | |
98 static const int KEY_PRESS_EVENT = 27; | |
99 static const int KEY_RELEASE_EVENT = 28; | |
100 static const int LEAVE_NOTIFY_EVENT = 29; | |
101 static const int MAP = 30; | |
102 static const int MAP_EVENT = 31; | |
103 static const int MNEMONIC_ACTIVATE = 32; | |
104 static const int MOTION_NOTIFY_EVENT = 33; | |
105 static const int MOTION_NOTIFY_EVENT_INVERSE = 34; | |
106 static const int MOVE_FOCUS = 35; | |
107 static const int OUTPUT = 36; | |
108 static const int POPUP_MENU = 37; | |
109 static const int PREEDIT_CHANGED = 38; | |
110 static const int REALIZE = 39; | |
111 static const int ROW_ACTIVATED = 40; | |
112 static const int SCROLL_CHILD = 41; | |
113 static const int SCROLL_EVENT = 42; | |
114 static const int SELECT = 43; | |
115 static const int SHOW = 44; | |
116 static const int SHOW_HELP = 45; | |
117 static const int SIZE_ALLOCATE = 46; | |
118 static const int STYLE_SET = 47; | |
119 static const int SWITCH_PAGE = 48; | |
120 static const int TEST_COLLAPSE_ROW = 49; | |
121 static const int TEST_EXPAND_ROW = 50; | |
122 static const int TEXT_BUFFER_INSERT_TEXT = 51; | |
123 static const int TOGGLED = 52; | |
124 static const int UNMAP = 53; | |
125 static const int UNMAP_EVENT = 54; | |
126 static const int UNREALIZE = 55; | |
127 static const int VALUE_CHANGED = 56; | |
128 static const int VISIBILITY_NOTIFY_EVENT = 57; | |
129 static const int WINDOW_STATE_EVENT = 58; | |
130 static const int ACTIVATE_INVERSE = 59; | |
131 static const int DAY_SELECTED = 60; | |
132 static const int MONTH_CHANGED = 61; | |
133 static const int LAST_SIGNAL = 62; | |
43 } | 134 } |
44 | 135 |
45 /++ | 136 /++ |
46 import dwt.SWT; | 137 import dwt.SWT; |
47 import dwt.internal.*; | 138 import dwt.internal.*; |