Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:28

0001 /***********************************************************
0002 
0003 Copyright 1987, 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 
0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
0027 
0028                         All Rights Reserved
0029 
0030 Permission to use, copy, modify, and distribute this software and its
0031 documentation for any purpose and without fee is hereby granted,
0032 provided that the above copyright notice appear in all copies and that
0033 both that copyright notice and this permission notice appear in
0034 supporting documentation, and that the name of Digital not be
0035 used in advertising or publicity pertaining to distribution of the
0036 software without specific, written prior permission.
0037 
0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0044 SOFTWARE.
0045 
0046 ******************************************************************/
0047 
0048 #ifndef _XtCompositeP_h
0049 #define _XtCompositeP_h
0050 
0051 #include <X11/Composite.h>
0052 
0053 _XFUNCPROTOBEGIN
0054 
0055 /************************************************************************
0056  *
0057  * Additional instance fields for widgets of (sub)class 'Composite'
0058  *
0059  ************************************************************************/
0060 
0061 typedef struct _CompositePart {
0062     WidgetList  children;        /* array of ALL widget children         */
0063     Cardinal    num_children;        /* total number of widget children      */
0064     Cardinal    num_slots;           /* number of slots in children array    */
0065     XtOrderProc insert_position;     /* compute position of new child        */
0066 } CompositePart,*CompositePtr;
0067 
0068 typedef struct _CompositeRec {
0069     CorePart      core;
0070     CompositePart composite;
0071 } CompositeRec;
0072 
0073 /*********************************************************************
0074  *
0075  *  Additional class fields for widgets of (sub)class 'Composite'
0076  *
0077  ********************************************************************/
0078 
0079 typedef struct _CompositeClassPart {
0080     XtGeometryHandler geometry_manager;   /* geometry manager for children   */
0081     XtWidgetProc      change_managed;     /* change managed state of child   */
0082     XtWidgetProc      insert_child;   /* physically add child to parent  */
0083     XtWidgetProc      delete_child;   /* physically remove child         */
0084     XtPointer         extension;      /* pointer to extension record     */
0085 } CompositeClassPart,*CompositePartPtr;
0086 
0087 typedef struct {
0088     XtPointer next_extension;   /* 1st 4 mandated for all extension records */
0089     XrmQuark record_type;   /* NULLQUARK; on CompositeClassPart */
0090     long version;       /* must be XtCompositeExtensionVersion */
0091     Cardinal record_size;   /* sizeof(CompositeClassExtensionRec) */
0092     Boolean accepts_objects;
0093     Boolean allows_change_managed_set;
0094 } CompositeClassExtensionRec, *CompositeClassExtension;
0095 
0096 
0097 typedef struct _CompositeClassRec {
0098      CoreClassPart      core_class;
0099      CompositeClassPart composite_class;
0100 } CompositeClassRec;
0101 
0102 externalref CompositeClassRec compositeClassRec;
0103 
0104 _XFUNCPROTOEND
0105 
0106 #define XtCompositeExtensionVersion 2L
0107 #define XtInheritGeometryManager ((XtGeometryHandler) _XtInherit)
0108 #define XtInheritChangeManaged ((XtWidgetProc) _XtInherit)
0109 #define XtInheritInsertChild ((XtWidgetProc) _XtInherit)
0110 #define XtInheritDeleteChild ((XtWidgetProc) _XtInherit)
0111 
0112 #endif /* _XtCompositeP_h */
0113 /* DON'T ADD STUFF AFTER THIS #endif */