1 // $Header: x:/prj/tech/libsrc/ui/RCS/pushbutt.h 1.9 1998/06/18 13:29:11 JAEMZ Exp $
8 #include <lg.h> // every file should have this
14 // System Library Includes
16 // Master Game Includes
18 // Game Library Includes
20 // Game Object Includes
24 #define PB_TYPE(x) ((TNG_pushbutton *)((x)->tng_data->type_data))->type
25 #define PB_DISPDATA(x) ((TNG_pushbutton *)((x)->tng_data->type_data))->disp_data
26 #define PB_FONTBUF(x) ((TNG_pushbutton *)((x)->tng_data->type_data))->font_buf
27 #define PB_PRESSED(x) ((TNG_pushbutton *)((x)->tng_data->type_data))->pressed
31 // Creates a pushbutton, which can display stuff and respond to basic events.
32 EXTERN Gadget
*gad_pushbutton_create(Gadget
*parent
, Rect
*dim
, int z
, int type
, void *disp_data
, TNGStyle
*sty
, char *name
);
34 EXTERN Gadget
*gad_pushbutton_create_from_tng(void *ui_data
, Point loc
, TNG
**pptng
, TNGStyle
*sty
, int button_type
, void *display_data
, Point size
);
38 #endif // __PUSHBUTT_H