X11PCDLSetClipWin.h

Classes

X11PCDLSetClipWin -- Class to store and cache X11PixelCanvas setclipwin command. (full description)

class X11PCDLSetClipWin : public X11PCDisplayListObject

Interface

Public Members
X11PCDLSetClipWin()
X11PCDLSetClipWin(X11PixelCanvas * xpc, Int x1, Int y1, Int x2, Int y2)
virtual void translate(Int xt, Int yt)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int xt, Int yt)
virtual Char optType() const
virtual ~X11PCDLSetClipWin()

Description

Prerequisite

Etymology

X11PCDLSetClipWin : X11PixelCanvas display list - set clipping window command.

Synopsis

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

It stores a rectangle definition. when called, it applies the rectangle to the X11PixelCanvas, creating a clipping region outside of which no graphics can be drawn. The clipping window must be enabled with enable(Display::ClipWindow) before it will begin acting as a clip window.

Motivation

Needed to be able to put all output graphics commands in a display list for fast and convenient handling. Needed a way to constrain output graphics to a region of the screen.

Member Description

X11PCDLSetClipWin()

Default Constructor Required

X11PCDLSetClipWin(X11PixelCanvas * xpc, Int x1, Int y1, Int x2, Int y2)

User Constructor

virtual void translate(Int xt, Int yt)

translate

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

draw

virtual Char optType() const

For caching optimization

virtual ~X11PCDLSetClipWin()

Destructor