shithub: widget

ref: 86177eda0338c6773955897d9b5105fe89c980a0
dir: /libwidget/textbox.h/

View raw version
/*** Textbox ***/

typedef struct Textbox Textbox;

struct Textbox
{
	Widget;

	Font *font;
	String *content;
	Point lastpt;
	int selectable;
	int editable;
};

int istextbox(Widget*);

Textbox* newtextbox(int selectable, int editable, Font*, char *content);