PageRenderTime 42ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/recipes/xorg-lib/xorg-headers-native/X11/CoreP.h

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