gCAD3D 2.40
gui_gtk2/gtk_base.h
Go to the documentation of this file.
1 /* ../gui_gtk2/gtk_base.h
2 
3 
4 Modif:
5 2012-03-18 New; extracted from ut_gtk. RF.
6 
7 */
8 
9 
10 
11 void GUI_Init__ (char *fRC);
12 
13 MemObj GUI_Win__ (char *wtit, void *funcnam, char *opts);
14 int GUI_Win_go (MemObj *o_par);
15 int GUI_Win_ev_key (MemObj *o_par, void *fKey);
16 int GUI_Win_ev_button (MemObj *o_par, void *fButton);
17 int GUI_Win_up (MemObj *parentWin, MemObj *o_win, int typ);
18 char* GUI_Win_tit (void *gtkWin);
19 void GUI_Win_kill (MemObj *mo);
20 int GUI_main_quit ();
21 
22 MemObj GUI_box_h (MemObj *o_par, char *siz);
23 MemObj GUI_box_v (MemObj *o_par, char *siz);
24 MemObj GUI_box__ (MemObj *o_par, int typ, char *siz);
25 int GUI_w_pack_d (int *isx, int *isy, int *iex, int *iey, char *siz);
26 int GUI_w_pack_b (int pTyp, void *pObj, void *cObj,
27  int *isx, int *isy, int *iex, int *iey);
28 int GUI_w_pack2 (int pTyp, void *pObj, void *cObj, char *siz);
29 int GUI_w_pack1 (int pTyp, void *pObj, void *cObj, char *siz);
30 
31 
32 // #define GUI_box_h(o_par,hsiz,vsiz) GUI_box__(o_par,0,hsiz,vsiz)
33 // #define GUI_box_v(o_par,hsiz,vsiz) GUI_box__(o_par,1,hsiz,vsiz)
34 // MemObj GUI_box__ (MemObj *o_par, int typ, int hsiz, int vsiz);
35 
36 #define GUI_spc_h(o_par,hsiz) GUI_spc__(o_par,0,hsiz)
37 #define GUI_spc_v(o_par,vsiz) GUI_spc__(o_par,1,vsiz)
38 void GUI_spc__ (MemObj *o_par, int typ, int spc);
39 
40 #define GUI_sep_h(o_par,hsiz) GUI_sep__(o_par,0,hsiz)
41 #define GUI_sep_v(o_par,vsiz) GUI_sep__(o_par,1,vsiz)
42 void GUI_sep__ (MemObj *o_par, int typ, int border);
43 
44 
45 int GUI_is_alive (int winId);
46 int GUI_get_keys_mod ();
47 int GUI_update__ ();
48 
49 #define GUI_hide__(o_par) GUI_set_show(o_par,0)
50 #define GUI_show__(o_par) GUI_set_show(o_par,1)
51 int GUI_set_show (MemObj *mo, int mode);
52 int GUI_set_enable (MemObj *mo, int mode);
53 
54 
55 int GUI_idle__ (void *funcnam, void *data);
56 int GUI_timer__ (void *funcnam, int interval, void *data);
57 
58 
59 // call gui-button-callback func like "int XX_CB (MemObj *mo, void **data)"
60 // use eg. XX_CB (GUI_ES("Exit"));
61 // for XX_CB (NULL, GUI_SETDAT_ES(TYP_EventPress,"Exit"));
62 #define GUI_ES(txt) NULL,GUI_SETDAT_ES(TYP_EventPress,(txt))
63 
64 
65 
66 // INTERNAL:
67  int GUI_Win_exit (void *parent, MemObj um);
68  char* GUI_Win_tit (void *gtkWin);
69  int GUI_Win_key (void *parent, void *event, void *data);
70  int GUI_Win_button (void *parent, void *ev, void *data);
71  int GUI_packwn (void *parent, void *wi, int hsiz, int vsiz);
72  int GUI_siz_set (void *parent, int hSiz, int vSiz);
73  int GUI_cursor__ (MemObj *mo, int iCur);
74 
75  void** GUI_SETDAT_E (int ie);
76  void** GUI_SETDAT_EI (int ie, int ii);
77  void** GUI_SETDAT_ES (int ie, char *is);
78 
79  int GUI_OBJ_TYP (MemObj *mo);
80  int GUI_OBJ_SRC (MemObj *mo);
81 
82 
83 // EOF
int typ
Definition: xa_tra.c:151
int GUI_w_pack_d(int *isx, int *isy, int *iex, int *iey, char *siz)
Definition: gui_gtk2/gtk_base.c:1397
Definition: ut_umem.h:119
int GUI_siz_set(void *parent, int hSiz, int vSiz)
Definition: gui_gtk2/gtk_base.c:1219
MemObj GUI_box__(MemObj *o_par, int typ, char *opts)
Definition: gui_gtk2/gtk_base.c:1291
void ** GUI_SETDAT_EI(int ie, int ii)
Definition: gui_gtk2/gtk_base.c:2154
int GUI_main_quit()
Definition: gui_gtk2/gtk_base.c:621
char mode
Definition: xa_tra.c:152
void GUI_Init__(char *fRC)
Definition: gui_gtk2/gtk_base.c:325
int GUI_update__()
Definition: gui_gtk2/gtk_base.c:1054
int GUI_OBJ_TYP(MemObj *mo)
Definition: gui_gtk2/gtk_base.c:2063
int GUI_is_alive(int winId)
Definition: gui_gtk2/gtk_base.c:951
int GUI_Win_exit(void *parent, MemObj mo)
Definition: gui_gtk2/gtk_base.c:564
void ** GUI_SETDAT_ES(int ie, char *is)
Definition: gui_gtk2/gtk_base.c:2121
int GUI_Win_button(void *parent, void *ev, void *data)
Definition: gui_gtk2/gtk_base.c:802
void GUI_Win_kill(MemObj *mo)
Definition: gui_gtk2/gtk_base.c:367
void GUI_sep__(MemObj *o_par, int typ, int border)
Definition: gui_gtk2/gtk_base.c:1795
int GUI_w_pack2(int pTyp, void *pObj, void *cObj, char *opts)
Definition: gui_gtk2/gtk_base.c:1498
int GUI_set_show(MemObj *mo, int mode)
Definition: gui_gtk2/gtk_base.c:1861
int GUI_packwn(void *parent, void *wi, int hsiz, int vsiz)
Definition: gui_gtk2/gtk_base.c:1117
void ** GUI_SETDAT_E(int ie)
Definition: gui_gtk2/gtk_base.c:2093
MemObj GUI_box_h(MemObj *o_par, char *opts)
Definition: gui_gtk2/gtk_base.c:1254
int GUI_get_keys_mod()
Definition: gui_gtk2/gtk_base.c:1889
int GUI_idle__(void *funcnam, void *data)
Definition: gui_gtk2/gtk_base.c:1074
int GUI_Win_key(void *parent, void *event, void *data)
Definition: gui_gtk2/gtk_base.c:707
void GUI_spc__(MemObj *o_par, int typ, int spc)
Definition: gui_gtk2/gtk_base.c:1759
int GUI_Win_ev_button(MemObj *o_par, void *fButton)
Definition: gui_gtk2/gtk_base.c:750
int GUI_Win_ev_key(MemObj *o_par, void *fKey)
Definition: gui_gtk2/gtk_base.c:656
MemObj GUI_box_v(MemObj *o_par, char *opts)
Definition: gui_gtk2/gtk_base.c:1273
int GUI_set_enable(MemObj *mo, int mode)
Definition: gui_gtk2/gtk_base.c:1835
int GUI_timer__(void *funcnam, int interval, void *data)
Definition: gui_gtk2/gtk_base.c:1096
int GUI_w_pack_b(int pTyp, void *pObj, void *cObj, int *isx, int *isy, int *iex, int *iey)
Definition: gui_gtk2/gtk_base.c:1588
int GUI_OBJ_SRC(MemObj *mo)
Definition: gui_gtk2/gtk_base.c:2078
MemObj GUI_Win__(char *wtit, void *funcnam, char *opts)
Definition: gui_gtk2/gtk_base.c:401
char * GUI_Win_tit(void *gtkWin)
Definition: gui_gtk2/gtk_base.c:254
int GUI_cursor__(MemObj *mo, int iCur)
Definition: gui_gtk2/gtk_base.c:2006
int GUI_Win_up(MemObj *parentWin, MemObj *o_win, int typ)
Definition: gui_gtk2/gtk_base.c:1011
int GUI_Win_go(MemObj *o_par)
Definition: gui_gtk2/gtk_base.c:852
int GUI_w_pack1(int pTyp, void *pObj, void *cObj, char *opts)
Definition: gui_gtk2/gtk_base.c:1519