shithub: libnate

ref: 6ff9ef0c4bef23bfd91f33f0c2f5cab0b88c0307
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);