convert line ends
[canaan.git] / prj / tech / libsrc / ui / pushbutt.h
blob4b1ca90360e5bc41f7d8c08da9334d6946c00993
1 // $Header: x:/prj/tech/libsrc/ui/RCS/pushbutt.h 1.9 1998/06/18 13:29:11 JAEMZ Exp $
3 #ifndef __PUSHBUTT_H
4 #define __PUSHBUTT_H
5 #pragma once
7 // Includes
8 #include <lg.h> // every file should have this
9 #include <tngpushb.h>
10 #include <gadgets.h>
12 // C Library Includes
14 // System Library Includes
16 // Master Game Includes
18 // Game Library Includes
20 // Game Object Includes
22 // Defines
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
29 // Prototypes
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);
36 // Globals
38 #endif // __PUSHBUTT_H