1706f2543Smrg/* 2706f2543Smrg 3706f2543SmrgCopyright 1987, 1998 The Open Group 4706f2543SmrgCopyright 2002 Red Hat Inc., Durham, North Carolina. 5706f2543Smrg 6706f2543SmrgPermission to use, copy, modify, distribute, and sell this software and its 7706f2543Smrgdocumentation for any purpose is hereby granted without fee, provided that 8706f2543Smrgthe above copyright notice appear in all copies and that both that 9706f2543Smrgcopyright notice and this permission notice appear in supporting 10706f2543Smrgdocumentation. 11706f2543Smrg 12706f2543SmrgThe above copyright notice and this permission notice shall be included in 13706f2543Smrgall copies or substantial portions of the Software. 14706f2543Smrg 15706f2543SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16706f2543SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17706f2543SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18706f2543SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19706f2543SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20706f2543SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21706f2543Smrg 22706f2543SmrgExcept as contained in this notice, the name of The Open Group shall not be 23706f2543Smrgused in advertising or otherwise to promote the sale, use or other dealings 24706f2543Smrgin this Software without prior written authorization from The Open Group. 25706f2543Smrg 26706f2543Smrg*/ 27706f2543Smrg 28706f2543Smrg/* 29706f2543Smrg * Authors: 30706f2543Smrg * Rickard E. (Rik) Faith <faith@redhat.com> 31706f2543Smrg * 32706f2543Smrg * This file was originally taken from xc/lib/Xaw/TemplateP.h 33706f2543Smrg */ 34706f2543Smrg 35706f2543Smrg#ifndef _CanvasP_h 36706f2543Smrg#define _CanvasP_h 37706f2543Smrg 38706f2543Smrg#include "Canvas.h" 39706f2543Smrg 40706f2543Smrg/* include superclass private header file */ 41706f2543Smrg#include <X11/CoreP.h> 42706f2543Smrg 43706f2543Smrgtypedef struct { 44706f2543Smrg XtPointer extension; 45706f2543Smrg} CanvasClassPart; 46706f2543Smrg 47706f2543Smrgtypedef struct _CanvasClassRec { 48706f2543Smrg CoreClassPart core_class; 49706f2543Smrg CanvasClassPart canvas_class; 50706f2543Smrg} CanvasClassRec; 51706f2543Smrg 52706f2543Smrgextern CanvasClassRec canvasClassRec; 53706f2543Smrg 54706f2543Smrgtypedef struct { 55706f2543Smrg XtCallbackList input_callback; 56706f2543Smrg XtCallbackList expose_callback; 57706f2543Smrg XtCallbackList resize_callback; 58706f2543Smrg} CanvasPart; 59706f2543Smrg 60706f2543Smrgtypedef struct _CanvasRec { 61706f2543Smrg CorePart core; 62706f2543Smrg CanvasPart canvas; 63706f2543Smrg} CanvasRec; 64706f2543Smrg 65706f2543Smrg#endif /* _CanvasP_h */ 66