X11PCDLEnable.h

Classes

X11PCDLEnable -- Class to store commands to enable clipping on an X11PixelCanvas. (full description)

class X11PCDLEnable : public X11PCDisplayListObject

Interface

Public Members
X11PCDLEnable()
X11PCDLEnable(X11PixelCanvas * xpc, Display::Option option)
virtual void translate(int xt, int yt)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int, Int)
virtual Char optType() const
virtual ~X11PCDLEnable()

Description

Prerequisite

Etymology

X11PCDLEnable : X11PixelCanvas Display List - Enable command

Synopsis

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

It stores the enable() command which is used to enable boolean options such as the clip window.

Motivation

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

Member Description

X11PCDLEnable()

Default Constructor Required

X11PCDLEnable(X11PixelCanvas * xpc, Display::Option option)

User Constructor

virtual void translate(int xt, int yt)

translate does nothing

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

draw calls xpc->enable(option)

virtual Char optType() const

For caching optimization

virtual ~X11PCDLEnable()

Destructor