SmeLineP.h

Go to the documentation of this file.
00001 /*
00002  * $XConsortium: SmeLineP.h,v 1.4 94/04/17 20:12:54 kit Exp $
00003  *
00004 Copyright (c) 1989  X Consortium
00005 
00006 Permission is hereby granted, free of charge, to any person obtaining a copy
00007 of this software and associated documentation files (the "Software"), to deal
00008 in the Software without restriction, including without limitation the rights
00009 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00010 copies of the Software, and to permit persons to whom the Software is
00011 furnished to do so, subject to the following conditions:
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of the X Consortium shall not be
00024 used in advertising or otherwise to promote the sale, use or other dealings
00025 in this Software without prior written authorization from the X Consortium.
00026  *
00027  * Author:  Chris D. Peterson, MIT X Consortium
00028  */
00029 
00030 /* 
00031  * SmeLineP.h - Private definitions for SmeLine widget
00032  * 
00033  */
00034 
00035 #ifndef _XawSmeLineP_h
00036 #define _XawSmeLineP_h
00037 
00038 /***********************************************************************
00039  *
00040  * SmeLine Widget Private Data
00041  *
00042  ***********************************************************************/
00043 
00044 #include <X11/Xaw3d/SmeP.h>
00045 #include <X11/Xaw3d/SmeLine.h>
00046 
00047 /************************************************************
00048  *
00049  * New fields for the SmeLine widget class record.
00050  *
00051  ************************************************************/
00052 
00053 typedef struct _SmeLineClassPart {
00054   XtPointer extension;
00055 } SmeLineClassPart;
00056 
00057 /* Full class record declaration */
00058 typedef struct _SmeLineClassRec {
00059     RectObjClassPart    rect_class;
00060     SmeClassPart        sme_class;
00061     SmeLineClassPart    sme_line_class;
00062 } SmeLineClassRec;
00063 
00064 extern SmeLineClassRec smeLineClassRec;
00065 
00066 /* New fields for the SmeLine widget record */
00067 typedef struct {
00068     /* resources */
00069     Pixel foreground;           /* Foreground color. */
00070     Pixmap stipple;             /* Line Stipple. */
00071     Dimension line_width;       /* Width of the line. */
00072 
00073     /* private data.  */
00074 
00075     GC gc;                      /* Graphics context for drawing line. */
00076 } SmeLinePart;
00077 
00078 /****************************************************************
00079  *
00080  * Full instance record declaration
00081  *
00082  ****************************************************************/
00083 
00084 typedef struct _SmeLineRec {
00085   ObjectPart     object;
00086   RectObjPart    rectangle;
00087   SmePart        sme;
00088   SmeLinePart    sme_line;
00089 } SmeLineRec;
00090 
00091 /************************************************************
00092  *
00093  * Private declarations.
00094  *
00095  ************************************************************/
00096 
00097 #endif /* _XawSmeLineP_h */

Generated on Sun Mar 4 15:03:55 2007 for Scilab [trunk] by  doxygen 1.5.1