17a84e134Smrg/* 27a84e134Smrg * Private declarations for ViewportWidgetClass 37a84e134Smrg */ 47a84e134Smrg 57a84e134Smrg/************************************************************ 67a84e134Smrg 77a84e134SmrgCopyright 1987, 1998 The Open Group 87a84e134Smrg 97a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its 107a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that 117a84e134Smrgthe above copyright notice appear in all copies and that both that 127a84e134Smrgcopyright notice and this permission notice appear in supporting 137a84e134Smrgdocumentation. 147a84e134Smrg 157a84e134SmrgThe above copyright notice and this permission notice shall be included in 167a84e134Smrgall copies or substantial portions of the Software. 177a84e134Smrg 187a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 197a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 207a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 217a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 227a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 237a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 247a84e134Smrg 257a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be 267a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings 277a84e134Smrgin this Software without prior written authorization from The Open Group. 287a84e134Smrg 297a84e134Smrg 307a84e134SmrgCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 317a84e134Smrg 327a84e134Smrg All Rights Reserved 337a84e134Smrg 34421c997bSmrgPermission to use, copy, modify, and distribute this software and its 35421c997bSmrgdocumentation for any purpose and without fee is hereby granted, 367a84e134Smrgprovided that the above copyright notice appear in all copies and that 37421c997bSmrgboth that copyright notice and this permission notice appear in 387a84e134Smrgsupporting documentation, and that the name of Digital not be 397a84e134Smrgused in advertising or publicity pertaining to distribution of the 40421c997bSmrgsoftware without specific, written prior permission. 417a84e134Smrg 427a84e134SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 437a84e134SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 447a84e134SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 457a84e134SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 467a84e134SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 477a84e134SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 487a84e134SmrgSOFTWARE. 497a84e134Smrg 507a84e134Smrg********************************************************/ 517a84e134Smrg 527a84e134Smrg#ifndef _ViewportP_h 537a84e134Smrg#define _ViewportP_h 547a84e134Smrg 557a84e134Smrg#include <X11/Xaw/Viewport.h> 567a84e134Smrg#include <X11/Xaw/FormP.h> 577a84e134Smrg 587a84e134Smrgtypedef struct { 597a84e134Smrg XtPointer extension; 607a84e134Smrg} ViewportClassPart; 617a84e134Smrg 627a84e134Smrgtypedef struct _ViewportClassRec { 637a84e134Smrg CoreClassPart core_class; 647a84e134Smrg CompositeClassPart composite_class; 657a84e134Smrg ConstraintClassPart constraint_class; 667a84e134Smrg FormClassPart form_class; 677a84e134Smrg ViewportClassPart viewport_class; 687a84e134Smrg} ViewportClassRec; 697a84e134Smrg 707a84e134Smrgextern ViewportClassRec viewportClassRec; 717a84e134Smrg 727a84e134Smrgtypedef struct _ViewportPart { 737a84e134Smrg /* resources */ 747a84e134Smrg Boolean forcebars; /* Whether we should always display 757a84e134Smrg the selected scrollbars */ 767a84e134Smrg Boolean allowhoriz; /* Whether we allow horizontal scrollbars */ 777a84e134Smrg Boolean allowvert; /* Whether we allow vertical scrollbars */ 787a84e134Smrg Boolean usebottom; /* True if horiz bars appear at bottom */ 797a84e134Smrg Boolean useright; /* True if vert bars appear at right */ 807a84e134Smrg XtCallbackList report_callbacks;/* when size/position changes */ 817a84e134Smrg 827a84e134Smrg /* private */ 837a84e134Smrg Widget clip, child; /* The clipping and (scrolled) child widgets */ 847a84e134Smrg Widget horiz_bar, vert_bar; /* What scrollbars we currently have */ 857a84e134Smrg#ifndef OLDXAW 865b16253fSmrg XtPointer pad[4]; /* for future use and keep binary compatibility */ 877a84e134Smrg#endif 887a84e134Smrg} ViewportPart; 897a84e134Smrg 907a84e134Smrgtypedef struct _ViewportRec { 917a84e134Smrg CorePart core; 927a84e134Smrg CompositePart composite; 937a84e134Smrg ConstraintPart constraint; 947a84e134Smrg FormPart form; 957a84e134Smrg ViewportPart viewport; 967a84e134Smrg} ViewportRec; 977a84e134Smrg 987a84e134Smrgtypedef struct { 997a84e134Smrg Bool reparented; /* True if child has been re-parented */ 1007a84e134Smrg} ViewportConstraintsPart; 1017a84e134Smrg 1027a84e134Smrgtypedef struct _ViewportConstraintsRec { 1037a84e134Smrg FormConstraintsPart form; 1047a84e134Smrg ViewportConstraintsPart viewport; 1057a84e134Smrg} ViewportConstraintsRec, *ViewportConstraints; 1067a84e134Smrg 1077a84e134Smrg#endif /* _ViewportP_h */ 108