X11PCDLGraphicsContext.h

Classes

X11PCDLGraphicsContext -- Class to store context commands for X11PixelCanvases, eg. linewidth. (full description)

class X11PCDLGraphicsContext : public X11PCDisplayListObject

Interface

Public Members
X11PCDLGraphicsContext()
X11PCDLGraphicsContext(const XGCValues & values, uLong mask)
virtual void translate(Int, Int)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int, Int)
virtual Char optType() const
virtual ~X11PCDLGraphicsContext()

Description

Prerequisite

Etymology

X11PCDLGraphicsContext : X11PixelCanvas Display List - Graphics context

Synopsis

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

The X11PCDLGraphicsContext is used to cache changes to the state variables in X that control drawing properties. X Properties it controls include

Motivation

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

Member Description

X11PCDLGraphicsContext()

Default Constructor Required

X11PCDLGraphicsContext(const XGCValues & values, uLong mask)

User Constructor

virtual void translate(Int, Int)

translate does nothing

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

apply the context

virtual Char optType() const

For caching optimization

virtual ~X11PCDLGraphicsContext()

Destructor