17a84e134Smrg/*
27a84e134Smrg *
37a84e134SmrgCopyright 1990, 1998  The Open Group
47a84e134Smrg
57a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its
67a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that
77a84e134Smrgthe above copyright notice appear in all copies and that both that
87a84e134Smrgcopyright notice and this permission notice appear in supporting
97a84e134Smrgdocumentation.
107a84e134Smrg
117a84e134SmrgThe above copyright notice and this permission notice shall be included in
127a84e134Smrgall copies or substantial portions of the Software.
137a84e134Smrg
147a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
177a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
187a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
197a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
207a84e134Smrg
217a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be
227a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings
237a84e134Smrgin this Software without prior written authorization from The Open Group.
247a84e134Smrg */
257a84e134Smrg
267a84e134Smrg#ifndef _Xaw_Reports_h
277a84e134Smrg#define _Xaw_Reports_h
287a84e134Smrg
297a84e134Smrg#include <X11/Intrinsic.h>
307a84e134Smrg
317a84e134Smrg/*
327a84e134Smrg * XawPannerReport - this structure is used by the reportCallback of the
337a84e134Smrg * Panner, Porthole, Viewport, and Scrollbar widgets to report its position.
347a84e134Smrg * All fields must be filled in, although the changed field may be used as
357a84e134Smrg * a hint as to which fields have been altered since the last report.
367a84e134Smrg */
377a84e134Smrgtypedef struct {
387a84e134Smrg    unsigned int changed;		/* mask, see below */
397a84e134Smrg    Position slider_x, slider_y;	/* location of slider within outer */
407a84e134Smrg    Dimension slider_width, slider_height;  /* size of slider */
417a84e134Smrg    Dimension canvas_width, canvas_height;  /* size of canvas */
427a84e134Smrg} XawPannerReport;
437a84e134Smrg
447a84e134Smrg#define XawPRSliderX		(1 << 0)
457a84e134Smrg#define XawPRSliderY		(1 << 1)
467a84e134Smrg#define XawPRSliderWidth	(1 << 2)
477a84e134Smrg#define XawPRSliderHeight	(1 << 3)
487a84e134Smrg#define XawPRCanvasWidth	(1 << 4)
497a84e134Smrg#define XawPRCanvasHeight	(1 << 5)
507a84e134Smrg#define XawPRAll		(63)	/* union of above */
517a84e134Smrg
527a84e134Smrg#define XtNreportCallback "reportCallback"
537a84e134Smrg#define XtCReportCallback "reportCallback"
547a84e134Smrg
557a84e134Smrg#endif /* _Xaw_Reports_h */
56