2D Graphics Canvas
More...
#include <canvas.h>
virtual void uicore::Canvas::begin |
( |
| ) |
|
|
pure virtual |
Marks the start of a canvas rendering pass.
Prepares the graphic context for rendering by binding the appropriate state.
Clears the whole context using the specified color.
virtual Rectf uicore::Canvas::clip |
( |
| ) |
const |
|
pure virtual |
Returns the current clipping rectangle.
virtual void uicore::Canvas::end |
( |
| ) |
|
|
pure virtual |
Marks the end of a canvas rendering pass.
All batched rendering requests are flushed and the graphic context state is reset to its defaults.
Returns the graphic context associated with this canvas.
virtual Pointf uicore::Canvas::grid_fit |
( |
const Pointf & |
pos | ) |
|
|
pure virtual |
Snaps the point to the nearest pixel corner.
virtual float uicore::Canvas::height |
( |
| ) |
const |
|
pure virtual |
Returns the current height of the context.
virtual const Mat4f& uicore::Canvas::inverse_transform |
( |
| ) |
const |
|
pure virtual |
Returns the inverse of the transform matrix.
void uicore::Canvas::mult_transform |
( |
const Mat4f & |
matrix | ) |
|
|
inline |
virtual float uicore::Canvas::pixel_ratio |
( |
| ) |
const |
|
pure virtual |
Retrieves the display pixel ratio of the context. Resolution Independence
virtual void uicore::Canvas::pop_clip |
( |
| ) |
|
|
pure virtual |
Pop current clipping rectangle from the stack.
virtual const Mat4f& uicore::Canvas::projection |
( |
| ) |
const |
|
pure virtual |
Returns the current effective projection matrix.
virtual void uicore::Canvas::push_clip |
( |
const Rectf & |
rect | ) |
|
|
pure virtual |
Push current clipping rectangle to stack.
If a rectangle is passed, it afterwards sets clipping rectangle to the union of the current rectangle and the passed rectangle.
virtual void uicore::Canvas::push_clip |
( |
| ) |
|
|
pure virtual |
virtual void uicore::Canvas::reset_clip |
( |
| ) |
|
|
pure virtual |
Removes any active clipping rectangle and empties the clip stack.
virtual void uicore::Canvas::set_clip |
( |
const Rectf & |
rect | ) |
|
|
pure virtual |
Set the current clipping rectangle.
virtual void uicore::Canvas::set_transform |
( |
const Mat4f & |
matrix | ) |
|
|
pure virtual |
virtual Sizef uicore::Canvas::size |
( |
| ) |
const |
|
pure virtual |
Returns the current size of the context.
virtual const Mat4f& uicore::Canvas::transform |
( |
| ) |
const |
|
pure virtual |
virtual float uicore::Canvas::width |
( |
| ) |
const |
|
pure virtual |
Returns the current width of the context.
The documentation for this class was generated from the following file: