/* See LICENSE file for copyright and license details. */ #ifndef __CHERRY_WIDGET_H__ #define __CHERRY_WIDGET_H__ #include /* used bu utils.h until I'll fix that */ #include #include "dimension.h" /* The parent of all widgets */ typedef struct CherryWidget { int x, y; /* Coordinates */ CherryDimension *dimension; /* Size of the widget */ int visible; /* Is this visible? */ list_t widgets; /* A list of children widgets */ /* Xlib stuff */ // XSizeHints hints; // GC gc; // Window wnd; void (*draw)(struct CherryWidget *); } CherryWidget; CherryWidget *cherry_widget_new(void); CherryDimension *cherry_widget_get_dimension(CherryWidget *); #endif /* __CHERRY_WIDGET_H__ */