Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*
0002  * Private declarations for ViewportWidgetClass
0003  */
0004 
0005 /************************************************************
0006 
0007 Copyright 1987, 1998  The Open Group
0008 
0009 Permission to use, copy, modify, distribute, and sell this software and its
0010 documentation for any purpose is hereby granted without fee, provided that
0011 the above copyright notice appear in all copies and that both that
0012 copyright notice and this permission notice appear in supporting
0013 documentation.
0014 
0015 The above copyright notice and this permission notice shall be included in
0016 all copies or substantial portions of the Software.
0017 
0018 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0019 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0020 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0021 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0022 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0023 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0024 
0025 Except as contained in this notice, the name of The Open Group shall not be
0026 used in advertising or otherwise to promote the sale, use or other dealings
0027 in this Software without prior written authorization from The Open Group.
0028 
0029 
0030 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
0031 
0032                         All Rights Reserved
0033 
0034 Permission to use, copy, modify, and distribute this software and its
0035 documentation for any purpose and without fee is hereby granted,
0036 provided that the above copyright notice appear in all copies and that
0037 both that copyright notice and this permission notice appear in
0038 supporting documentation, and that the name of Digital not be
0039 used in advertising or publicity pertaining to distribution of the
0040 software without specific, written prior permission.
0041 
0042 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0043 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0044 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0045 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0046 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0047 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0048 SOFTWARE.
0049 
0050 ********************************************************/
0051 
0052 #ifndef _ViewportP_h
0053 #define _ViewportP_h
0054 
0055 #include <X11/Xaw/Viewport.h>
0056 #include <X11/Xaw/FormP.h>
0057 
0058 typedef struct {
0059     XtPointer extension;
0060 } ViewportClassPart;
0061 
0062 typedef struct _ViewportClassRec {
0063     CoreClassPart   core_class;
0064     CompositeClassPart  composite_class;
0065     ConstraintClassPart constraint_class;
0066     FormClassPart   form_class;
0067     ViewportClassPart   viewport_class;
0068 } ViewportClassRec;
0069 
0070 extern ViewportClassRec viewportClassRec;
0071 
0072 typedef struct _ViewportPart {
0073     /* resources */
0074     Boolean forcebars;      /* Whether we should always display
0075                    the selected scrollbars */
0076     Boolean allowhoriz;     /* Whether we allow horizontal scrollbars */
0077     Boolean allowvert;      /* Whether we allow vertical scrollbars */
0078     Boolean usebottom;      /* True if horiz bars appear at bottom */
0079     Boolean useright;       /* True if vert bars appear at right */
0080     XtCallbackList report_callbacks;/* when size/position changes */
0081 
0082     /* private */
0083     Widget clip, child;     /* The clipping and (scrolled) child widgets */
0084     Widget horiz_bar, vert_bar; /* What scrollbars we currently have */
0085 #ifndef OLDXAW
0086     XtPointer pad[4];   /* for future use and keep binary compatibility */
0087 #endif
0088 } ViewportPart;
0089 
0090 typedef struct _ViewportRec {
0091     CorePart        core;
0092     CompositePart   composite;
0093     ConstraintPart  constraint;
0094     FormPart        form;
0095     ViewportPart    viewport;
0096 } ViewportRec;
0097 
0098 typedef struct {
0099     Bool reparented;        /* True if child has been re-parented */
0100 } ViewportConstraintsPart;
0101 
0102 typedef struct _ViewportConstraintsRec {
0103     FormConstraintsPart     form;
0104     ViewportConstraintsPart viewport;
0105 } ViewportConstraintsRec, *ViewportConstraints;
0106 
0107 #endif /* _ViewportP_h */