1 |
/* |
2 |
* xcb: Copyright (C) 1992,1993,1994 by Farrell McKay. |
3 |
* |
4 |
* Permission to use, copy, modify, and distribute this software and its |
5 |
* documentation for any purpose and without fee is hereby granted, provided |
6 |
* that the above copyright notice appears in all copies and that both that |
7 |
* copyright notice and this permission notice appear in supporting |
8 |
* documentation. This software is provided "as is" without express or |
9 |
* implied warranty. |
10 |
* |
11 |
* This header file contains the definitions and typedefs |
12 |
* for the custom cut buffer widget. |
13 |
*/ |
14 |
#ifndef _cb_h |
15 |
#define _cb_h |
16 |
|
17 |
#include <X11/IntrinsicP.h> /* needed for CorePart et.al.*/ |
18 |
|
19 |
#define XtNatom "atom" |
20 |
#define XtCAtom "Atom" |
21 |
|
22 |
|
23 |
typedef struct _CbClassRec { |
24 |
CoreClassPart core_class; |
25 |
} CbClassRec, *CbWidgetClass; |
26 |
|
27 |
typedef struct _CbRec { |
28 |
CorePart core; |
29 |
Pixel fgnd; |
30 |
XFontSet fontset; |
31 |
int font_width; |
32 |
int font_ascent; |
33 |
int font_height; |
34 |
GC gc; |
35 |
GC gc_inv; |
36 |
Atom atom; |
37 |
} CbRec, *CbWidget; |
38 |
|
39 |
|
40 |
extern WidgetClass cbWidgetClass; |
41 |
extern CbClassRec cbClassRec; |
42 |
|
43 |
#endif |