/*
**   ----------------------------------------------------------------- 
**        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 _PIXMAPP_H
#define _PIXMAPP_H

#ifndef	NOIDENT
#ident  "@(#)PixmapP.h	1.3 91/07/26 include/Xol SMI"
#endif

#include "Xol/PrimitiveP.h"
#include "Xol/Pixmap.h"
#include "Xol/Olg.h"

typedef	void	(*OlPixmapComputeGeometry) OL_ARGS ((
			Widget,
			Boolean
));

/* inheritance tokens */

#define XtInheritOlPixmapComputeGeometry \
	((OlPixmapComputeGeometry) _XtInherit)

/*
 * Class structure:
 */

typedef struct _PixmapClassPart {
	OlPixmapComputeGeometry	compute_geometry;
} PixmapClassPart;

typedef struct _PixmapClassRec {
	CoreClassPart		core_class;
	PrimitiveClassPart	primitive_class;
	PixmapClassPart		pixmap_class;
} PixmapClassRec;

extern PixmapClassRec	pixmapClassRec;

/*
 * Instance structure:
 */

typedef struct _PixmapPart {
	/*
	 * Public:
	 */
	Pixmap		pixmap;
	Boolean		recompute_size;

	/*
	 * Private:
	 */
	XRectangle	pixmap_geometry;
	OlgAttrs	*pAttrs;
	Boolean		is_bitmap;
} PixmapPart;

typedef struct _PixmapRec {
	CorePart	core;
	PrimitivePart	primitive;
	PixmapPart	pixmap;
} PixmapRec;

#endif /* _PIXMAPP_H */
