gwenhywfar  5.11.1beta
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 {
76 }
78 
79 
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 
86 
87 /* other gwen headers */
88 #include <gwenhywfar/dialog.h>
89 
90 
91 
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95 
96 
99  int index,
100  int value,
101  int doSignal);
102 
105  int index,
106  int defaultValue);
107 
110  int index,
111  const char *value,
112  int doSignal);
113 
116  int index,
117  const char *defaultValue);
118 
120 
121 
122 
124 void *GWEN_Widget_GetImplData(const GWEN_WIDGET *w, int index);
125 
161 void GWEN_Widget_SetImplData(GWEN_WIDGET *w, int index, void *ptr);
162 
163 
166 
169 
171 const char *GWEN_Widget_GetName(const GWEN_WIDGET *w);
172 
174 void GWEN_Widget_SetName(GWEN_WIDGET *w, const char *s);
175 
182 
184 void GWEN_Widget_SetFlags(GWEN_WIDGET *w, uint32_t fl);
185 
187 void GWEN_Widget_AddFlags(GWEN_WIDGET *w, uint32_t fl);
188 
190 void GWEN_Widget_SubFlags(GWEN_WIDGET *w, uint32_t fl);
191 
197 
200 
203 
206 
209 
212 
213 
214 
217 
220 
221 
224 
227 
230 
233 
234 
236 const char *GWEN_Widget_GetText(const GWEN_WIDGET *w, int idx);
237 
239 void GWEN_Widget_SetText(GWEN_WIDGET *w, int idx, const char *s);
240 
241 
242 
245 
247 void GWEN_Widget_SetIconFileName(GWEN_WIDGET *w, const char *s);
248 
249 
252 
255 
256 
257 
260 
263 
265 uint32_t GWEN_Widget_Flags_fromString(const char *s);
266 
267 
275 
283 
291 
305 
306 
307 
308 
312  int index,
313  int value,
314  int doSignal);
315 
319  int index,
320  int defaultValue);
321 
325  int index,
326  const char *value,
327  int doSignal);
328 
332  int index,
333  const char *defaultValue);
334 
337 
338 
339 #ifdef __cplusplus
340 }
341 #endif
342 
343 
344 #endif
struct GWEN_DIALOG GWEN_DIALOG
Definition: dialog.h:54
GWEN_DIALOG_PROPERTY
Definition: dialog.h:260
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
#define GWENHYWFAR_CB
Definition: gwenhywfarapi.h:89
#define GWEN_INHERIT_FUNCTION_LIB_DEFS(t, decl)
Definition: inherit.h:125
#define GWEN_TREE_FUNCTION_LIB_DEFS(t, pr, decl)
Definition: tree.h:384
int GWENHYWFAR_CB(* GWEN_WIDGET_SETINTPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
Definition: widget_be.h:97
GWENHYWFAR_API int GWEN_Widget_GetHeight(const GWEN_WIDGET *w)
GWENHYWFAR_API GWEN_WIDGET_SETCHARPROPERTY_FN GWEN_Widget_SetSetCharPropertyFn(GWEN_WIDGET *w, GWEN_WIDGET_SETCHARPROPERTY_FN fn)
GWENHYWFAR_API void GWEN_Widget_SetFlags(GWEN_WIDGET *w, uint32_t fl)
struct GWEN_WIDGET GWEN_WIDGET
Definition: widget_be.h:34
GWENHYWFAR_API uint32_t GWEN_Widget_GetFlags(const GWEN_WIDGET *w)
GWENHYWFAR_API const char * GWEN_Widget_GetImageFileName(const GWEN_WIDGET *w)
GWENHYWFAR_API void GWEN_Widget_SetName(GWEN_WIDGET *w, const char *s)
GWENHYWFAR_API int GWEN_Widget_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
GWENHYWFAR_API void GWEN_Widget_SetImplData(GWEN_WIDGET *w, int index, void *ptr)
Store a pointer with the widget.
GWENHYWFAR_API const char * GWEN_Widget_GetName(const GWEN_WIDGET *w)
GWENHYWFAR_API void GWEN_Widget_SetColumns(GWEN_WIDGET *w, int i)
GWENHYWFAR_API void GWEN_Widget_SetIconFileName(GWEN_WIDGET *w, const char *s)
GWENHYWFAR_API int GWEN_Widget_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
int GWENHYWFAR_CB(* GWEN_WIDGET_SETCHARPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
Definition: widget_be.h:108
GWENHYWFAR_API void GWEN_Widget_AddFlags(GWEN_WIDGET *w, uint32_t fl)
GWENHYWFAR_API int GWEN_Widget_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild)
GWENHYWFAR_API const char * GWEN_Widget_GetText(const GWEN_WIDGET *w, int idx)
GWENHYWFAR_API GWEN_DIALOG * GWEN_Widget_GetDialog(const GWEN_WIDGET *w)
const char *GWENHYWFAR_CB(* GWEN_WIDGET_GETCHARPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
Definition: widget_be.h:114
GWENHYWFAR_API const char * GWEN_Widget_GetIconFileName(const GWEN_WIDGET *w)
GWENHYWFAR_API int GWEN_Widget_GetWidth(const GWEN_WIDGET *w)
GWENHYWFAR_API GWEN_WIDGET_GETCHARPROPERTY_FN GWEN_Widget_SetGetCharPropertyFn(GWEN_WIDGET *w, GWEN_WIDGET_GETCHARPROPERTY_FN fn)
GWEN_WIDGET_TYPE
Definition: widget_be.h:49
@ GWEN_Widget_TypeTabBook
Definition: widget_be.h:67
@ GWEN_Widget_TypeNone
Definition: widget_be.h:51
@ GWEN_Widget_TypeComboBox
Definition: widget_be.h:56
@ GWEN_Widget_TypeTabPage
Definition: widget_be.h:68
@ GWEN_Widget_TypeRadioButton
Definition: widget_be.h:57
@ GWEN_Widget_TypeHLayout
Definition: widget_be.h:62
@ GWEN_Widget_TypeLineEdit
Definition: widget_be.h:54
@ GWEN_Widget_TypeWidgetStack
Definition: widget_be.h:70
@ GWEN_Widget_TypeScrollArea
Definition: widget_be.h:71
@ GWEN_Widget_TypeLabel
Definition: widget_be.h:52
@ GWEN_Widget_TypeGroupBox
Definition: widget_be.h:59
@ GWEN_Widget_TypeDialog
Definition: widget_be.h:66
@ GWEN_Widget_TypePushButton
Definition: widget_be.h:53
@ GWEN_Widget_TypeCheckBox
Definition: widget_be.h:69
@ GWEN_Widget_TypeTextBrowser
Definition: widget_be.h:74
@ GWEN_Widget_TypeHSpacer
Definition: widget_be.h:60
@ GWEN_Widget_TypeHLine
Definition: widget_be.h:72
@ GWEN_Widget_TypeTextEdit
Definition: widget_be.h:55
@ GWEN_Widget_TypeGridLayout
Definition: widget_be.h:64
@ GWEN_Widget_TypeVLayout
Definition: widget_be.h:63
@ GWEN_Widget_TypeProgressBar
Definition: widget_be.h:58
@ GWEN_Widget_TypeSpinBox
Definition: widget_be.h:75
@ GWEN_Widget_TypeVSpacer
Definition: widget_be.h:61
@ GWEN_Widget_TypeUnknown
Definition: widget_be.h:50
@ GWEN_Widget_TypeVLine
Definition: widget_be.h:73
@ GWEN_Widget_TypeListBox
Definition: widget_be.h:65
GWENHYWFAR_API GWEN_DIALOG * GWEN_Widget_GetTopDialog(const GWEN_WIDGET *w)
GWENHYWFAR_API void GWEN_Widget_SetWidth(GWEN_WIDGET *w, int i)
GWENHYWFAR_API void GWEN_Widget_SetHeight(GWEN_WIDGET *w, int i)
GWENHYWFAR_API GWEN_WIDGET_SETINTPROPERTY_FN GWEN_Widget_SetSetIntPropertyFn(GWEN_WIDGET *w, GWEN_WIDGET_SETINTPROPERTY_FN fn)
GWENHYWFAR_API int GWEN_Widget_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
int GWENHYWFAR_CB(* GWEN_WIDGET_ADDCHILDGUIWIDGET_FN)(GWEN_WIDGET *w, GWEN_WIDGET *wChild)
Definition: widget_be.h:119
GWENHYWFAR_API void GWEN_Widget_SetImageFileName(GWEN_WIDGET *w, const char *s)
GWENHYWFAR_API int GWEN_Widget_GetRows(const GWEN_WIDGET *w)
GWENHYWFAR_API GWEN_WIDGET_TYPE GWEN_Widget_Type_fromString(const char *s)
int GWENHYWFAR_CB(* GWEN_WIDGET_GETINTPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
Definition: widget_be.h:103
GWENHYWFAR_API void GWEN_Widget_SetRows(GWEN_WIDGET *w, int i)
GWENHYWFAR_API GWEN_WIDGET_ADDCHILDGUIWIDGET_FN GWEN_Widget_SetAddChildGuiWidgetFn(GWEN_WIDGET *w, GWEN_WIDGET_ADDCHILDGUIWIDGET_FN fn)
GWENHYWFAR_API GWEN_WIDGET_TYPE GWEN_Widget_GetType(const GWEN_WIDGET *w)
GWENHYWFAR_API void GWEN_Widget_SetType(GWEN_WIDGET *w, GWEN_WIDGET_TYPE t)
GWENHYWFAR_API const char * GWEN_Widget_Type_toString(GWEN_WIDGET_TYPE t)
GWENHYWFAR_API void GWEN_Widget_SetText(GWEN_WIDGET *w, int idx, const char *s)
GWENHYWFAR_API int GWEN_Widget_GetColumns(const GWEN_WIDGET *w)
GWENHYWFAR_API uint32_t GWEN_Widget_Flags_fromString(const char *s)
GWENHYWFAR_API GWEN_WIDGET_GETINTPROPERTY_FN GWEN_Widget_SetGetIntPropertyFn(GWEN_WIDGET *w, GWEN_WIDGET_GETINTPROPERTY_FN fn)
GWENHYWFAR_API const char * GWEN_Widget_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
GWENHYWFAR_API void GWEN_Widget_SubFlags(GWEN_WIDGET *w, uint32_t fl)
GWENHYWFAR_API void GWEN_Widget_SetGroupId(GWEN_WIDGET *w, int i)
GWENHYWFAR_API int GWEN_Widget_GetGroupId(const GWEN_WIDGET *w)
GWENHYWFAR_API void * GWEN_Widget_GetImplData(const GWEN_WIDGET *w, int index)