HookObjI.h revision 2265a131
1/* $Xorg: HookObjI.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ 2 3/* 4 5Copyright 1994, 1998 The Open Group 6 7Permission to use, copy, modify, distribute, and sell this software and its 8documentation for any purpose is hereby granted without fee, provided that 9the above copyright notice appear in all copies and that both that 10copyright notice and this permission notice appear in supporting 11documentation. 12 13The above copyright notice and this permission notice shall be included in 14all copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall not be 24used in advertising or otherwise to promote the sale, use or other dealings 25in this Software without prior written authorization from The Open Group. 26 27*/ 28 29#ifndef _XtHookObjI_h 30#define _XtHookObjI_h 31 32_XFUNCPROTOBEGIN 33 34/* This object is implementation-dependent and private to the library. */ 35 36typedef struct _HookObjRec *HookObject; 37typedef struct _HookObjClassRec *HookObjectClass; 38 39externalref WidgetClass hookObjectClass; 40 41typedef struct _HookObjPart { 42 /* resources */ 43 XtCallbackList createhook_callbacks; 44 XtCallbackList changehook_callbacks; 45 XtCallbackList confighook_callbacks; 46 XtCallbackList geometryhook_callbacks; 47 XtCallbackList destroyhook_callbacks; 48 WidgetList shells; 49 Cardinal num_shells; 50 /* private data */ 51 Cardinal max_shells; 52 Screen* screen; 53}HookObjPart; 54 55typedef struct _HookObjRec { 56 ObjectPart object; 57 HookObjPart hooks; 58} HookObjRec; 59 60typedef struct _HookObjClassPart { 61 int unused; 62} HookObjClassPart; 63 64typedef struct _HookObjClassRec { 65 ObjectClassPart object_class; 66 HookObjClassPart hook_class; 67} HookObjClassRec; 68 69externalref HookObjClassRec hookObjClassRec; 70 71_XFUNCPROTOEND 72 73#endif /* ifndef _Xt_HookObjI_h */ 74 75 76