xref: /OK3568_Linux_fs/external/xserver/hw/dmx/config/CanvasP.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun Copyright 1987, 1998  The Open Group
4*4882a593Smuzhiyun Copyright 2002 Red Hat Inc., Durham, North Carolina.
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun Permission to use, copy, modify, distribute, and sell this software and its
7*4882a593Smuzhiyun documentation for any purpose is hereby granted without fee, provided that
8*4882a593Smuzhiyun the above copyright notice appear in all copies and that both that
9*4882a593Smuzhiyun copyright notice and this permission notice appear in supporting
10*4882a593Smuzhiyun documentation.
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun The above copyright notice and this permission notice shall be included in
13*4882a593Smuzhiyun all copies or substantial portions of the Software.
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16*4882a593Smuzhiyun IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17*4882a593Smuzhiyun FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18*4882a593Smuzhiyun OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19*4882a593Smuzhiyun AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20*4882a593Smuzhiyun CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun Except as contained in this notice, the name of The Open Group shall not be
23*4882a593Smuzhiyun used in advertising or otherwise to promote the sale, use or other dealings
24*4882a593Smuzhiyun in this Software without prior written authorization from The Open Group.
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun /*
29*4882a593Smuzhiyun  * Authors:
30*4882a593Smuzhiyun  *   Rickard E. (Rik) Faith <faith@redhat.com>
31*4882a593Smuzhiyun  *
32*4882a593Smuzhiyun  * This file was originally taken from xc/lib/Xaw/TemplateP.h
33*4882a593Smuzhiyun  */
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun #ifndef _CanvasP_h
36*4882a593Smuzhiyun #define _CanvasP_h
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun #include "Canvas.h"
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun /* include superclass private header file */
41*4882a593Smuzhiyun #include <X11/CoreP.h>
42*4882a593Smuzhiyun 
43*4882a593Smuzhiyun typedef struct {
44*4882a593Smuzhiyun     XtPointer extension;
45*4882a593Smuzhiyun } CanvasClassPart;
46*4882a593Smuzhiyun 
47*4882a593Smuzhiyun typedef struct _CanvasClassRec {
48*4882a593Smuzhiyun     CoreClassPart core_class;
49*4882a593Smuzhiyun     CanvasClassPart canvas_class;
50*4882a593Smuzhiyun } CanvasClassRec;
51*4882a593Smuzhiyun 
52*4882a593Smuzhiyun extern CanvasClassRec canvasClassRec;
53*4882a593Smuzhiyun 
54*4882a593Smuzhiyun typedef struct {
55*4882a593Smuzhiyun     XtCallbackList input_callback;
56*4882a593Smuzhiyun     XtCallbackList expose_callback;
57*4882a593Smuzhiyun     XtCallbackList resize_callback;
58*4882a593Smuzhiyun } CanvasPart;
59*4882a593Smuzhiyun 
60*4882a593Smuzhiyun typedef struct _CanvasRec {
61*4882a593Smuzhiyun     CorePart core;
62*4882a593Smuzhiyun     CanvasPart canvas;
63*4882a593Smuzhiyun } CanvasRec;
64*4882a593Smuzhiyun 
65*4882a593Smuzhiyun #endif                          /* _CanvasP_h */
66