X11PCDLClearRegion.h

Classes

X11PCDLClearRegion -- X11 display list object that stores the clear command (full description)

class X11PCDLClearRegion : public X11PCDisplayListObject

Interface

Public Members
X11PCDLClearRegion()
X11PCDLClearRegion(X11PixelCanvas * xpc, Int x, Int y, uInt w, uInt h)
virtual void translate(Int tx, Int ty)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int tx, Int ty)
virtual Char optType() const
virtual ~X11PCDLClearRegion()

Description

Prerequisite

Etymology

X11PCDLClearRegion : X11PixelCanvas Display List Clear command

Synopsis

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

Cached version of the clear command which uses XFillRectangle to set the entire backing-store pixmap to the clear color.

Motivation

Needed to be able to clear a region of the pixelCanvas. Needed to be able to put all output graphics commands in a display list for fast and convenient processing.

Member Description

X11PCDLClearRegion()

Default Constructor Required

X11PCDLClearRegion(X11PixelCanvas * xpc, Int x, Int y, uInt w, uInt h)

User Constructor

virtual void translate(Int tx, Int ty)

translate moves the region

virtual void draw(::XDisplay * display, Drawable d, GC gc, Int tx, Int ty)

draw command

virtual Char optType() const

For caching optimization

virtual ~X11PCDLClearRegion()

Destructor