shithub: libnate

ref: c04fd4ce67a03c04b342c38185523bb834f4e0b7
dir: /n_label.h/

View raw version
extern char* NLabel_Type;

typedef struct NLabel NLabel;
struct NLabel {
	Nelem;
	DECL_ACCESSOR_OneParam(NLabel, Label, char*);
	DECL_ACCESSOR_OneParam(NLabel, LabelFunc, char* (*f)(void));
	DECL_ACCESSOR_OneParam(NLabel, Font, Font*);
	DECL_ACCESSOR_OneParam(NLabel, Color, Image*);
	
	// private members
	char* label;
	char* (*labelfunc)(void);
	Font* font;
	Image* color;
};

NLabel* New_Label(void);