23#include <widgets/gp_common.h>
98 unsigned int no_resize:1;
111 unsigned int redraw_child:1;
115 unsigned int redraw_children:1;
169#define GP_WIDGET_PAYLOAD(self) (void*)((self)->payload_data)
367 GP_HCENTER_WEAK = 0x00,
368 GP_VCENTER_WEAK = 0x00,
382 size_t payload_size);
392#define GP_WIDGET_ASSERT(self, ret) do { \
394 GP_BUG("NULL widget!"); \
409#define GP_WIDGET_CLASS_ASSERT(self, wclass, ret) do { \
410 GP_WIDGET_ASSERT(self, ret); \
411 if (self->widget_class != wclass) { \
412 GP_BUG("Invalid widget (%p) class %u != %u", \
413 self, self->widget_class, wclass); \
428#define GP_WIDGET_TYPE_ASSERT(self, wtype, ret) do { \
429 GP_WIDGET_ASSERT(self, ret); \
430 if (self->type != wtype) {\
431 GP_BUG("Invalid widget type %s != %s", \
432 gp_widget_type_id(self), gp_widget_type_name(wtype)); \