#include <CairoContext.hpp>
Inheritance diagram for Ionflux::Tools::Cairo::CairoContext:
Public Member Functions | |
CairoContext () | |
Constructor. | |
CairoContext (const CairoContext &initCairoContext) | |
Constructor. | |
CairoContext (cairo_t *initCairoContext) | |
Constructor. | |
CairoContext (cairo_surface_t *initSurface) | |
Constructor. | |
CairoContext (Surface &initSurface) | |
Constructor. | |
virtual | ~CairoContext () |
Destructor. | |
virtual void | reference () |
Reference. | |
virtual void | destroy () |
Destroy. | |
virtual void | save () |
Save. | |
virtual void | restore () |
Restore. | |
virtual void | setOperator (cairo_operator_t op) |
Set operator. | |
virtual void | setSource (cairo_pattern_t *source) |
Set source. | |
virtual void | setSource (const Pattern &source) |
Set source. | |
virtual void | setSourceRgb (double red, double green, double blue) |
Set source rgb. | |
virtual void | setSourceRgba (double red, double green, double blue, double alpha) |
Set source rgba. | |
virtual void | setSourceColor (const Ionflux::Tools::Color &color) |
Set source color. | |
virtual void | setSourceSurface (cairo_surface_t *surface, double x, double y) |
Set source surface. | |
virtual void | setSourceSurface (Surface &surface, double x, double y) |
Set source surface. | |
virtual void | setTolerance (double tolerance) |
Set tolerance. | |
virtual void | setFillRule (cairo_fill_rule_t fill_rule) |
Set fill rule. | |
virtual void | setLineWidth (double width) |
Set line width. | |
virtual void | setLineCap (cairo_line_cap_t line_cap) |
Set line cap. | |
virtual void | setLineJoin (cairo_line_join_t line_join) |
Set line join. | |
virtual void | setDash (double *dashes, int ndash, double offset) |
Set dash. | |
virtual void | setMiterLimit (double limit) |
Set miter limit. | |
virtual void | translate (double tx, double ty) |
Translate. | |
virtual void | scale (double sx, double sy) |
Scale. | |
virtual void | rotate (double angle) |
Rotate. | |
virtual void | transform (const cairo_matrix_t *matrix) |
Transform. | |
virtual void | transform (const Matrix &matrix) |
Transform. | |
virtual void | setMatrix (const cairo_matrix_t *matrix) |
Set matrix. | |
virtual void | setMatrix (const Matrix &matrix) |
Set matrix. | |
virtual void | identityMatrix () |
Identity matrix. | |
virtual void | userToDevice (double *x, double *y) |
User to device. | |
virtual void | userToDeviceDistance (double *dx, double *dy) |
User to device distance. | |
virtual void | deviceToUser (double *x, double *y) |
Device to user. | |
virtual void | deviceToUserDistance (double *dx, double *dy) |
Device to user distance. | |
virtual void | newPath () |
New path. | |
virtual void | moveTo (double x, double y) |
Move to. | |
virtual void | lineTo (double x, double y) |
Line to. | |
virtual void | curveTo (double x1, double y1, double x2, double y2, double x3, double y3) |
Curve to. | |
virtual void | arc (double xc, double yc, double radius, double angle1, double angle2) |
Arc. | |
virtual void | arcNegative (double xc, double yc, double radius, double angle1, double angle2) |
Arc negative. | |
virtual void | relMoveTo (double dx, double dy) |
Rel move to. | |
virtual void | relLineTo (double dx, double dy) |
Rel line to. | |
virtual void | relCurveTo (double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) |
Rel curve to. | |
virtual void | rectangle (double x, double y, double width, double height) |
Rectangle. | |
virtual void | closePath () |
Close path. | |
virtual void | paint () |
Paint. | |
virtual void | paintWithAlpha (double alpha) |
Paint with alpha. | |
virtual void | mask (cairo_pattern_t *pattern) |
Mask. | |
virtual void | mask (const Pattern &pattern) |
Mask. | |
virtual void | maskSurface (cairo_surface_t *surface, double surface_x, double surface_y) |
Mask surface. | |
virtual void | maskSurface (Surface &surface, double surface_x, double surface_y) |
Mask surface. | |
virtual void | stroke () |
Stroke. | |
virtual void | strokePreserve () |
Stroke preserve. | |
virtual void | fill () |
Fill. | |
virtual void | fillPreserve () |
Fill preserve. | |
virtual void | copyPage () |
Copy page. | |
virtual void | showPage () |
Show page. | |
virtual cairo_bool_t | inStroke (double x, double y) |
In stroke. | |
virtual cairo_bool_t | inFill (double x, double y) |
In fill. | |
virtual void | strokeExtents (double *x1, double *y1, double *x2, double *y2) |
Stroke extents. | |
virtual void | fillExtents (double *x1, double *y1, double *x2, double *y2) |
Fill extents. | |
virtual void | resetClip () |
Reset clip. | |
virtual void | clip () |
Clip. | |
virtual void | clipPreserve () |
Clip preserve. | |
virtual void | selectFontFace (const std::string &family, cairo_font_slant_t slant, cairo_font_weight_t weight) |
Select font face. | |
virtual void | setFontSize (double size) |
Set font size. | |
virtual void | setFontMatrix (const cairo_matrix_t *matrix) |
Set font matrix. | |
virtual void | setFontMatrix (const Matrix &matrix) |
Set font matrix. | |
virtual void | getFontMatrix (cairo_matrix_t *matrix) |
Get font matrix. | |
virtual void | getFontMatrix (Matrix &matrix) |
Get font matrix. | |
virtual void | showText (const std::string &utf8) |
Show text. | |
virtual void | showGlyphs (cairo_glyph_t *glyphs, int num_glyphs) |
Show glyphs. | |
virtual cairo_font_face_t * | getFontFace () |
Get font face. | |
virtual void | fontExtents (cairo_font_extents_t *extents) |
Font extents. | |
virtual void | setFontFace (cairo_font_face_t *font_face) |
Set font face. | |
virtual void | textExtents (const std::string &utf8, cairo_text_extents_t *extents) |
Text extents. | |
virtual void | glyphExtents (cairo_glyph_t *glyphs, int num_glyphs, cairo_text_extents_t *extents) |
Glyph extents. | |
virtual void | textPath (const std::string &utf8) |
Text path. | |
virtual void | glyphPath (cairo_glyph_t *glyphs, int num_glyphs) |
Glyph path. | |
virtual cairo_operator_t | getOperator () |
Get operator. | |
virtual cairo_pattern_t * | getSource () |
Get source. | |
virtual double | getTolerance () |
Get tolerance. | |
virtual void | getCurrentPoint (double *x, double *y) |
Get current point. | |
virtual cairo_fill_rule_t | getFillRule () |
Get fill rule. | |
virtual double | getLineWidth () |
Get line width. | |
virtual cairo_line_cap_t | getLineCap () |
Get line cap. | |
virtual cairo_line_join_t | getLineJoin () |
Get line join. | |
virtual double | getMiterLimit () |
Get miter limit. | |
virtual void | getMatrix (cairo_matrix_t *matrix) |
Get matrix. | |
virtual void | getMatrix (Matrix &matrix) |
Get matrix. | |
virtual cairo_surface_t * | getTarget () |
Get target. | |
virtual void | getTarget (Surface &surface) |
Get target. | |
virtual cairo_path_t * | copyPath () |
Copy path. | |
virtual void | copyPath (Path &target) |
Copy path. | |
virtual cairo_path_t * | copyPathFlat () |
Copy path flat. | |
virtual void | copyPathFlat (Path &target) |
Copy path flat. | |
virtual void | appendPath (cairo_path_t *path) |
Append path. | |
virtual void | appendPath (Path &path) |
Append path. | |
virtual cairo_status_t | status () |
Status. | |
virtual std::string | statusToString (cairo_status_t status) |
Status to string. | |
virtual CairoContext & | operator= (const CairoContext &newCairoContext) |
Assignment operator. | |
virtual CairoContext & | operator= (cairo_t *newCairoContext) |
Assignment operator. | |
virtual void | setCairoContext (cairo_t *newCairoContext) |
Set cairo context. | |
virtual cairo_t * | getCairoContext () const |
Get cairo context. | |
Protected Attributes | |
cairo_t * | cairoContext |
Cairo context. |
A wrapper for the Cairo vector graphics API (see http://www.cairographics.org/).
|
Constructor. Construct new CairoContext object. |
|
Constructor. Construct new CairoContext object.
|
|
Constructor. Construct new CairoContext object.
|
|
Constructor. Construct new CairoContext object.
|
|
Constructor. Construct new CairoContext object.
|
|
Destructor. Destruct CairoContext object. |
|
Append path. Append path
|
|
Append path. Append path
|
|
Arc. Arc
|
|
Arc negative. Arc negative
|
|
Clip. Clip |
|
Clip preserve. Clip preserve |
|
Close path. Close path |
|
Copy page. Copy page |
|
Copy path. Copy path
|
|
Copy path. Copy path
|
|
Copy path flat. Copy path flat
|
|
Copy path flat. Copy path flat
|
|
Curve to. Curve to
|
|
Destroy. Destroy |
|
Device to user. Device to user
|
|
Device to user distance. Device to user distance
|
|
Fill. Fill |
|
Fill extents. Fill extents
|
|
Fill preserve. Fill preserve |
|
Font extents. Font extents
|
|
Get cairo context.
|
|
Get current point. Get current point
|
|
Get fill rule. Get fill rule
|
|
Get font face. Get font face
|
|
Get font matrix. Get font matrix
|
|
Get font matrix. Get font matrix
|
|
Get line cap. Get line cap
|
|
Get line join. Get line join
|
|
Get line width. Get line width
|
|
Get matrix. Get matrix
|
|
Get matrix. Get matrix
|
|
Get miter limit. Get miter limit
|
|
Get operator. Get operator
|
|
Get source. Get source
|
|
Get target. Get target
|
|
Get target. Get target
|
|
Get tolerance. Get tolerance
|
|
Glyph extents. Glyph extents
|
|
Glyph path. Glyph path
|
|
Identity matrix. Identity matrix |
|
In fill. In fill
|
|
In stroke. In stroke
|
|
Line to. Line to
|
|
Mask. Mask
|
|
Mask. Mask
|
|
Mask surface. Mask surface
|
|
Mask surface. Mask surface
|
|
Move to. Move to
|
|
New path. New path |
|
Assignment operator. Assign a cairo context to this Cairo object.
Reimplemented in Ionflux::Tools::CairoCanvas. |
|
Assignment operator. Assign one cairo object to another Cairo object.
Reimplemented in Ionflux::Tools::CairoCanvas. |
|
Paint. Paint |
|
Paint with alpha. Paint with alpha
|
|
Rectangle. Rectangle
|
|
Reference. Reference |
|
Rel curve to. Rel curve to
|
|
Rel line to. Rel line to
|
|
Rel move to. Rel move to
|
|
Reset clip. Reset clip |
|
Restore. Restore |
|
Rotate. Rotate
|
|
Save. Save |
|
Scale. Scale
|
|
Select font face. Select font face
|
|
Set cairo context. Set new value of cairo context.
|
|
Set dash. Set dash
|
|
Set fill rule. Set fill rule
|
|
Set font face. Set font face
|
|
Set font matrix. Set font matrix
|
|
Set font matrix. Set font matrix
|
|
Set font size. Set font size
|
|
Set line cap. Set line cap
|
|
Set line join. Set line join
|
|
Set line width. Set line width
|
|
Set matrix. Set matrix
|
|
Set matrix. Set matrix
|
|
Set miter limit. Set miter limit
|
|
Set operator. Set operator
|
|
Set source. Set source
|
|
Set source. Set source
|
|
Set source color. Set source Color
|
|
Set source rgb. Set source rgb
|
|
Set source rgba. Set source rgba
|
|
Set source surface. Set source surface
|
|
Set source surface. Set source surface
|
|
Set tolerance. Set tolerance
|
|
Show glyphs. Show glyphs
|
|
Show page. Show page |
|
Show text. Show text
|
|
Status. Status
|
|
Status to string. Status to string
|
|
Stroke. Stroke |
|
Stroke extents. Stroke extents
|
|
Stroke preserve. Stroke preserve |
|
Text extents. Text extents
|
|
Text path. Text path
|
|
Transform. Transform
|
|
Transform. Transform
|
|
Translate. Translate
|
|
User to device. User to device
|
|
User to device distance. User to device distance
|
|
Cairo context.
|