X11PCDLMaskedImage.h

Classes

X11PCDLMaskedImage -- Class to store command for displaying a masked image on an X11PixelCanvas. (full description)

class X11PCDLMaskedImage : public X11PCDisplayListObject

Interface

Public Members
X11PCDLMaskedImage()
X11PCDLMaskedImage(XImage *xim, XImage *ximask, Int x, Int y)
virtual void translate(Int xt, Int yt)
virtual void draw(::XDisplay *display, Drawable d, GC gc, Int xt, Int yt)
virtual Char optType() const
virtual ~X11PCDLMaskedImage()

Description

Prerequisite

Etymology

X11PCDLMaskedImage : X11PixelCanvas Display List - Masked Image.

Synopsis

This class is designed for use with the X11PixelCanvas' caching mechanism.

X11PCDLMaskedImage stores a request to draw a masked image in the form of an XImage structure.

Note: Presently the image stored is first clipped to the window it was first drawn into.

Motivation

Needed to be able to put all output graphics commands in a display list for fast and convenient handling.

Member Description

X11PCDLMaskedImage()

Default Constructor Required

X11PCDLMaskedImage(XImage *xim, XImage *ximask, Int x, Int y)

User Constructor

virtual void translate(Int xt, Int yt)

translate the image

virtual void draw(::XDisplay *display, Drawable d, GC gc, Int xt, Int yt)

draw function

virtual Char optType() const

For caching optimization

virtual ~X11PCDLMaskedImage()

Destructor