pbsw-code.net : pbsw-GraphicsState

pbsw-GraphicsState

Classes for storing and retrieving the drawing state of a Graphics object

Affects the following properties:
Requires: REALbasic 5.2.4 (has not been tested on other versions)




Class: pbsw_GStack Superclass: None Interfaces: None
A class that stores one or more states of a Graphics object, and is used to restore previous state(s)


Methods
RestoreState(g as graphics) [Public]
1. Restores the drawing state of the Graphics object "g" from the last saved state on the stack
2. Removes the last state from the stack
SaveState(g as graphics) [Public]
Stores the drawing state of the Graphics object "g" on the stack


Class: pbsw_GState Superclass: None Interfaces: None
A class that holds the state of a Graphics object
(you do not normally interact with this class directly, it is used by pbsw_GStack)


Methods
pbsw_GState(g as graphics) [Public]
Constructor - saves the drawing state of the passed Graphics object "g"
RestoreGraphics(g as graphics) [Public]
Restores the drawing state of a Graphics object "g" to the state stored


pbsw-code.net : pbsw-GraphicsState