shithub: libnate

ref: 1890aeca379976e46deabb0ce844aefc8be1a2c5
dir: /n_button.h/

View raw version
extern char* NButton_Type;

typedef struct NButton NButton;
struct NButton {
	Nelem;
	DECL_ACCESSOR_OneParam(NButton, Slot, Nelem*);
	DECL_ACCESSOR_TwoParams(NButton, Border, int, Image*);
	DECL_ACCESSOR_OneParam(NButton, AutoSize, int);
	DECL_ACCESSOR_TwoParams(NButton, OnClick, OnclickHandler, void*);
	
	DECL_ACCESSOR_OneParam(NButton, Label, char*);
	DECL_ACCESSOR_OneParam(NButton, LabelFunc, char* (*f)(void));
	DECL_ACCESSOR_OneParam(NButton, Font, Font*);
	DECL_ACCESSOR_OneParam(NButton, Color, Image*);
	
	// private members
	NBox *box;
	NLabel *label;
};

NButton* New_Button(char*);