gCAD3D 2.40
gui_gtk2/gtk_ed.h
Go to the documentation of this file.
1 // gtk_ed.h
2 
3 
4 #ifdef GTK1
5 // MS-Win: GTK1
6 
7 typedef struct {GtkWidget *view;
8  GtkWidget *text;
9  GtkWidget *win;
10  int stat;} GIO_WinEd;
11 
12 #else
13 // Linux: GTK2
14 
15 typedef struct {GtkWidget *view;
16  GtkTextBuffer *text;
17  GtkWidget *win;
18  int stat;} GIO_WinEd;
19  // view for focus, text for write, win for pack. stat=0=off, 1=on.
20 #endif
21 
22 
23 
24 typedef struct {GtkWidget *win; int stat;} GIO_Win__;
25  // win for focus, write, pack. stat=0=off, 1=on.
26 
27 
28 
29 
30 
31 // int GUI_Ed_sel__ (GtkWidget *text, int von, int bis);
32 // int GUI_Ed_sel_del (GtkWidget *text);
33 
34 // int GUI_Ed_del (GtkWidget *text, int von, int bis);
35 
36 // int GUI_Ed_getLsta (GtkWidget *text, int cPos);
37 // int GUI_Ed_getLend (GtkWidget *text, int cPos);
38 // int GUI_Ed_getLpos (int *sPos, int *ePos, int cPos, GtkWidget *text);
39 long GUI_Ed_getCpos (GIO_WinEd *text);
40 // long GUI_Ed_getEof (GtkWidget *text);
41 // int GUI_Ed_setCpos (GtkWidget *text, long cpos);
42 // int GUI_Ed_setCnxtL (GtkWidget *text);
43 
44 // int GUI_Ed_scroll_u (GtkWidget *text, int cPos);
45 
46 // int GUI_Ed_Read (GtkWidget *text, char* txbuf, long *txlen);
47 // int GUI_Ed_RdLnAct (GtkWidget *text, char* txbuf, int *txlen);
48 // char GUI_Ed_RdChr (GtkWidget *text, int offset);
49 
50 // int GUI_Ed_Insert (GtkWidget *text, int cpos, char* txbuf, long txlen);
51 int GUI_Ed_Write (GIO_WinEd *text, char* txbuf, long *txlen, long maxlen);
52 
53 void GUI_Ed_Focus (GIO_WinEd *wTx);
54 
55 // GtkWidget* GUI_Ed_Init (GtkWidget **wtext, void* funcnam, int mode);
56  void GUI_Ed_Init (void *parent, GIO_WinEd *wTx, void* funcnam, int mode);
57 // void GUI_Ed_Init (GIO_WinEd *text, void* funcnam, int mode);
58 // void GUI_Ed_Init1 (GIO_WinEd *text);
59 
60 /* ====================== EOF =========================== */
int GUI_Ed_Write(GIO_WinEd *text, char *txbuf, long *txlen, long maxlen)
long GUI_Ed_getCpos(GIO_WinEd *text)
char mode
Definition: xa_tra.c:152
Definition: gui_gtk2/gtk_ed.h:15
char stat
Definition: xa_tra.c:152
GtkWidget * win
Definition: gui_gtk2/gtk_ed.h:24
GtkWidget * win
Definition: gui_gtk2/gtk_ed.h:17
int stat
Definition: gui_gtk2/gtk_ed.h:18
static char txbuf[256]
Definition: ut_os_aix.c:203
GtkWidget * win
Definition: gui_gtk3/gtk_printer.c:12
void GUI_Ed_Focus(GIO_WinEd *wTx)
void GUI_Ed_Init(void *parent, GIO_WinEd *wTx, void *funcnam, int mode)
GtkTextBuffer * text
Definition: gui_gtk2/gtk_ed.h:16
Definition: gui_gtk2/gtk_ed.h:24
GtkWidget * view
Definition: gui_gtk2/gtk_ed.h:15