/*
**   ----------------------------------------------------------------- 
**        Copyright (C) 1990, 1991 Sun Microsystems, Inc
**                   All rights reserved.
**         Notice of copyright on this source code
**         product does not indicate publication.
**   
**   RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
**   the U.S. Government is subject to restrictions as set forth
**   in subparagraph (c)(1)(ii) of the Rights in Technical Data
**   and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
**   and FAR 52.227-19 (c) (June 1987).
**   
**     Sun Microsystems, Inc., 2550 Garcia Avenue,
**     Mountain View, California 94043.
**   ----------------------------------------------------------------- 
*/

#ifndef _DRAWAREAP_H
#define _DRAWAREAP_H

#ifndef	NOIDENT
#ident  "@(#)DrawAreaP.h	1.5 91/07/23 include/Xol SMI"
#endif

#include	<Xol/BulletinBP.h>	/* include superclasses' header */
#include	<Xol/DrawArea.h>

typedef struct
{
	XtPointer extension;   /* No used yet */
} DrawAreaClassPart;


typedef struct _DrawAreaClassRec
{
   CoreClassPart		core_class;
   CompositeClassPart		composite_class;
   ConstraintClassPart		constraint_class;
   ManagerClassPart		manager_class;
   BulletinBoardClassPart	bulletin_class;
   DrawAreaClassPart		drawarea_class;
} DrawAreaClassRec;

extern DrawAreaClassRec drawAreaClassRec;

/* New fields for the Drawing Area widget record */

typedef struct
{
   XtCallbackList	exposeCallback;
   XtCallbackList	gExposeCallback;
   XtCallbackList	resizeCallback;
   Visual*		visual;
   Boolean		resizeflag;
   Pixel		foreground;
   unsigned char	dyn_flags;
   XtPointer		extension;	/* No used yet */
} DrawAreaPart;


/*
** Full instance record declaration
*/

typedef struct _DrawAreaRec
{
    CorePart		core;
    CompositePart	composite;
    ConstraintPart	constraint;
    ManagerPart		manager;
    BulletinBoardPart	bulletin;
    DrawAreaPart	draw_area;
} DrawAreaRec;

/* dynamics resource bit masks */
#define	OL_B_DRAWAREA_FG	(1 << 0)

#endif /* _DRAWAREAP_H */
