X11PCDLClear.h

Classes

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

class X11PCDLClear : public X11PCDisplayListObject

Interface

Public Members
X11PCDLClear()
X11PCDLClear(X11PixelCanvas * xpc)
virtual void translate(Int, Int)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int, Int)
virtual Char optType() const
virtual ~X11PCDLClear()

Description

Prerequisite

Etymology

X11PCDLClear : 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 put all output graphics commands in a display list for fast and convenient processing.

Member Description

X11PCDLClear()

Default Constructor Required

X11PCDLClear(X11PixelCanvas * xpc)

User Constructor

virtual void translate(Int, Int)

translate does nothing

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

draw command

virtual Char optType() const

For caching optimization

virtual ~X11PCDLClear()

Destructor