rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1ViewportP.h
blobfdc1805412ec4a300a9e0c48138aa68f8a697b6b
1 /*
2 * $XConsortium: ViewportP.h,v 1.10 89/05/11 01:07:15 kit Exp $
3 * Private declarations for ViewportWidgetClass
4 */
6 /************************************************************
7 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 All Rights Reserved
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
28 ********************************************************/
30 #ifndef _ViewportP_h
31 #define _ViewportP_h
33 #include <./Xaw3_1Viewport.h>
34 #include <./Xaw3_1FormP.h>
36 typedef struct {int empty;} ViewportClassPart;
38 typedef struct _ViewportClassRec {
39 CoreClassPart core_class;
40 CompositeClassPart composite_class;
41 ConstraintClassPart constraint_class;
42 FormClassPart form_class;
43 ViewportClassPart viewport_class;
44 } ViewportClassRec;
46 extern ViewportClassRec viewportClassRec;
48 typedef struct _ViewportPart {
49 /* resources */
50 Boolean forcebars; /* Whether we should always display */
51 /* the selected scrollbars. */
52 Boolean allowhoriz; /* Whether we allow horizontal scrollbars. */
53 Boolean allowvert; /* Whether we allow vertical scrollbars. */
54 Boolean usebottom; /* True iff horiz bars appear at bottom. */
55 Boolean useright; /* True iff vert bars appear at right. */
56 /* private state */
57 Widget clip, child; /* The clipping and (scrolled) child widgets */
58 Widget horiz_bar, vert_bar;/* What scrollbars we currently have. */
59 } ViewportPart;
61 typedef struct _ViewportRec {
62 CorePart core;
63 CompositePart composite;
64 ConstraintPart constraint;
65 FormPart form;
66 ViewportPart viewport;
67 } ViewportRec;
69 typedef struct {
70 /* resources */
72 /* private state */
73 Boolean reparented; /* True if child has been re-parented */
74 } ViewportConstraintsPart;
76 typedef struct _ViewportConstraintsRec {
77 FormConstraintsPart form;
78 ViewportConstraintsPart viewport;
79 } ViewportConstraintsRec, *ViewportConstraints;
81 #endif /* _ViewportP_h */