This file is indexed.

/usr/include/gwenhywfar4/gwenhywfar/widget_be.h is in libgwenhywfar60-dev 4.15.2beta-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
/***************************************************************************
    begin       : Wed Jan 20 2010
    copyright   : (C) 2010 by Martin Preuss
    email       : martin@libchipcard.de

 ***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or         *
 *   modify it under the terms of the GNU Lesser General Public            *
 *   License as published by the Free Software Foundation; either          *
 *   version 2.1 of the License, or (at your option) any later version.    *
 *                                                                         *
 *   This library is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   Lesser General Public License for more details.                       *
 *                                                                         *
 *   You should have received a copy of the GNU Lesser General Public      *
 *   License along with this library; if not, write to the Free Software   *
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
 *   MA  02111-1307  USA                                                   *
 *                                                                         *
 ***************************************************************************/


#ifndef GWENHYWFAR_GUI_WIDGET_BE_H
#define GWENHYWFAR_GUI_WIDGET_BE_H


#include <gwenhywfar/tree.h>
#include <gwenhywfar/inherit.h>


typedef struct GWEN_WIDGET GWEN_WIDGET;

#ifdef __cplusplus
extern "C" {
#endif


GWEN_TREE_FUNCTION_LIB_DEFS(GWEN_WIDGET, GWEN_Widget, GWENHYWFAR_API)
GWEN_INHERIT_FUNCTION_LIB_DEFS(GWEN_WIDGET, GWENHYWFAR_API)


#define GWEN_WIDGET_TEXTCOUNT       4
#define GWEN_WIDGET_IMPLDATACOUNT   4


typedef enum {
  GWEN_Widget_TypeUnknown=-1,
  GWEN_Widget_TypeNone=0,
  GWEN_Widget_TypeLabel=1,
  GWEN_Widget_TypePushButton,
  GWEN_Widget_TypeLineEdit,
  GWEN_Widget_TypeTextEdit,
  GWEN_Widget_TypeComboBox,
  GWEN_Widget_TypeRadioButton,
  GWEN_Widget_TypeProgressBar,
  GWEN_Widget_TypeGroupBox,
  GWEN_Widget_TypeHSpacer,
  GWEN_Widget_TypeVSpacer,
  GWEN_Widget_TypeHLayout,
  GWEN_Widget_TypeVLayout,
  GWEN_Widget_TypeGridLayout,
  GWEN_Widget_TypeListBox,
  GWEN_Widget_TypeDialog,
  GWEN_Widget_TypeTabBook,
  GWEN_Widget_TypeTabPage,
  GWEN_Widget_TypeCheckBox,
  GWEN_Widget_TypeWidgetStack,
  GWEN_Widget_TypeScrollArea,
  GWEN_Widget_TypeHLine,
  GWEN_Widget_TypeVLine,
  GWEN_Widget_TypeTextBrowser,
  GWEN_Widget_TypeSpinBox
}
GWEN_WIDGET_TYPE;



#ifdef __cplusplus
}
#endif



/* other gwen headers */
#include <gwenhywfar/dialog.h>



#ifdef __cplusplus
extern "C" {
#endif


typedef int GWENHYWFAR_CB (*GWEN_WIDGET_SETINTPROPERTY_FN)(GWEN_WIDGET *w,
    GWEN_DIALOG_PROPERTY prop,
    int index,
    int value,
    int doSignal);

typedef int GWENHYWFAR_CB (*GWEN_WIDGET_GETINTPROPERTY_FN)(GWEN_WIDGET *w,
    GWEN_DIALOG_PROPERTY prop,
    int index,
    int defaultValue);

typedef int GWENHYWFAR_CB (*GWEN_WIDGET_SETCHARPROPERTY_FN)(GWEN_WIDGET *w,
    GWEN_DIALOG_PROPERTY prop,
    int index,
    const char *value,
    int doSignal);

typedef const char* GWENHYWFAR_CB (*GWEN_WIDGET_GETCHARPROPERTY_FN)(GWEN_WIDGET *w,
    GWEN_DIALOG_PROPERTY prop,
    int index,
    const char *defaultValue);

typedef int GWENHYWFAR_CB (*GWEN_WIDGET_ADDCHILDGUIWIDGET_FN)(GWEN_WIDGET *w, GWEN_WIDGET *wChild);



GWENHYWFAR_API
void *GWEN_Widget_GetImplData(const GWEN_WIDGET *w, int index);

/**
 * @brief Store a pointer with the widget.
 *
 * A widget can store up to 4 pointers.
 * It is up to the actual dialog framework implementation to decide what the pointers
 * really point to. Gwenhywfar will never access this pointer, but the implementation
 * might want to store pointers to the generated GUI objects.
 *
 * The GTK2 implementation for example stores at index 0 a pointer to the actually created
 * GUI object (e.g. the result of gtk_label_new() for labels).
 *
 * For container widgets (like groupbox etc) the GTK2 stores a pointer to the content widget
 * at index 1. But as written above: It is completely up to the implementation.
 * @param w pointer to the widget with which the pointer is to be stored
 * @param index position of the pointer (there can be up to 4 pointers with index ranging from 0 to 3)
 * @param ptr void* pointer to be stored.
 * Please note that the implementation still remains the owern of the pointer since the type
 * is void* Gwenhywfar wouldn't know how to free it anyway. However, most graphical toolkits (like
 * GTK, QT) take over created widget objects so with those toolkits you normally don't have to care
 * about freeing the pointers stored here.
 *
 * Example from the GTK2 implementation:
 * @code
 * #define GTK2_DIALOG_WIDGET_REAL    0
 * #define GTK2_DIALOG_WIDGET_CONTENT 1
 *
 * GtkWidget *g;
 *
 * g=gtk_label_new("Label");
 * GWEN_Widget_SetImplData(w, GTK2_DIALOG_WIDGET_REAL, (void*) g);
 * GWEN_Widget_SetImplData(w, GTK2_DIALOG_WIDGET_CONTENT, (void*) g);
 * @endcode
 *
 */
GWENHYWFAR_API
void GWEN_Widget_SetImplData(GWEN_WIDGET *w, int index, void *ptr);


GWENHYWFAR_API
GWEN_DIALOG *GWEN_Widget_GetDialog(const GWEN_WIDGET *w);

GWENHYWFAR_API
GWEN_DIALOG *GWEN_Widget_GetTopDialog(const GWEN_WIDGET *w);

GWENHYWFAR_API
const char *GWEN_Widget_GetName(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetName(GWEN_WIDGET *w, const char *s);

/**
 * Returns the flags of the given widget
 * (see @ref GWEN_WIDGET_FLAGS_FILLX and following).
 */
GWENHYWFAR_API
uint32_t GWEN_Widget_GetFlags(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetFlags(GWEN_WIDGET *w, uint32_t fl);

GWENHYWFAR_API
void GWEN_Widget_AddFlags(GWEN_WIDGET *w, uint32_t fl);

GWENHYWFAR_API
void GWEN_Widget_SubFlags(GWEN_WIDGET *w, uint32_t fl);

/**
 * Returns the type of the widget (see @ref GWEN_Widget_TypeLabel and following).
 */
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
int GWEN_Widget_GetColumns(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetColumns(GWEN_WIDGET *w, int i);

GWENHYWFAR_API
int GWEN_Widget_GetRows(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetRows(GWEN_WIDGET *w, int i);



GWENHYWFAR_API
int GWEN_Widget_GetGroupId(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetGroupId(GWEN_WIDGET *w, int i);


GWENHYWFAR_API
int GWEN_Widget_GetWidth(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetWidth(GWEN_WIDGET *w, int i);

GWENHYWFAR_API
int GWEN_Widget_GetHeight(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetHeight(GWEN_WIDGET *w, int i);


GWENHYWFAR_API
const char *GWEN_Widget_GetText(const GWEN_WIDGET *w, int idx);

GWENHYWFAR_API
void GWEN_Widget_SetText(GWEN_WIDGET *w, int idx, const char *s);



GWENHYWFAR_API
const char *GWEN_Widget_GetIconFileName(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetIconFileName(GWEN_WIDGET *w, const char *s);


GWENHYWFAR_API
const char *GWEN_Widget_GetImageFileName(const GWEN_WIDGET *w);

GWENHYWFAR_API
void GWEN_Widget_SetImageFileName(GWEN_WIDGET *w, const char *s);



GWENHYWFAR_API
GWEN_WIDGET_TYPE GWEN_Widget_Type_fromString(const char *s);

GWENHYWFAR_API
const char *GWEN_Widget_Type_toString(GWEN_WIDGET_TYPE t);

GWENHYWFAR_API
uint32_t GWEN_Widget_Flags_fromString(const char *s);


/**
 * Set the handler for the SetIntProperty function (see @ref GWEN_WIDGET_SETINTPROPERTY_FN,
 * @ref GWEN_Widget_SetIntProperty and @ref GWEN_Dialog_SetIntProperty).
 */
GWENHYWFAR_API
GWEN_WIDGET_SETINTPROPERTY_FN GWEN_Widget_SetSetIntPropertyFn(GWEN_WIDGET *w,
    GWEN_WIDGET_SETINTPROPERTY_FN fn);

/**
 * Set the handler for the GetIntProperty function (see @ref GWEN_WIDGET_GETINTPROPERTY_FN,
 * @ref GWEN_Widget_GetIntProperty and @ref GWEN_Dialog_GetIntProperty).
 */
GWENHYWFAR_API
GWEN_WIDGET_GETINTPROPERTY_FN GWEN_Widget_SetGetIntPropertyFn(GWEN_WIDGET *w,
    GWEN_WIDGET_GETINTPROPERTY_FN fn);

/**
 * Set the handler for the SetCharProperty function (see @ref GWEN_WIDGET_SETCHARPROPERTY_FN,
 * @ref GWEN_Widget_SetCharProperty and @ref GWEN_Dialog_SetCharProperty).
 */
GWENHYWFAR_API
GWEN_WIDGET_SETCHARPROPERTY_FN GWEN_Widget_SetSetCharPropertyFn(GWEN_WIDGET *w,
    GWEN_WIDGET_SETCHARPROPERTY_FN fn);

/**
 * Set the handler for the GetCharProperty function (see @ref GWEN_WIDGET_GETCHARPROPERTY_FN,
 * @ref GWEN_Widget_GetCharProperty and @ref GWEN_Dialog_GetCharProperty).
 */
GWENHYWFAR_API
GWEN_WIDGET_GETCHARPROPERTY_FN GWEN_Widget_SetGetCharPropertyFn(GWEN_WIDGET *w,
    GWEN_WIDGET_GETCHARPROPERTY_FN fn);
/**
 * Sets the handler for the AddChildGuiWidget function (see @ref GWEN_WIDGET_ADDCHILDGUIWIDGET_FN).
 */
GWENHYWFAR_API
GWEN_WIDGET_ADDCHILDGUIWIDGET_FN GWEN_Widget_SetAddChildGuiWidgetFn(GWEN_WIDGET *w,
    GWEN_WIDGET_ADDCHILDGUIWIDGET_FN fn);




GWENHYWFAR_API
int GWEN_Widget_SetIntProperty(GWEN_WIDGET *w,
                               GWEN_DIALOG_PROPERTY prop,
                               int index,
                               int value,
                               int doSignal);

GWENHYWFAR_API
int GWEN_Widget_GetIntProperty(GWEN_WIDGET *w,
                               GWEN_DIALOG_PROPERTY prop,
                               int index,
                               int defaultValue);

GWENHYWFAR_API
int GWEN_Widget_SetCharProperty(GWEN_WIDGET *w,
                                GWEN_DIALOG_PROPERTY prop,
                                int index,
                                const char *value,
                                int doSignal);

GWENHYWFAR_API
const char* GWEN_Widget_GetCharProperty(GWEN_WIDGET *w,
                                        GWEN_DIALOG_PROPERTY prop,
                                        int index,
                                        const char *defaultValue);

GWENHYWFAR_API
int GWEN_Widget_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild);


#ifdef __cplusplus
}
#endif


#endif