shithub: widget

ref: ec1aec49349dab76af4e3063eb11e8a030c87de0
dir: /libwidget/box.h/

View raw version
/*** 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*);