ref: 812d84e15bf64b6bdad838401acd8c8bbf25342b
dir: /n_box.h/
extern char* NBox_Type;
typedef struct NBox NBox;
struct NBox {
Nelem;
DECL_ACCESSOR_OneParam(NBox, Slot, Nelem*);
DECL_ACCESSOR_TwoParams(NBox, Border, int, Image*);
DECL_ACCESSOR_OneParam(NBox, SizeToContent, int);
DECL_ACCESSOR_OneParam(NBox, Size, Point);
DECL_ACCESSOR_TwoParams(NBox, OnClick, OnclickHandler, void*);
DECL_ACCESSOR_OneParam(NBox, Padding, Nmargin);
// private members
Nlist child;
Point size;
int sizetocontent;
int borderwidth;
Nmargin padding;
Image* bordercolor;
int (*hitfunc)(Mouse, Nelem*, void*);
void* hitaux;
};
NBox* New_Box(char*);