Namespaces |
namespace | Event |
namespace | Gtk |
Classes |
class | AffineAnimator |
class | AffineController |
class | Animator |
class | Annulus |
| An annulus (donut/flat torus) is drawn centered on the x,y coordinate with a specified inner and outer radii. More...
|
class | Arc |
| An arc is drawn centered on the (x,y) coordinate with a specified radius and start/stop angles. More...
|
class | Beziergon |
class | BezierVertex |
class | Bezierline |
class | Boxed |
class | Canvas |
class | Circle |
| A circle is drawn centered on the x,y coordinate with a specified radius. More...
|
class | Color |
| Solid color paint suitable for fills and strokes. More...
|
class | Controller |
| Base class of a Controller in the MVC (Model-View-Controller) paradigm. More...
|
class | Drawable |
| Drawable is the base class for objects capable of being drawn into a cairo context that also have spatial properties; i.e. More...
|
class | DrawableContainer |
| Provides a common base for all containers of drawables. More...
|
class | DrawableController |
| DrawableController combines the event handling interface from Controller with the drawable list management of DrawableSet. More...
|
class | DrawableSet |
| Provides an implementation of a set that stores drawables and emits signals when drawables are added, removed, changed, et. More...
|
class | DrawableSingleContainer |
| This is an interface for an object that contains a single drawable. More...
|
class | DrawableWatcher |
| DrawableWatcher is similar to DrawableMultiContainer except that it does not own the drawables it is watching. More...
|
class | Fill |
class | FreehandSketcher |
class | Gradient |
| Base class for linear and radial gradients (LinearGradient and RadialGradient). More...
|
class | Grid |
class | Group |
| A group is a container for ordered collections of shapes, with the shapes at the top (front of the container) drawn last and the shapes at the bottom drawn first (end of the container). More...
|
class | Handlebox |
class | Hexgrid |
| This class is still not ported from the old glcanvasmm library. More...
|
struct | HSBA |
| A structure containing a HSBA value. More...
|
struct | HSLA |
| A structure containing a HSLA value. More...
|
class | Image |
| The Image class is used to represent an image to be drawn into the canvas. More...
|
class | LinearGradient |
| Linear gradients. More...
|
class | Marker |
| Draws an marker head or tail (not the body of the marker) with the tip or tail centered at (x,y). More...
|
class | Matrix |
| This class wraps the cairo matrix class. More...
|
class | Object |
| Base object that provides a common concept of a string identifier and a signal emitted when the object is changed. More...
|
class | Paint |
| Provides a base class for various paint types. More...
|
class | Path |
class | PathElement |
class | Polygon |
struct | Vertex |
| A simple extension of the point primitive to include an additional value used by polyline to determine whether the vertex is absolute or relative. More...
|
class | Polyline |
| A polyline is drawn as a set of ordered vertices relative to the shape's x,y coordinate. More...
|
struct | Point |
| A very simple point primitive with x and y values as doubles. More...
|
struct | LineSegment |
| A very simple line segment primitive template. More...
|
class | RadialGradient |
| Radial gradients. More...
|
class | Rectangle |
| A rectangle centered on the x,y coordinate. More...
|
class | Reference |
| An instance of Reference holds a reference to another drawable without becoming the parent of the other drawable. More...
|
class | Region |
| This class defines a region with left and right sides and width and height. More...
|
class | RegularPolygon |
struct | Context |
class | Renderable |
| Papyrus::Renderable is a common base for all classes capable of rendering themselves into a cairomm context. More...
|
struct | RGBA |
| A structure storing an RGBA value. More...
|
class | Rotator |
class | Scaler |
class | Selector |
| The selector controller captures events and builds a selection. More...
|
class | Shape |
| Papyrus::Shape inherits the concepts of spatial placement and meaningful affine transforms from its parent Papyrus::Drawable, and extends it with the concept of stroking and filling. More...
|
class | Stroke |
class | SVG |
class | Text |
| A text object is drawn such that the shape's (x,y) coordinate defines the lower-left corner of the text area. More...
|
class | Translator |
struct | wp_lt_compare |
class | Viewbox |
| The Viewbox is based conceptually on the SVG viewBox attribute. More...
|
struct | YUVA |
| A structure containing a YUV value. More...
|
class | Zoomer |
class | Deltille |
class | Face |
| Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL. More...
|
class | Hextille |
class | Hilbert |
class | KochCurve |
class | KochSnowflake |
class | Quadrille |
class | Sierpinski |
class | Tiling |
Typedefs |
typedef std::vector< BezierVertex > | BezierVertices |
typedef std::vector< HSBA > | Colors |
typedef std::map
< Glib::ustring,
Drawable::pointer > | DrawableDictionary |
typedef enum Papyrus::SelectionMode | SelectionMode |
| The selection mode determines what events trigger an attempt to select an object in the canvas.
|
typedef enum
Papyrus::AffineTransform | AffineTransform |
typedef enum Papyrus::Side | Side |
typedef enum Papyrus::Position | Position |
typedef enum Papyrus::Axis | Axis |
typedef enum Papyrus::Handles | Handles |
typedef enum Papyrus::ScrollAnchor | ScrollAnchor |
typedef enum
Papyrus::PathElementType | PathElementType |
typedef enum Papyrus::Units | Units |
typedef enum Papyrus::DegRad | DegRad |
typedef enum
Papyrus::MarkerPosition | MarkerPosition |
typedef enum
Papyrus::ExtentsPerformance | ExtentsPerformance |
typedef enum Papyrus::OverUnder | OverUnder |
typedef enum Papyrus::FrozenThawed | FrozenThawed |
| FROZEN was selected to be 1 so that tests can look like: FrozenThawed frozen; if ( frozen ) .
|
typedef enum Papyrus::GradientUnits | GradientUnits |
typedef enum
Papyrus::GradientSpread | GradientSpread |
typedef enum Papyrus::RenderFlags | RenderFlags |
typedef enum Papyrus::Quantity | Quantity |
typedef enum Papyrus::SKETCH | SKETCH |
typedef std::vector
< Drawable::pointer > | Selection |
typedef enum Papyrus::Xform | Xform |
typedef std::map
< Glib::ustring, Glib::ustring > | AttributeValueMap |
typedef std::map
< Glib::ustring,
Paint::pointer > | PaintDictionary |
| A dictionary of paints.
|
typedef std::vector< Vertex > | Vertices |
typedef enum Papyrus::COLOR_INDEXES | COLOR_INDEXES |
typedef std::map< const
Glib::ustring, RGBA > | X11Colors |
typedef enum Papyrus::DRAWABLE | DRAWABLE |
Enumerations |
enum | SelectionMode { SELECT_PRESS = 1 << 0,
SELECT_RELEASE = 1 << 1,
SELECT_FOLLOW = 1 << 2
} |
| The selection mode determines what events trigger an attempt to select an object in the canvas.
More...
|
enum | AffineTransform {
TRANSLATE_X = 1 << 0,
TRANSLATE_Y = 1 << 1,
SCALE_X = 1 << 2,
SCALE_Y = 1 << 3,
ROTATE = 1 << 4,
SKEW_X = 1 << 5,
SKEW_Y = 1 << 6
} |
enum | { FILL = 1<<0,
STROKE = 1<<1
} |
enum | Side { TOP = 1<<0,
RIGHT = 1<<1,
BOTTOM = 1<<2,
LEFT = 1<<3
} |
enum | Position {
START_POSITION,
TOP_CENTER = START_POSITION,
TOP_RIGHT,
CENTER_RIGHT,
BOTTOM_RIGHT,
BOTTOM_CENTER,
BOTTOM_LEFT,
CENTER_LEFT,
TOP_LEFT,
END_POSITION
} |
enum | Axis { X_AXIS = 1<<0,
Y_AXIS = 1<<1
} |
enum | Handles { NO_HANDLES = 0,
CORNER_HANDLES = 1<<0,
ALL_HANDLES = 1<<1
} |
enum | ScrollAnchor {
SCROLL_ANCHOR_CENTER,
SCROLL_ANCHOR_TOP_LEFT,
SCROLL_ANCHOR_TOP_RIGHT,
SCROLL_ANCHOR_BOTTOM_LEFT,
SCROLL_ANCHOR_BOTTOM_RIGHT
} |
enum | PathElementType {
PATH_UNDEFINED,
PATH_MOVETO,
PATH_REL_MOVETO,
PATH_CLOSE,
PATH_LINETO,
PATH_REL_LINETO,
PATH_HORIZONTAL_LINETO,
PATH_REL_HORIZONTAL_LINETO,
PATH_VERTICAL_LINETO,
PATH_REL_VERTICAL_LINETO,
PATH_CURVETO,
PATH_REL_CURVETO,
PATH_SMOOTH_CURVETO,
PATH_REL_SMOOTH_CURVETO,
PATH_QUADRATIC_BEZIER_CURVETO,
PATH_REL_QUADRATIC_BEZIER_CURVETO,
PATH_SMOOTH_QUADRATIC_BEZIER_CURVETO,
PATH_REL_SMOOTH_QUADRATIC_BEZIER_CURVETO,
PATH_ELIPTICAL_ARC,
PATH_REL_ELIPTICAL_ARC
} |
enum | Units { UNIT_PIXEL,
UNIT_POINTS,
UNIT_INCH,
UNIT_MM
} |
enum | DegRad { DEGREES,
RADIANS
} |
enum | MarkerPosition { START_MARKER,
VERTEX_MARKER,
END_MARKER
} |
enum | ExtentsPerformance { EXTENTS_QUICK = 1,
EXTENTS_PRECISE
} |
enum | OverUnder { OVER = 1,
UNDER
} |
enum | FrozenThawed { THAWED = 0,
FROZEN = 1
} |
| FROZEN was selected to be 1 so that tests can look like: FrozenThawed frozen; if ( frozen ) .
More...
|
enum | GradientUnits { GRADIENT_UNITS_NONE,
GRADIENT_UNITS_USER_SPACE,
GRADIENT_UNITS_OBJECT
} |
enum | GradientSpread { GRADIENT_SPREAD_NONE = Cairo::EXTEND_NONE,
GRADIENT_SPREAD_PAD = Cairo::EXTEND_PAD,
GRADIENT_SPREAD_REFLECT = Cairo::EXTEND_REFLECT,
GRADIENT_SPREAD_REPEAT = Cairo::EXTEND_REPEAT
} |
enum | RenderFlags {
RENDER_FLAGS_NONE = 0,
RENDER_SUPPRESS_MATRIX = 1<<0,
RENDER_SUPPRESS_CAIRO_FILL = 1<<1,
RENDER_SUPPRESS_CAIRO_STROKE = 1<<2,
RENDER_SUPPRESS_CAIRO_SAVE_RESTORE = 1<<3,
RENDER_HINT_FILL = 1<<4,
RENDER_HINT_STROKE = 1<<5
} |
enum | Quantity { ABSOLUTE,
PERCENT
} |
enum | SKETCH { SKETCH_LINE,
SKETCH_POLYGON
} |
enum | Xform {
XFORM_NONE = 0,
XFORM_MATRIX,
XFORM_TRANSLATE,
XFORM_SCALE,
XFORM_ROTATE,
XFORM_SKEWX,
XFORM_SKEWY
} |
enum | COLOR_INDEXES {
RED = 0x00,
GREEN = 0x01,
BLUE = 0x02,
HUE = 0x00,
SATURATION = 0x01,
BRIGHTNESS = 0x02,
LIGHTNESS = 0x02,
ALPHA = 0x03
} |
enum | DRAWABLE {
DRAWABLE_START = 0,
ARC = 0,
ANNULUS,
BEZIERLINE,
BEZIERGON,
BOXED,
CIRCLE,
DELTILLE,
FACE,
GRID,
GROUP,
HANDLEBOX,
HEXTILLE,
HILBERT,
IMAGE,
KOCHCURVE,
KOCHSNOWFLAKE,
PATH,
POLYGON,
POLYLINE,
QUADRILLE,
RECTANGLE,
REFERENCE,
REGULARPOLYGON,
SIERPINSKI,
SVG,
TEXT,
DRAWABLE_END
} |
Functions |
| Color::operator Cairo::RefPtr< Cairo::Pattern > () const |
Colors | primary_colors (double saturation, double brightness) |
Colors | secondary_colors (double saturation, double brightness) |
Colors | primary_secondary_colors (double saturation, double brightness) |
Colors | tertiary_colors (double saturation, double brightness) |
Colors | rgb_color_wheel (unsigned bands, double saturation, double brightness) |
Colors | complements (const HSBA &color) |
Colors | complements (const Colors &colors) |
Colors | split_complements (const HSBA &color, double split) |
Colors | split_complements (const Colors &colors, double split) |
Colors | triads (const HSBA &color) |
Colors | triads (const Colors &colors) |
Colors | tetrads (const HSBA &color, double split) |
Colors | tetrads (const Colors &colors, double split) |
Colors | analogous (const HSBA &color, unsigned size, double offset) |
Colors | analogous (const Colors &colors, unsigned size, double offset) |
Colors | tints (const HSBA &color, unsigned size=5, double offset=-0.2, double start=1.0) |
| Adjusting the white level (saturation).
|
Colors | tints (const Colors &colors, unsigned size, double offset, double start) |
Colors | shades (const HSBA &color, unsigned size=5, double offset=-0.2, double start=1.0) |
| Adjusting the black level (brightness).
|
Colors | shades (const Colors &colors, unsigned size, double offset, double start) |
Colors | tones (const HSBA &color, unsigned size=5, double offset=-0.2, double start=1.0) |
| Adjusting the gray level (brightness and saturation).
|
Colors | tones (const Colors &colors, unsigned size, double offset, double start) |
Colors | monochromatic (const HSBA &color, unsigned size=3, double offset=-0.5, double start=1.0) |
| Tints and shades.
|
Colors | monochromatic (const Colors &colors, unsigned size, double offset, double start) |
HSBA | complement (const HSBA &color) |
HSBA | hue_offset (const HSBA &color, double o) |
HSBA | complement (const HSBA &color, double offset) |
template<typename T > |
void | get_min_max (T &min, T &max, const T &first, const T &second, const T &third) |
| HSBA::operator Cairo::RefPtr< Cairo::Pattern > () |
void | rgb_to_hsb (double r, double g, double b, double &h, double &s, double &v) |
void | hsb_to_rgb (double h, double s, double v, double &r, double &g, double &b) |
void | rgb_to_hsl (double rgb_r, double rgb_g, double rgb_b, double &h, double &s, double &l) |
| Convert RGB color to HSL Given r,g,b, each in [0,1], returns h in [0,360]; s and l in [0,1].
|
double | hsl_value (double m1, double m2, double hue) |
void | hsl_to_rgb (double hsl_h, double hsl_s, double hsl_l, double &rgb_r, double &rgb_g, double &rgb_b) |
| Convert HSLA color to RGB Given h in [0,360]; s and l in [0,1], returns r,g,b each in [0,1].
|
bool | has_digit (const Glib::ustring &s) |
Xform | which_transform (const Glib::ustring &s) |
std::list< PathElement::pointer > | path_data_parser (const char *src) |
| Utility method to parse a SVG transform string into a list of path data elements.
|
| RGBA::operator Cairo::RefPtr< Cairo::Pattern > () const |
bool | process_drawable (Group &parent, Drawable::pointer d, const AttributeValueMap &avmap, bool in_defs_section) |
bool | process_stop (const xmlpp::Element *element, Cairo::RefPtr< Cairo::Gradient > pattern) |
Cairo::RefPtr
< Cairo::LinearGradient > | process_linear_gradient (const xmlpp::Element *element) |
Cairo::RefPtr
< Cairo::RadialGradient > | process_radial_gradient (const xmlpp::Element *element) |
double | rad2units (double value, DegRad units) |
double | units2rad (double value, DegRad units) |
bool | strcaseeq (const Glib::ustring &str1, const Glib::ustring &str2) |
int | strcasecmp (const Glib::ustring &str1, const Glib::ustring &str2) |
Cairo::RefPtr
< Cairo::ImageSurface > | imagesurface (Drawable::pointer drawable, int width, int height, bool fit) |
void | x11_colors_1 (X11Colors &colors) |
void | x11_colors_2 (X11Colors &colors) |
void | x11_colors_3 (X11Colors &colors) |
void | x11_colors_4 (X11Colors &colors) |
X11Colors | x11_colors () |
RGBA | x11_color (const Glib::ustring &name) |
void | rgb_to_yuv (double r, double g, double b, double &y, double &u, double &v) |
void | yuv_to_rgb (double y, double u, double v, double &r, double &g, double &b) |
Drawable::pointer | example_factory (unsigned int d, bool fill, bool stroke) |
Arc::pointer | example_arc (bool fill, bool stroke) |
Annulus::pointer | example_annulus (bool fill, bool stroke) |
Bezierline::pointer | example_bezierline (bool fill, bool stroke) |
Beziergon::pointer | example_beziergon (bool fill, bool stroke) |
Circle::pointer | example_circle (bool fill, bool stroke) |
Rectangle::pointer | example_rectangle (bool fill, bool stroke) |
Group::pointer | example_group (bool fill, bool stroke) |
Group::pointer | example_reference (bool fill, bool stroke) |
Handlebox::pointer | example_handlebox (bool fill, bool stroke) |
Boxed::pointer | example_boxed (bool fill, bool stroke) |
Image::pointer | example_image (bool, bool) |
SVG::pointer | example_svg (bool, bool) |
Group::pointer | example_line_join (Cairo::LineJoin line_join) |
Group::pointer | example_line_cap (Cairo::LineCap line_cap) |
Polyline::pointer | example_marker (Papyrus::Marker::Style style, Papyrus::Marker::Facing facing, bool fill, bool stroke) |
void | draw_path (Context &cairo, unsigned col, unsigned row, double side, double sidex2, double sidex3, double side_half, double height, double height_half) |
Variables |
const char * | DrawableStrings [] |