Viewport.h revision 749
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe/* $XConsortium: Viewport.h,v 1.23 94/04/17 20:13:27 kaleb Exp $ */
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe/************************************************************
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCopyright (c) 1987, 1994 X Consortium
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePermission is hereby granted, free of charge, to any person obtaining a copy
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweof this software and associated documentation files (the "Software"), to deal
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowein the Software without restriction, including without limitation the rights
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowecopies of the Software, and to permit persons to whom the Software is
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowefurnished to do so, subject to the following conditions:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweThe above copyright notice and this permission notice shall be included in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall copies or substantial portions of the Software.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweExcept as contained in this notice, the name of the X Consortium shall not be
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweused in advertising or otherwise to promote the sale, use or other dealings
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowein this Software without prior written authorization from the X Consortium.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe All Rights Reserved
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePermission to use, copy, modify, and distribute this software and its
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowedocumentation for any purpose and without fee is hereby granted,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweprovided that the above copyright notice appear in all copies and that
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweboth that copyright notice and this permission notice appear in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowesupporting documentation, and that the name of Digital not be
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweused in advertising or publicity pertaining to distribution of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowesoftware without specific, written prior permission.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSOFTWARE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe********************************************************/
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#ifndef _XawViewport_h
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#define _XawViewport_h
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#include <X11/Xaw/Form.h>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#include <X11/Xaw/Reports.h>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe/* Resources:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Name Class RepType Default Value
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ---- ----- ------- -------------
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe allowHoriz Boolean Boolean False
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe allowVert Boolean Boolean False
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe background Background Pixel XtDefaultBackground
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe border BorderColor Pixel XtDefaultForeground
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe borderWidth BorderWidth Dimension 1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe destroyCallback Callback Pointer NULL
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe foreceBars Boolean Boolean False
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe height Height Dimension 0
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mappedWhenManaged MappedWhenManaged Boolean True
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe reportCallback ReportCallback Pointer NULL
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sensitive Sensitive Boolean True
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe useBottom Boolean Boolean False
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe useRight Boolean Boolean False
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe width Width Dimension 0
x Position Position 0
y Position Position 0
*/
/* fields added to Form */
#ifndef _XtStringDefs_h_
#define XtNforceBars "forceBars"
#define XtNallowHoriz "allowHoriz"
#define XtNallowVert "allowVert"
#define XtNuseBottom "useBottom"
#define XtNuseRight "useRight"
#endif
extern WidgetClass viewportWidgetClass;
typedef struct _ViewportClassRec *ViewportWidgetClass;
typedef struct _ViewportRec *ViewportWidget;
_XFUNCPROTOBEGIN
extern void XawViewportSetLocation (
#if NeedFunctionPrototypes
Widget /* gw */,
#if NeedWidePrototypes
/* float */ double /* xoff */,
/* float */ double /* yoff */
#else
float /* xoff */,
float /* yoff */
#endif
#endif
);
extern void XawViewportSetCoordinates (
#if NeedFunctionPrototypes
Widget /* gw */,
#if NeedWidePrototypes
/* Position */ int /* x */,
/* Position */ int /* y */
#else
Position /* x */,
Position /* y */
#endif
#endif
);
_XFUNCPROTOEND
#endif /* _XawViewport_h */