1/* 2 * 3Copyright 1990, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall not be 22used in advertising or otherwise to promote the sale, use or other dealings 23in this Software without prior written authorization from The Open Group. 24 * 25 * Author: Jim Fulton, MIT X Consortium 26 */ 27 28#ifndef _XawPorthole_h 29#define _XawPorthole_h 30 31#include <X11/Intrinsic.h> 32#include <X11/Xaw/Reports.h> 33 34/***************************************************************************** 35 * 36 * Porthole Widget (subclass of Composite) 37 * 38 * This widget is similar to a viewport without scrollbars. Child movement 39 * is done by external panners or scrollbars. 40 * 41 * Parameters: 42 * 43 * Name Class Type Default 44 * ---- ----- ---- ------- 45 * 46 * background Background Pixel XtDefaultBackground 47 * border BorderColor Pixel XtDefaultForeground 48 * borderWidth BorderWidth Dimension 1 49 * height Height Dimension 0 50 * reportCallback ReportCallback Pointer NULL 51 * width Width Dimension 0 52 * x Position Position 0 53 * y Position Position 0 54 * 55 *****************************************************************************/ 56 57extern WidgetClass portholeWidgetClass; 58typedef struct _PortholeClassRec *PortholeWidgetClass; 59typedef struct _PortholeRec *PortholeWidget; 60 61#endif /* _XawPorthole_h */ 62