| 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 _Xt_RectObjP_h_ |
| 49 | #define _Xt_RectObjP_h_ |
| 50 | |
| 51 | #include <X11/RectObj.h> |
| 52 | #include <X11/ObjectP.h> |
| 53 | |
| 54 | _XFUNCPROTOBEGIN |
| 55 | |
| 56 | /********************************************************** |
| 57 | * Rectangle Object Instance Data Structures |
| 58 | * |
| 59 | **********************************************************/ |
| 60 | /* these fields match CorePart and can not be changed */ |
| 61 | |
| 62 | typedef struct _RectObjPart { |
| 63 | Position x, y; /* rectangle position */ |
| 64 | Dimension width, height; /* rectangle dimensions */ |
| 65 | Dimension border_width; /* rectangle border width */ |
| 66 | Boolean managed; /* is widget geometry managed? */ |
| 67 | Boolean sensitive; /* is widget sensitive to user events*/ |
| 68 | Boolean ancestor_sensitive; /* are all ancestors sensitive? */ |
| 69 | }RectObjPart; |
| 70 | |
| 71 | typedef struct _RectObjRec { |
| 72 | ObjectPart object; |
| 73 | RectObjPart rectangle; |
| 74 | } RectObjRec; |
| 75 | |
| 76 | |
| 77 | |
| 78 | /******************************************************** |
| 79 | * Rectangle Object Class Data Structures |
| 80 | * |
| 81 | ********************************************************/ |
| 82 | /* these fields match CoreClassPart and can not be changed */ |
| 83 | /* ideally these structures would only contain the fields required; |
| 84 | but because the CoreClassPart cannot be changed at this late date |
| 85 | extraneous fields are necessary to make the field offsets match */ |
| 86 | |
| 87 | typedef struct _RectObjClassPart { |
| 88 | |
| 89 | WidgetClass superclass; /* pointer to superclass ClassRec */ |
| 90 | String class_name; /* widget resource class name */ |
| 91 | Cardinal widget_size; /* size in bytes of widget record */ |
| 92 | XtProc class_initialize; /* class initialization proc */ |
| 93 | XtWidgetClassProc class_part_initialize; /* dynamic initialization */ |
| 94 | XtEnum class_inited; /* has class been initialized? */ |
| 95 | XtInitProc initialize; /* initialize subclass fields */ |
| 96 | XtArgsProc initialize_hook; /* notify that initialize called */ |
| 97 | XtProc rect1; /* NULL */ |
| 98 | XtPointer rect2; /* NULL */ |
| 99 | Cardinal rect3; /* NULL */ |
| 100 | XtResourceList resources; /* resources for subclass fields */ |
| 101 | Cardinal num_resources; /* number of entries in resources */ |
| 102 | XrmClass xrm_class; /* resource class quarkified */ |
| 103 | Boolean rect4; /* NULL */ |
| 104 | XtEnum rect5; /* NULL */ |
| 105 | Boolean rect6; /* NULL */ |
| 106 | Boolean rect7; /* NULL */ |
| 107 | XtWidgetProc destroy; /* free data for subclass pointers */ |
| 108 | XtWidgetProc resize; /* geom manager changed widget size */ |
| 109 | XtExposeProc expose; /* rediplay rectangle */ |
| 110 | XtSetValuesFunc set_values; /* set subclass resource values */ |
| 111 | XtArgsFunc set_values_hook; /* notify that set_values called */ |
| 112 | XtAlmostProc set_values_almost; /* set values almost for geometry */ |
| 113 | XtArgsProc get_values_hook; /* notify that get_values called */ |
| 114 | XtProc rect9; /* NULL */ |
| 115 | XtVersionType version; /* version of intrinsics used */ |
| 116 | XtPointer callback_private; /* list of callback offsets */ |
| 117 | String rect10; /* NULL */ |
| 118 | XtGeometryHandler query_geometry; /* return preferred geometry */ |
| 119 | XtProc rect11; /* NULL */ |
| 120 | XtPointer extension; /* pointer to extension record */ |
| 121 | } RectObjClassPart; |
| 122 | |
| 123 | typedef struct _RectObjClassRec { |
| 124 | RectObjClassPart rect_class; |
| 125 | } RectObjClassRec; |
| 126 | |
| 127 | externalref RectObjClassRec rectObjClassRec; |
| 128 | |
| 129 | _XFUNCPROTOEND |
| 130 | |
| 131 | #endif /*_Xt_RectObjP_h_*/ |