gwenhywfar  4.12.0beta
widget_be.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Wed Jan 20 2010
3  copyright : (C) 2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Lesser General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2.1 of the License, or (at your option) any later version. *
12  * *
13  * This library is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16  * Lesser General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU Lesser General Public *
19  * License along with this library; if not, write to the Free Software *
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21  * MA 02111-1307 USA *
22  * *
23  ***************************************************************************/
24 
25 
26 #ifndef GWENHYWFAR_GUI_WIDGET_BE_H
27 #define GWENHYWFAR_GUI_WIDGET_BE_H
28 
29 
30 #include <gwenhywfar/tree.h>
31 #include <gwenhywfar/inherit.h>
32 
33 
34 typedef struct GWEN_WIDGET GWEN_WIDGET;
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 
43 
44 
45 #define GWEN_WIDGET_TEXTCOUNT 4
46 #define GWEN_WIDGET_IMPLDATACOUNT 4
47 
48 
49 typedef enum {
77 
78 
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 
85 
86 /* other gwen headers */
87 #include <gwenhywfar/dialog.h>
88 
89 
90 
91 #ifdef __cplusplus
92 extern "C" {
93 #endif
94 
95 
98  int index,
99  int value,
100  int doSignal);
101 
104  int index,
105  int defaultValue);
106 
109  int index,
110  const char *value,
111  int doSignal);
112 
115  int index,
116  const char *defaultValue);
117 
119 
120 
121 
123 void *GWEN_Widget_GetImplData(const GWEN_WIDGET *w, int index);
124 
160 void GWEN_Widget_SetImplData(GWEN_WIDGET *w, int index, void *ptr);
161 
162 
165 
168 
170 const char *GWEN_Widget_GetName(const GWEN_WIDGET *w);
171 
173 void GWEN_Widget_SetName(GWEN_WIDGET *w, const char *s);
174 
180 uint32_t GWEN_Widget_GetFlags(const GWEN_WIDGET *w);
181 
183 void GWEN_Widget_SetFlags(GWEN_WIDGET *w, uint32_t fl);
184 
186 void GWEN_Widget_AddFlags(GWEN_WIDGET *w, uint32_t fl);
187 
189 void GWEN_Widget_SubFlags(GWEN_WIDGET *w, uint32_t fl);
190 
196 
199 
201 int GWEN_Widget_GetColumns(const GWEN_WIDGET *w);
202 
204 void GWEN_Widget_SetColumns(GWEN_WIDGET *w, int i);
205 
207 int GWEN_Widget_GetRows(const GWEN_WIDGET *w);
208 
210 void GWEN_Widget_SetRows(GWEN_WIDGET *w, int i);
211 
212 
213 
215 int GWEN_Widget_GetGroupId(const GWEN_WIDGET *w);
216 
218 void GWEN_Widget_SetGroupId(GWEN_WIDGET *w, int i);
219 
220 
222 int GWEN_Widget_GetWidth(const GWEN_WIDGET *w);
223 
225 void GWEN_Widget_SetWidth(GWEN_WIDGET *w, int i);
226 
228 int GWEN_Widget_GetHeight(const GWEN_WIDGET *w);
229 
231 void GWEN_Widget_SetHeight(GWEN_WIDGET *w, int i);
232 
233 
235 const char *GWEN_Widget_GetText(const GWEN_WIDGET *w, int idx);
236 
238 void GWEN_Widget_SetText(GWEN_WIDGET *w, int idx, const char *s);
239 
240 
241 
243 const char *GWEN_Widget_GetIconFileName(const GWEN_WIDGET *w);
244 
246 void GWEN_Widget_SetIconFileName(GWEN_WIDGET *w, const char *s);
247 
248 
250 const char *GWEN_Widget_GetImageFileName(const GWEN_WIDGET *w);
251 
253 void GWEN_Widget_SetImageFileName(GWEN_WIDGET *w, const char *s);
254 
255 
256 
259 
262 
264 uint32_t GWEN_Widget_Flags_fromString(const char *s);
265 
266 
274 
282 
290 
304 
305 
306 
307 
311  int index,
312  int value,
313  int doSignal);
314 
318  int index,
319  int defaultValue);
320 
324  int index,
325  const char *value,
326  int doSignal);
327 
331  int index,
332  const char *defaultValue);
333 
336 
337 
338 #ifdef __cplusplus
339 }
340 #endif
341 
342 
343 #endif