23#include <widgets/gp_common.h>
98 unsigned int no_resize:1;
111 unsigned int redraw_child:1;
115 unsigned int redraw_children:1;
153 struct gp_widget_grid *grid;
154 struct gp_widget_tabs *tabs;
156 struct gp_widget_bool *b;
157 struct gp_widget_bool *button;
158 struct gp_widget_bool *checkbox;
160 struct gp_widget_label *label;
162 struct gp_widget_int *i;
163 struct gp_widget_pbar *pbar;
164 struct gp_widget_int *spin;
165 struct gp_widget_int *slider;
167 struct gp_widget_tbox *tbox;
169 struct gp_widget_choice *choice;
171 struct gp_widget_table *tbl;
173 struct gp_widget_pixmap *pixmap;
175 struct gp_widget_stock *stock;
177 struct gp_widget_scroll_area *scroll;
179 struct gp_widget_frame *frame;
181 struct gp_widget_markup *markup;
183 struct gp_widget_switch *switch_;
185 struct gp_widget_overlay *overlay;
187 struct gp_widget_log *log;
189 struct gp_widget_graph *graph;
388 GP_HCENTER_WEAK = 0x00,
389 GP_VCENTER_WEAK = 0x00,
403 size_t payload_size);
413#define GP_WIDGET_ASSERT(self, ret) do { \
415 GP_BUG("NULL widget!"); \
430#define GP_WIDGET_CLASS_ASSERT(self, wclass, ret) do { \
431 GP_WIDGET_ASSERT(self, ret); \
432 if (self->widget_class != wclass) { \
433 GP_BUG("Invalid widget (%p) class %u != %u", \
434 self, self->widget_class, wclass); \
449#define GP_WIDGET_TYPE_ASSERT(self, wtype, ret) do { \
450 GP_WIDGET_ASSERT(self, ret); \
451 if (self->type != wtype) {\
452 GP_BUG("Invalid widget type %s != %s", \
453 gp_widget_type_id(self), gp_widget_type_name(wtype)); \