1 /*
2    Copyright (C) 1996-2002  Ulric Eriksson <ulric@siag.nu>
3 
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Library General Public
6    License as published by the Free Software Foundation; either
7    version 2 of the Licence, or (at your option) any later version.
8 
9    This library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Library General Public License for more details.
13 
14    You should have received a copy of the GNU Library General Public
15    License along with this library; if not, write to the Free
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston,
17    MA 02111-1307, USA.
18  */
19 
20 #ifndef MW_TABBING_P_H
21 #define MW_TABBING_P_H
22 
23 #include "MwTabbing.h"
24 /* include superclass private header file */
25 #include <X11/CoreP.h>
26 
27 /* define unique representation types not found in <X11/StringDefs.h> */
28 
29 #define XtRTabbingResource "TabbingResource"
30 
31 typedef struct {
32     int empty;
33 } MwTabbingClassPart;
34 
35 typedef struct s_TabbingClassRec {
36     CoreClassPart	core_class;
37     MwTabbingClassPart	tabbing_class;
38 } MwTabbingClassRec;
39 
40 extern MwTabbingClassRec mwTabbingClassRec;
41 
42 typedef struct {
43     /* resources */
44 	XFontStruct *font;
45 	int selected;
46 #if 0
47 	void (*select)(Widget, int);
48 #else
49 	XtCallbackList select_callbacks;
50 	XtCallbackList rename_callbacks;
51 #endif
52 	int top;
53 	int ntext;
54     /* private state */
55 	GC tab_gc;
56 	char **text;
57 } MwTabbingPart;
58 
59 typedef struct s_TabbingRec {
60     CorePart		core;
61     MwTabbingPart	tabbing;
62 } MwTabbingRec;
63 
64 #endif /* MW_TABBING_P_H */
65