X11PCDLSetClearColor.h

Classes

X11PCDLSetClearColor -- Class to store and cache X11PixelCanvas setclearcolor command. (full description)

class X11PCDLSetClearColor : public X11PCDisplayListObject

Interface

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

Description

Prerequisite

Etymology

X11PCDLSetClearColor : X11PixelCanvas Display List - setClearColor command

Synopsis

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

This class stores the clear command, which it applies to the stored X11PixelCanvas.

Motivation

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

Member Description

X11PCDLSetClearColor()

Default Constructor Required

X11PCDLSetClearColor(X11PixelCanvas * xpc, uInt color)

User Constructor

virtual void translate(Int, Int)

translate does nothing

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

draw command sets the clear color

virtual Char optType() const

For caching optimization

virtual ~X11PCDLSetClearColor()

Destructor