1 /* 2 * $XConsortium: SmeLineP.h,v 1.3 89/12/11 15:20:20 kit Exp $ 3 * 4 * Copyright 1989 Massachusetts Institute of Technology 5 * 6 * Permission to use, copy, modify, distribute, and sell this software and its 7 * documentation for any purpose is hereby granted without fee, provided that 8 * the above copyright notice appear in all copies and that both that 9 * copyright notice and this permission notice appear in supporting 10 * documentation, and that the name of M.I.T. not be used in advertising or 11 * publicity pertaining to distribution of the software without specific, 12 * written prior permission. M.I.T. makes no representations about the 13 * suitability of this software for any purpose. It is provided "as is" 14 * without express or implied warranty. 15 * 16 * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. 18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 * 23 * Author: Chris D. Peterson, MIT X Consortium 24 */ 25 26 /* 27 * SmeLineP.h - Private definitions for SmeLine widget 28 * 29 */ 30 31 #ifndef _XawSmeLineP_h 32 #define _XawSmeLineP_h 33 34 /*********************************************************************** 35 * 36 * SmeLine Widget Private Data 37 * 38 ***********************************************************************/ 39 40 #include <X11/Xaw/SmeP.h> 41 #include <X11/Xaw/SmeLine.h> 42 43 /************************************************************ 44 * 45 * New fields for the SmeLine widget class record. 46 * 47 ************************************************************/ 48 49 typedef struct _SmeLineClassPart { 50 XtPointer extension; 51 } SmeLineClassPart; 52 53 /* Full class record declaration */ 54 typedef struct _SmeLineClassRec { 55 RectObjClassPart rect_class; 56 SmeClassPart sme_class; 57 SmeLineClassPart sme_line_class; 58 } SmeLineClassRec; 59 60 extern SmeLineClassRec smeLineClassRec; 61 62 /* New fields for the SmeLine widget record */ 63 typedef struct { 64 /* resources */ 65 Pixel foreground; /* Foreground color. */ 66 Pixmap stipple; /* Line Stipple. */ 67 Dimension line_width; /* Width of the line. */ 68 69 /* private data. */ 70 71 GC gc; /* Graphics context for drawing line. */ 72 } SmeLinePart; 73 74 /**************************************************************** 75 * 76 * Full instance record declaration 77 * 78 ****************************************************************/ 79 80 typedef struct _SmeLineRec { 81 ObjectPart object; 82 RectObjPart rectangle; 83 SmePart sme; 84 SmeLinePart sme_line; 85 } SmeLineRec; 86 87 /************************************************************ 88 * 89 * Private declarations. 90 * 91 ************************************************************/ 92 93 #endif /* _XawSmeLineP_h */ 94