diff options
Diffstat (limited to 'include/widgets/widget.h')
-rw-r--r-- | include/widgets/widget.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/widgets/widget.h b/include/widgets/widget.h index 8664c864..84188318 100644 --- a/include/widgets/widget.h +++ b/include/widgets/widget.h @@ -17,40 +17,6 @@ */ typedef struct _widget widget; typedef gboolean ( *widget_clicked_cb )( widget *, xcb_button_press_event_t *, void * ); -struct _widget -{ - /** X position relative to parent */ - short x; - /** Y position relative to parent */ - short y; - /** Width of the widget */ - short w; - /** Height of the widget */ - short h; - /** enabled or not */ - gboolean enabled; - /** Information about packing. */ - gboolean expand; - gboolean end; - - struct _widget *parent; - /** Internal */ - gboolean need_redraw; - /** Function prototypes */ - int ( *get_width )( struct _widget * ); - int ( *get_height )( struct _widget * ); - - void ( *draw )( struct _widget *widget, cairo_t *draw ); - void ( *resize )( struct _widget *, short, short ); - void ( *update )( struct _widget * ); - - // Signals. - widget_clicked_cb clicked; - void *clicked_cb_data; - - // Free - void ( *free )( struct _widget *widget ); -}; /** Macro to get widget from an implementation (e.g. textbox/scrollbar) */ #define WIDGET( a ) ( ( a ) != NULL ? (widget *) ( a ) : NULL ) |