Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:28

0001 /***********************************************************
0002 
0003 Copyright 1987, 1988, 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 XtCoreP_h
0049 #define XtCoreP_h
0050 
0051 #include <X11/Core.h>
0052 
0053 _XFUNCPROTOBEGIN
0054 
0055 externalref int _XtInheritTranslations;
0056 
0057 #define XtInheritTranslations  ((String) &_XtInheritTranslations)
0058 #define XtInheritRealize ((XtRealizeProc) _XtInherit)
0059 #define XtInheritResize ((XtWidgetProc) _XtInherit)
0060 #define XtInheritExpose ((XtExposeProc) _XtInherit)
0061 #define XtInheritSetValuesAlmost ((XtAlmostProc) _XtInherit)
0062 #define XtInheritAcceptFocus ((XtAcceptFocusProc) _XtInherit)
0063 #define XtInheritQueryGeometry ((XtGeometryHandler) _XtInherit)
0064 #define XtInheritDisplayAccelerator ((XtStringProc) _XtInherit)
0065 
0066 /***************************************************************
0067  * Widget Core Data Structures
0068  *
0069  *
0070  **************************************************************/
0071 
0072 typedef struct _CorePart {
0073     Widget      self;       /* pointer to widget itself      */
0074     WidgetClass     widget_class;   /* pointer to Widget's ClassRec      */
0075     Widget      parent;     /* parent widget             */
0076     XrmName         xrm_name;       /* widget resource name quarkified   */
0077     Boolean         being_destroyed;    /* marked for destroy            */
0078     XtCallbackList  destroy_callbacks;  /* who to call when widget destroyed */
0079     XtPointer       constraints;        /* constraint record                 */
0080     Position        x, y;       /* window position           */
0081     Dimension       width, height;  /* window dimensions             */
0082     Dimension       border_width;   /* window border width           */
0083     Boolean         managed;            /* is widget geometry managed?       */
0084     Boolean     sensitive;      /* is widget sensitive to user events*/
0085     Boolean         ancestor_sensitive; /* are all ancestors sensitive?      */
0086     XtEventTable    event_table;    /* private to event dispatcher       */
0087     XtTMRec     tm;                 /* translation management            */
0088     XtTranslations  accelerators;       /* accelerator translations          */
0089     Pixel       border_pixel;   /* window border pixel           */
0090     Pixmap          border_pixmap;  /* window border pixmap or NULL      */
0091     WidgetList      popup_list;         /* list of popups                    */
0092     Cardinal        num_popups;         /* how many popups                   */
0093     String          name;       /* widget resource name          */
0094     Screen      *screen;        /* window's screen           */
0095     Colormap        colormap;           /* colormap                          */
0096     Window      window;     /* window ID                 */
0097     Cardinal        depth;      /* number of planes in window        */
0098     Pixel       background_pixel;   /* window background pixel       */
0099     Pixmap          background_pixmap;  /* window background pixmap or NULL  */
0100     Boolean         visible;        /* is window mapped and not occluded?*/
0101     Boolean     mapped_when_managed;/* map window if it's managed?       */
0102 } CorePart;
0103 
0104 typedef struct _WidgetRec {
0105     CorePart    core;
0106  } WidgetRec, CoreRec;
0107 
0108 
0109 
0110 /******************************************************************
0111  *
0112  * Core Class Structure. Widgets, regardless of their class, will have
0113  * these fields.  All widgets of a given class will have the same values
0114  * for these fields.  Widgets of a given class may also have additional
0115  * common fields.  These additional fields are included in incremental
0116  * class structures, such as CommandClass.
0117  *
0118  * The fields that are specific to this subclass, as opposed to fields that
0119  * are part of the superclass, are called "subclass fields" below.  Many
0120  * procedures are responsible only for the subclass fields, and not for
0121  * any superclass fields.
0122  *
0123  ********************************************************************/
0124 
0125 typedef struct _CoreClassPart {
0126     WidgetClass     superclass;     /* pointer to superclass ClassRec   */
0127     String          class_name;     /* widget resource class name       */
0128     Cardinal        widget_size;    /* size in bytes of widget record   */
0129     XtProc      class_initialize;   /* class initialization proc        */
0130     XtWidgetClassProc class_part_initialize; /* dynamic initialization      */
0131     XtEnum          class_inited;       /* has class been initialized?      */
0132     XtInitProc      initialize;     /* initialize subclass fields       */
0133     XtArgsProc      initialize_hook;    /* notify that initialize called    */
0134     XtRealizeProc   realize;        /* XCreateWindow for widget     */
0135     XtActionList    actions;        /* widget semantics name to proc map */
0136     Cardinal        num_actions;    /* number of entries in actions     */
0137     XtResourceList  resources;      /* resources for subclass fields    */
0138     Cardinal        num_resources;      /* number of entries in resources   */
0139     XrmClass        xrm_class;      /* resource class quarkified        */
0140     Boolean         compress_motion;    /* compress MotionNotify for widget */
0141     XtEnum          compress_exposure;  /* compress Expose events for widget*/
0142     Boolean         compress_enterleave;/* compress enter and leave events  */
0143     Boolean         visible_interest;   /* select for VisibilityNotify      */
0144     XtWidgetProc    destroy;        /* free data for subclass pointers  */
0145     XtWidgetProc    resize;     /* geom manager changed widget size */
0146     XtExposeProc    expose;     /* rediplay window          */
0147     XtSetValuesFunc set_values;     /* set subclass resource values     */
0148     XtArgsFunc      set_values_hook;    /* notify that set_values called    */
0149     XtAlmostProc    set_values_almost;  /* set_values got "Almost" geo reply */
0150     XtArgsProc      get_values_hook;    /* notify that get_values called    */
0151     XtAcceptFocusProc accept_focus;     /* assign input focus to widget     */
0152     XtVersionType   version;            /* version of intrinsics used       */
0153     XtPointer       callback_private;   /* list of callback offsets       */
0154     String          tm_table;           /* state machine                    */
0155     XtGeometryHandler query_geometry;   /* return preferred geometry        */
0156     XtStringProc    display_accelerator;/* display your accelerator     */
0157     XtPointer       extension;      /* pointer to extension record      */
0158  } CoreClassPart;
0159 
0160 typedef struct _WidgetClassRec {
0161     CoreClassPart core_class;
0162 } WidgetClassRec, CoreClassRec;
0163 
0164 externalref WidgetClassRec widgetClassRec;
0165 #define coreClassRec widgetClassRec
0166 
0167 _XFUNCPROTOEND
0168 
0169 #endif /* _XtCoreP_h */
0170 /* DON'T ADD STUFF AFTER THIS #endif */