|
||||
File indexing completed on 2025-01-30 10:26:36
0001 /*********************************************************** 0002 0003 Copyright 1987, 1988, 1994, 1998 The Open Group 0004 0005 Permission to use, copy, modify, distribute, and sell this software and its 0006 documentation for any purpose is hereby granted without fee, provided that 0007 the above copyright notice appear in all copies and that both that 0008 copyright notice and this permission notice appear in supporting 0009 documentation. 0010 0011 The above copyright notice and this permission notice shall be included in 0012 all copies or substantial portions of the Software. 0013 0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0020 0021 Except as contained in this notice, the name of The Open Group shall not be 0022 used in advertising or otherwise to promote the sale, use or other dealings 0023 in this Software without prior written authorization from The Open Group. 0024 0025 0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 0027 0028 All Rights Reserved 0029 0030 Permission to use, copy, modify, and distribute this software and its 0031 documentation for any purpose and without fee is hereby granted, 0032 provided that the above copyright notice appear in all copies and that 0033 both that copyright notice and this permission notice appear in 0034 supporting documentation, and that the name of Digital not be 0035 used in advertising or publicity pertaining to distribution of the 0036 software without specific, written prior permission. 0037 0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 0044 SOFTWARE. 0045 0046 ******************************************************************/ 0047 0048 #ifndef _XawLabelP_h 0049 #define _XawLabelP_h 0050 0051 /* 0052 * Label Widget Private Data 0053 */ 0054 #include <X11/Xaw/Label.h> 0055 #include <X11/Xaw/SimpleP.h> 0056 0057 /* New fields for the Label widget class record */ 0058 typedef struct { 0059 XtPointer extension; 0060 } LabelClassPart; 0061 0062 /* Full class record declaration */ 0063 typedef struct _LabelClassRec { 0064 CoreClassPart core_class; 0065 SimpleClassPart simple_class; 0066 LabelClassPart label_class; 0067 } LabelClassRec; 0068 0069 extern LabelClassRec labelClassRec; 0070 0071 /* New fields for the Label widget record */ 0072 typedef struct { 0073 /* resources */ 0074 Pixel foreground; 0075 XFontStruct *font; 0076 XFontSet fontset; 0077 char *label; 0078 XtJustify justify; 0079 Dimension internal_width; 0080 Dimension internal_height; 0081 Pixmap pixmap; 0082 Boolean resize; 0083 unsigned char encoding; 0084 Pixmap left_bitmap; 0085 0086 /* private state */ 0087 GC normal_GC; 0088 GC gray_GC; 0089 Pixmap stipple; 0090 Position label_x; 0091 Position label_y; 0092 Dimension label_width; 0093 Dimension label_height; 0094 Dimension label_len; 0095 int lbm_y; /* where in label */ 0096 unsigned int lbm_width, lbm_height; /* size of pixmap */ 0097 #ifndef OLDXAW 0098 XtPointer pad[4]; /* for future use and keep binary compatibility */ 0099 #endif 0100 } LabelPart; 0101 0102 /* 0103 * Full instance record declaration 0104 */ 0105 typedef struct _LabelRec { 0106 CorePart core; 0107 SimplePart simple; 0108 LabelPart label; 0109 } LabelRec; 0110 0111 #define LEFT_OFFSET(lw) ((lw)->label.left_bitmap \ 0112 ? (lw)->label.lbm_width + (lw)->label.internal_width \ 0113 : 0) 0114 0115 #endif /* _XawLabelP_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |