HookObjI.h revision 444c061a
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/* This object is implementation-dependent and private to the library. */
33
34typedef struct _HookObjRec *HookObject;
35typedef struct _HookObjClassRec *HookObjectClass;
36
37externalref WidgetClass hookObjectClass;
38
39typedef struct _HookObjPart {
40    /* resources */
41    XtCallbackList createhook_callbacks;
42    XtCallbackList changehook_callbacks;
43    XtCallbackList confighook_callbacks;
44    XtCallbackList geometryhook_callbacks;
45    XtCallbackList destroyhook_callbacks;
46    WidgetList shells;
47    Cardinal num_shells;
48    /* private data */
49    Cardinal max_shells;
50    Screen* screen;
51}HookObjPart;
52
53typedef struct _HookObjRec {
54    ObjectPart object;
55    HookObjPart hooks;
56} HookObjRec;
57
58typedef struct _HookObjClassPart {
59    int unused;
60} HookObjClassPart;
61
62typedef struct _HookObjClassRec {
63    ObjectClassPart object_class;
64    HookObjClassPart hook_class;
65} HookObjClassRec;
66
67externalref HookObjClassRec hookObjClassRec;
68
69#endif /* ifndef _Xt_HookObjI_h */
70
71
72