X11PCDLGraphicsContext.h
Classes
- X11PCDLGraphicsContext -- Class to store context commands for X11PixelCanvases, eg. linewidth. (full description)
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()
Prerequisite
- Knowledge of X11 Graphics Contexts
- Understanding of X11PixelCanvas
caching mechanism
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
- Drawing Function
- Foreground Color
- Background Color
- Line Width
- Line Style
- Line Cap Style
- Line Join Style
- Polygon Fill Style
- Polygon Fill Rule
- Text Font
- Arc Mode
Motivation
Needed to be able to put all output graphics commands in
a display list for fast and convenient handling.
Member Description
Default Constructor Required
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
Destructor