GwinP.h - sam - An updated version of the sam text editor. | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
GwinP.h (1136B) | |
--- | |
1 /* Copyright (c) 1998 Lucent Technologies - All rights reserved. */ | |
2 #ifndef GWINP_H | |
3 #define GWINP_H | |
4 | |
5 #include "Gwin.h" | |
6 | |
7 /* Gwin is derived from Core */ | |
8 | |
9 /* Gwin instance part */ | |
10 typedef struct { | |
11 /* New resource fields */ | |
12 Pixel foreground; | |
13 Boolean forwardr; /* does right button scroll forward? */ | |
14 Reshapefunc reshaped; /* Notify app of reshape */ | |
15 Charfunc gotchar; /* Notify app of char arrival */ | |
16 Mousefunc gotmouse; /* Notify app of mouse change */ | |
17 String selection; /* Current selection */ | |
18 int compose; | |
19 } GwinPart; | |
20 | |
21 /* Full instance record */ | |
22 typedef struct _GwinRec { | |
23 CorePart core; | |
24 GwinPart gwin; | |
25 } GwinRec; | |
26 | |
27 /* New type for class methods */ | |
28 typedef String (*SelSwapProc)(Widget, String); | |
29 | |
30 /* Class part */ | |
31 typedef struct { | |
32 SelSwapProc select_swap; | |
33 XtPointer extension; | |
34 } GwinClassPart; | |
35 | |
36 /* Full class record */ | |
37 typedef struct _GwinClassRec { | |
38 CoreClassPart core_class; | |
39 GwinClassPart gwin_class; | |
40 } GwinClassRec, *GwinWidgetClass; | |
41 | |
42 /* External definition for class record */ | |
43 extern GwinClassRec gwinClassRec; | |
44 | |
45 #endif /* GWINP_H */ |