swi-prolog: update to 9.2.9
[oi-userland.git] / components / x11 / libXaw5 / src / X11 / LabelP.h
blobefffc6e3a4901121486aca12c0653edac74600ef
1 /*
2 * $XConsortium: LabelP.h,v 1.29 94/04/17 20:12:14 kaleb Exp $
3 */
6 /***********************************************************
8 Copyright (c) 1987, 1988, 1994 X Consortium
10 Permission is hereby granted, free of charge, to any person obtaining a copy
11 of this software and associated documentation files (the "Software"), to deal
12 in the Software without restriction, including without limitation the rights
13 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 copies of the Software, and to permit persons to whom the Software is
15 furnished to do so, subject to the following conditions:
17 The above copyright notice and this permission notice shall be included in
18 all copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
24 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 Except as contained in this notice, the name of the X Consortium shall not be
28 used in advertising or otherwise to promote the sale, use or other dealings
29 in this Software without prior written authorization from the X Consortium.
32 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
34 All Rights Reserved
36 Permission to use, copy, modify, and distribute this software and its
37 documentation for any purpose and without fee is hereby granted,
38 provided that the above copyright notice appear in all copies and that
39 both that copyright notice and this permission notice appear in
40 supporting documentation, and that the name of Digital not be
41 used in advertising or publicity pertaining to distribution of the
42 software without specific, written prior permission.
44 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
45 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
46 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
47 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
48 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
49 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
50 SOFTWARE.
52 ******************************************************************/
54 /*
55 * LabelP.h - Private definitions for Label widget
59 #ifndef _XawLabelP_h
60 #define _XawLabelP_h
62 /***********************************************************************
64 * Label Widget Private Data
66 ***********************************************************************/
68 #include <X11/Xaw/Label.h>
69 #include <X11/Xaw/SimpleP.h>
71 /* New fields for the Label widget class record */
73 typedef struct {int foo;} LabelClassPart;
75 /* Full class record declaration */
76 typedef struct _LabelClassRec {
77 CoreClassPart core_class;
78 SimpleClassPart simple_class;
79 LabelClassPart label_class;
80 } LabelClassRec;
82 extern LabelClassRec labelClassRec;
84 /* New fields for the Label widget record */
85 typedef struct {
86 /* resources */
87 Pixel foreground;
88 XFontStruct *font;
89 XFontSet fontset;
90 char *label;
91 XtJustify justify;
92 Dimension internal_width;
93 Dimension internal_height;
94 Pixmap pixmap;
95 Boolean resize;
96 unsigned char encoding;
97 Pixmap left_bitmap;
99 /* private state */
100 GC normal_GC;
101 GC gray_GC;
102 Pixmap stipple;
103 Position label_x;
104 Position label_y;
105 Dimension label_width;
106 Dimension label_height;
107 Dimension label_len;
108 int lbm_y; /* where in label */
109 unsigned int lbm_width, lbm_height; /* size of pixmap */
110 } LabelPart;
113 /****************************************************************
115 * Full instance record declaration
117 ****************************************************************/
119 typedef struct _LabelRec {
120 CorePart core;
121 SimplePart simple;
122 LabelPart label;
123 } LabelRec;
125 #define LEFT_OFFSET(lw) ((lw)->label.left_bitmap \
126 ? (lw)->label.lbm_width + (lw)->label.internal_width \
127 : 0)
129 #endif /* _XawLabelP_h */