Xaw3_1ViewportP.h revision 749
425N/A/*
425N/A * $XConsortium: ViewportP.h,v 1.10 89/05/11 01:07:15 kit Exp $
1276N/A * Private declarations for ViewportWidgetClass
425N/A */
1345N/A
425N/A/************************************************************
425N/ACopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
919N/Aand the Massachusetts Institute of Technology, Cambridge, Massachusetts.
919N/A
919N/A All Rights Reserved
919N/A
919N/APermission to use, copy, modify, and distribute this software and its
919N/Adocumentation for any purpose and without fee is hereby granted,
919N/Aprovided that the above copyright notice appear in all copies and that
919N/Aboth that copyright notice and this permission notice appear in
919N/Asupporting documentation, and that the names of Digital or MIT not be
919N/Aused in advertising or publicity pertaining to distribution of the
919N/Asoftware without specific, written prior permission.
919N/A
919N/ADIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
919N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
919N/ADIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
919N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
919N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
425N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
425N/ASOFTWARE.
425N/A
425N/A********************************************************/
493N/A
425N/A#ifndef _ViewportP_h
425N/A#define _ViewportP_h
1276N/A
425N/A#include <./Xaw3_1Viewport.h>
911N/A#include <./Xaw3_1FormP.h>
1276N/A
1276N/Atypedef struct {int empty;} ViewportClassPart;
1276N/A
911N/Atypedef struct _ViewportClassRec {
425N/A CoreClassPart core_class;
1276N/A CompositeClassPart composite_class;
1233N/A ConstraintClassPart constraint_class;
1345N/A FormClassPart form_class;
425N/A ViewportClassPart viewport_class;
425N/A} ViewportClassRec;
493N/A
425N/Aextern ViewportClassRec viewportClassRec;
425N/A
425N/Atypedef struct _ViewportPart {
425N/A /* resources */
425N/A Boolean forcebars; /* Whether we should always display */
425N/A /* the selected scrollbars. */
493N/A Boolean allowhoriz; /* Whether we allow horizontal scrollbars. */
425N/A Boolean allowvert; /* Whether we allow vertical scrollbars. */
425N/A Boolean usebottom; /* True iff horiz bars appear at bottom. */
425N/A Boolean useright; /* True iff vert bars appear at right. */
425N/A /* private state */
425N/A Widget clip, child; /* The clipping and (scrolled) child widgets */
970N/A Widget horiz_bar, vert_bar;/* What scrollbars we currently have. */
970N/A} ViewportPart;
970N/A
425N/Atypedef struct _ViewportRec {
CorePart core;
CompositePart composite;
ConstraintPart constraint;
FormPart form;
ViewportPart viewport;
} ViewportRec;
typedef struct {
/* resources */
/* private state */
Boolean reparented; /* True if child has been re-parented */
} ViewportConstraintsPart;
typedef struct _ViewportConstraintsRec {
FormConstraintsPart form;
ViewportConstraintsPart viewport;
} ViewportConstraintsRec, *ViewportConstraints;
#endif /* _ViewportP_h */