Reports.h revision 7a84e134
1/*
2 * $Xorg: Reports.h,v 1.5 2001/02/09 02:03:45 xorgcvs Exp $
3 *
4Copyright 1990, 1998  The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall not be
23used in advertising or otherwise to promote the sale, use or other dealings
24in this Software without prior written authorization from The Open Group.
25 */
26
27#ifndef _Xaw_Reports_h
28#define _Xaw_Reports_h
29
30#include <X11/Intrinsic.h>
31
32/*
33 * XawPannerReport - this structure is used by the reportCallback of the
34 * Panner, Porthole, Viewport, and Scrollbar widgets to report its position.
35 * All fields must be filled in, although the changed field may be used as
36 * a hint as to which fields have been altered since the last report.
37 */
38typedef struct {
39    unsigned int changed;		/* mask, see below */
40    Position slider_x, slider_y;	/* location of slider within outer */
41    Dimension slider_width, slider_height;  /* size of slider */
42    Dimension canvas_width, canvas_height;  /* size of canvas */
43} XawPannerReport;
44
45#define XawPRSliderX		(1 << 0)
46#define XawPRSliderY		(1 << 1)
47#define XawPRSliderWidth	(1 << 2)
48#define XawPRSliderHeight	(1 << 3)
49#define XawPRCanvasWidth	(1 << 4)
50#define XawPRCanvasHeight	(1 << 5)
51#define XawPRAll		(63)	/* union of above */
52
53#define XtNreportCallback "reportCallback"
54#define XtCReportCallback "reportCallback"
55
56#endif /* _Xaw_Reports_h */
57