Browsing tevo/widget at commit ec1aec49349dab76af4e3063eb11e8a030c87de0: /libwidget/box.h

view raw
/*** Box ***/

typedef struct Box Box;

struct Box
{
	Widget;

	Widget *content;
	int flags;

	/* don't touch */
	Rectangle conrect;
	int focused;
};

enum /* flags */
{
	B_CENTER_CONTENT	= 1<<0
};

int isbox(Widget*);

Box* newbox(Widget*, int flags);
Box* newcenterbox(Widget*);