shithub: widget

ref: ec1b85c429d3fb56bb9fe1cd22309b38a6849e2b
dir: widget/libwidget/box.h

View raw version
/*** Box ***/

typedef struct Box Box;

struct Box
{
	Widget;

	Widget *content;
	int flags;

	Point maxsize;

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

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

int isbox(Widget*);

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