Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/X11/CoreP.h
$ cat -n /usr/include/X11/CoreP.h 1 /*********************************************************** 2 3 Copyright 1987, 1988, 1998 The Open Group 4 5 Permission to use, copy, modify, distribute, and sell this software and its 6 documentation for any purpose is hereby granted without fee, provided that 7 the above copyright notice appear in all copies and that both that 8 copyright notice and this permission notice appear in supporting 9 documentation. 10 11 The above copyright notice and this permission notice shall be included in 12 all copies or substantial portions of the Software. 13 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21 Except as contained in this notice, the name of The Open Group shall not be 22 used in advertising or otherwise to promote the sale, use or other dealings 23 in this Software without prior written authorization from The Open Group. 24 25 26 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 27 28 All Rights Reserved 29 30 Permission to use, copy, modify, and distribute this software and its 31 documentation for any purpose and without fee is hereby granted, 32 provided that the above copyright notice appear in all copies and that 33 both that copyright notice and this permission notice appear in 34 supporting documentation, and that the name of Digital not be 35 used in advertising or publicity pertaining to distribution of the 36 software without specific, written prior permission. 37 38 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 39 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 40 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 41 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 42 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 43 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 44 SOFTWARE. 45 46 ******************************************************************/ 47 48 #ifndef XtCoreP_h 49 #define XtCoreP_h 50 51 #include
52 53 _XFUNCPROTOBEGIN 54 55 externalref int _XtInheritTranslations; 56 57 #define XtInheritTranslations ((String) &_XtInheritTranslations) 58 #define XtInheritRealize ((XtRealizeProc) _XtInherit) 59 #define XtInheritResize ((XtWidgetProc) _XtInherit) 60 #define XtInheritExpose ((XtExposeProc) _XtInherit) 61 #define XtInheritSetValuesAlmost ((XtAlmostProc) _XtInherit) 62 #define XtInheritAcceptFocus ((XtAcceptFocusProc) _XtInherit) 63 #define XtInheritQueryGeometry ((XtGeometryHandler) _XtInherit) 64 #define XtInheritDisplayAccelerator ((XtStringProc) _XtInherit) 65 66 /*************************************************************** 67 * Widget Core Data Structures 68 * 69 * 70 **************************************************************/ 71 72 typedef struct _CorePart { 73 Widget self; /* pointer to widget itself */ 74 WidgetClass widget_class; /* pointer to Widget's ClassRec */ 75 Widget parent; /* parent widget */ 76 XrmName xrm_name; /* widget resource name quarkified */ 77 Boolean being_destroyed; /* marked for destroy */ 78 XtCallbackList destroy_callbacks; /* who to call when widget destroyed */ 79 XtPointer constraints; /* constraint record */ 80 Position x, y; /* window position */ 81 Dimension width, height; /* window dimensions */ 82 Dimension border_width; /* window border width */ 83 Boolean managed; /* is widget geometry managed? */ 84 Boolean sensitive; /* is widget sensitive to user events*/ 85 Boolean ancestor_sensitive; /* are all ancestors sensitive? */ 86 XtEventTable event_table; /* private to event dispatcher */ 87 XtTMRec tm; /* translation management */ 88 XtTranslations accelerators; /* accelerator translations */ 89 Pixel border_pixel; /* window border pixel */ 90 Pixmap border_pixmap; /* window border pixmap or NULL */ 91 WidgetList popup_list; /* list of popups */ 92 Cardinal num_popups; /* how many popups */ 93 String name; /* widget resource name */ 94 Screen *screen; /* window's screen */ 95 Colormap colormap; /* colormap */ 96 Window window; /* window ID */ 97 Cardinal depth; /* number of planes in window */ 98 Pixel background_pixel; /* window background pixel */ 99 Pixmap background_pixmap; /* window background pixmap or NULL */ 100 Boolean visible; /* is window mapped and not occluded?*/ 101 Boolean mapped_when_managed;/* map window if it's managed? */ 102 } CorePart; 103 104 typedef struct _WidgetRec { 105 CorePart core; 106 } WidgetRec, CoreRec; 107 108 109 110 /****************************************************************** 111 * 112 * Core Class Structure. Widgets, regardless of their class, will have 113 * these fields. All widgets of a given class will have the same values 114 * for these fields. Widgets of a given class may also have additional 115 * common fields. These additional fields are included in incremental 116 * class structures, such as CommandClass. 117 * 118 * The fields that are specific to this subclass, as opposed to fields that 119 * are part of the superclass, are called "subclass fields" below. Many 120 * procedures are responsible only for the subclass fields, and not for 121 * any superclass fields. 122 * 123 ********************************************************************/ 124 125 typedef struct _CoreClassPart { 126 WidgetClass superclass; /* pointer to superclass ClassRec */ 127 String class_name; /* widget resource class name */ 128 Cardinal widget_size; /* size in bytes of widget record */ 129 XtProc class_initialize; /* class initialization proc */ 130 XtWidgetClassProc class_part_initialize; /* dynamic initialization */ 131 XtEnum class_inited; /* has class been initialized? */ 132 XtInitProc initialize; /* initialize subclass fields */ 133 XtArgsProc initialize_hook; /* notify that initialize called */ 134 XtRealizeProc realize; /* XCreateWindow for widget */ 135 XtActionList actions; /* widget semantics name to proc map */ 136 Cardinal num_actions; /* number of entries in actions */ 137 XtResourceList resources; /* resources for subclass fields */ 138 Cardinal num_resources; /* number of entries in resources */ 139 XrmClass xrm_class; /* resource class quarkified */ 140 Boolean compress_motion; /* compress MotionNotify for widget */ 141 XtEnum compress_exposure; /* compress Expose events for widget*/ 142 Boolean compress_enterleave;/* compress enter and leave events */ 143 Boolean visible_interest; /* select for VisibilityNotify */ 144 XtWidgetProc destroy; /* free data for subclass pointers */ 145 XtWidgetProc resize; /* geom manager changed widget size */ 146 XtExposeProc expose; /* rediplay window */ 147 XtSetValuesFunc set_values; /* set subclass resource values */ 148 XtArgsFunc set_values_hook; /* notify that set_values called */ 149 XtAlmostProc set_values_almost; /* set_values got "Almost" geo reply */ 150 XtArgsProc get_values_hook; /* notify that get_values called */ 151 XtAcceptFocusProc accept_focus; /* assign input focus to widget */ 152 XtVersionType version; /* version of intrinsics used */ 153 XtPointer callback_private; /* list of callback offsets */ 154 String tm_table; /* state machine */ 155 XtGeometryHandler query_geometry; /* return preferred geometry */ 156 XtStringProc display_accelerator;/* display your accelerator */ 157 XtPointer extension; /* pointer to extension record */ 158 } CoreClassPart; 159 160 typedef struct _WidgetClassRec { 161 CoreClassPart core_class; 162 } WidgetClassRec, CoreClassRec; 163 164 externalref WidgetClassRec widgetClassRec; 165 #define coreClassRec widgetClassRec 166 167 _XFUNCPROTOEND 168 169 #endif /* _XtCoreP_h */ 170 /* DON'T ADD STUFF AFTER THIS #endif */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™