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 | 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 | 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 | 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 |
class | Path |
class | PathElement |
class | Polygon |
class | Vertex |
class | Polyline |
A polyline is drawn as a set of ordered vertices relative to the shape's x,y coordinate. 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 |
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 | Face |
Why is there a Face primitive in this library? For testing of course; like the teapot in OpenGL. More... | |
class | Hilbert |
class | KochCurve |
class | KochSnowflake |
class | Sierpinski |
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::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 | 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, FACE, GRID, GROUP, HANDLEBOX, HILBERT, IMAGE, KOCHCURVE, KOCHSNOWFLAKE, PATH, POLYGON, POLYLINE, RECTANGLE, REFERENCE, REGULARPOLYGON, SIERPINSKI, SVG, TEXT, DRAWABLE_END } |
Functions | |
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) |
Paint::operator Cairo::RefPtr< Cairo::Pattern > () const | |
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) |
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) |
Drawable::pointer | example_factory (unsigned int d, bool fill, bool stroke) |
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) |
Variables | |
const char * | DrawableStrings [] |
typedef enum Papyrus::AffineTransform Papyrus::AffineTransform |
typedef std::map<Glib::ustring,Glib::ustring> Papyrus::AttributeValueMap |
typedef enum Papyrus::Axis Papyrus::Axis |
typedef std::vector<BezierVertex> Papyrus::BezierVertices |
typedef enum Papyrus::COLOR_INDEXES Papyrus::COLOR_INDEXES |
typedef std::vector<HSBA> Papyrus::Colors |
typedef enum Papyrus::DegRad Papyrus::DegRad |
typedef enum Papyrus::DRAWABLE Papyrus::DRAWABLE |
typedef std::map<Glib::ustring,Drawable::pointer> Papyrus::DrawableDictionary |
typedef enum Papyrus::ExtentsPerformance Papyrus::ExtentsPerformance |
typedef enum Papyrus::FrozenThawed Papyrus::FrozenThawed |
FROZEN was selected to be 1 so that tests can look like: FrozenThawed frozen; if ( frozen ) .
..
typedef enum Papyrus::Handles Papyrus::Handles |
typedef enum Papyrus::MarkerPosition Papyrus::MarkerPosition |
typedef enum Papyrus::OverUnder Papyrus::OverUnder |
typedef std::map<Glib::ustring,Paint::pointer> Papyrus::PaintDictionary |
A dictionary of paints.
typedef enum Papyrus::PathElementType Papyrus::PathElementType |
typedef enum Papyrus::Position Papyrus::Position |
typedef enum Papyrus::ScrollAnchor Papyrus::ScrollAnchor |
typedef std::vector<Drawable::pointer> Papyrus::Selection |
typedef enum Papyrus::SelectionMode Papyrus::SelectionMode |
The selection mode determines what events trigger an attempt to select an object in the canvas.
The values have been selected to allow multiple events to trigger a selection.
typedef enum Papyrus::Side Papyrus::Side |
typedef enum Papyrus::SKETCH Papyrus::SKETCH |
typedef enum Papyrus::Units Papyrus::Units |
typedef std::vector<Vertex> Papyrus::Vertices |
typedef std::map<const Glib::ustring,RGBA> Papyrus::X11Colors |
typedef enum Papyrus::Xform Papyrus::Xform |
enum Papyrus::Axis |
enum Papyrus::DegRad |
enum Papyrus::DRAWABLE |
enum Papyrus::Handles |
enum Papyrus::OverUnder |
enum Papyrus::Position |
The selection mode determines what events trigger an attempt to select an object in the canvas.
The values have been selected to allow multiple events to trigger a selection.
enum Papyrus::Side |
enum Papyrus::SKETCH |
enum Papyrus::Units |
enum Papyrus::Xform |
Colors Papyrus::analogous | ( | const Colors & | colors, | |
unsigned | size, | |||
double | offset | |||
) |
References analogous().
Colors Papyrus::analogous | ( | const HSBA & | color, | |
unsigned | size, | |||
double | offset | |||
) |
HSBA Papyrus::complement | ( | const HSBA & | color, | |
double | offset | |||
) |
HSBA Papyrus::complement | ( | const HSBA & | color | ) |
References hue_offset().
Colors Papyrus::complements | ( | const Colors & | colors | ) |
References complements().
Colors Papyrus::complements | ( | const HSBA & | color | ) |
Annulus::pointer Papyrus::example_annulus | ( | bool | fill, | |
bool | stroke | |||
) |
Arc::pointer Papyrus::example_arc | ( | bool | fill, | |
bool | stroke | |||
) |
Beziergon::pointer Papyrus::example_beziergon | ( | bool | fill, | |
bool | stroke | |||
) |
Bezierline::pointer Papyrus::example_bezierline | ( | bool | fill, | |
bool | stroke | |||
) |
Boxed::pointer Papyrus::example_boxed | ( | bool | fill, | |
bool | stroke | |||
) |
References Papyrus::Arc::create(), Papyrus::Circle::create(), Papyrus::Rectangle::create(), Papyrus::Group::create(), and Papyrus::Boxed::create().
Referenced by example_factory().
Circle::pointer Papyrus::example_circle | ( | bool | fill, | |
bool | stroke | |||
) |
Drawable::pointer Papyrus::example_factory | ( | unsigned int | d, | |
bool | fill, | |||
bool | stroke | |||
) |
References ANNULUS, ARC, BEZIERGON, BEZIERLINE, BOXED, CIRCLE, Papyrus::Text::create(), Papyrus::Sierpinski::create(), Papyrus::RegularPolygon::create(), Papyrus::Polyline::create(), Papyrus::Polygon::create(), Papyrus::Path::create(), Papyrus::KochSnowflake::create(), Papyrus::KochCurve::create(), Papyrus::Hilbert::create(), Papyrus::Stroke::create(), Papyrus::Grid::create(), Papyrus::Face::create(), Papyrus::Circle::create(), DRAWABLE_END, example_annulus(), example_arc(), example_beziergon(), example_bezierline(), example_boxed(), example_group(), example_handlebox(), example_image(), example_rectangle(), example_reference(), example_svg(), FACE, GRID, GROUP, HANDLEBOX, HILBERT, IMAGE, KOCHCURVE, KOCHSNOWFLAKE, PATH, PATH_LINETO, PATH_MOVETO, PATH_REL_LINETO, POLYGON, POLYLINE, RECTANGLE, REFERENCE, REGULARPOLYGON, SIERPINSKI, TEXT, and Papyrus::RegularPolygon::ZERO_APOTHEM.
Group::pointer Papyrus::example_group | ( | bool | fill, | |
bool | stroke | |||
) |
References Papyrus::Group::create(), example_arc(), example_circle(), and example_rectangle().
Referenced by example_factory().
Handlebox::pointer Papyrus::example_handlebox | ( | bool | fill, | |
bool | stroke | |||
) |
References Papyrus::Arc::create(), Papyrus::Circle::create(), Papyrus::Rectangle::create(), Papyrus::Group::create(), and Papyrus::Handlebox::create().
Referenced by example_factory().
Image::pointer Papyrus::example_image | ( | bool | , | |
bool | ||||
) |
Group::pointer Papyrus::example_line_cap | ( | Cairo::LineCap | line_cap | ) |
Group::pointer Papyrus::example_line_join | ( | Cairo::LineJoin | line_join | ) |
Polyline::pointer Papyrus::example_marker | ( | Papyrus::Marker::Style | style, | |
Papyrus::Marker::Facing | facing, | |||
bool | fill, | |||
bool | stroke | |||
) |
References Papyrus::Marker::create(), Papyrus::Polyline::create(), END_MARKER, Papyrus::Marker::LEFT, and START_MARKER.
Referenced by Papyrus::Gtk::MarkerComboBox::load_pixbufs().
Rectangle::pointer Papyrus::example_rectangle | ( | bool | fill, | |
bool | stroke | |||
) |
Group::pointer Papyrus::example_reference | ( | bool | fill, | |
bool | stroke | |||
) |
References Papyrus::Reference::create(), Papyrus::Group::create(), and example_circle().
Referenced by example_factory().
SVG::pointer Papyrus::example_svg | ( | bool | , | |
bool | ||||
) |
void Papyrus::get_min_max | ( | T & | min, | |
T & | max, | |||
const T & | first, | |||
const T & | second, | |||
const T & | third | |||
) | [inline] |
Referenced by rgb_to_hsb(), and rgb_to_hsl().
bool Papyrus::has_digit | ( | const Glib::ustring & | s | ) |
Referenced by Papyrus::Matrix::set().
void Papyrus::hsb_to_rgb | ( | double | h, | |
double | s, | |||
double | v, | |||
double & | r, | |||
double & | g, | |||
double & | b | |||
) |
Referenced by Papyrus::HSBA::operator RGBA().
Papyrus::HSBA::operator Cairo::RefPtr< Cairo::Pattern > | ( | ) |
void Papyrus::hsl_to_rgb | ( | double | h, | |
double | s, | |||
double | l, | |||
double & | r, | |||
double & | g, | |||
double & | 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].
References hsl_value().
Referenced by Papyrus::HSLA::operator RGBA().
double Papyrus::hsl_value | ( | double | m1, | |
double | m2, | |||
double | hue | |||
) |
Referenced by hsl_to_rgb().
HSBA Papyrus::hue_offset | ( | const HSBA & | color, | |
double | o | |||
) |
References Papyrus::HSBA::hue.
Referenced by analogous(), complement(), complements(), split_complements(), tetrads(), and triads().
Cairo::RefPtr< Cairo::ImageSurface > Papyrus::imagesurface | ( | Drawable::pointer | drawable, | |
int | width, | |||
int | height, | |||
bool | fit | |||
) |
References Papyrus::Viewbox::ALIGN_XMID_YMID, Papyrus::Viewbox::create(), and Papyrus::Viewbox::MEET.
Referenced by Papyrus::Gtk::create_pixbuf().
Colors Papyrus::monochromatic | ( | const Colors & | colors, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
References monochromatic().
Colors Papyrus::monochromatic | ( | const HSBA & | color, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
Papyrus::Paint::operator Cairo::RefPtr< Cairo::Pattern > | ( | ) | const |
std::list< PathElement::pointer > Papyrus::path_data_parser | ( | const char * | src | ) |
Utility method to parse a SVG transform string into a list of path data elements.
References finalize_path_data_lexer(), init_path_data_lexer(), path_data_list, and path_data_parse().
Referenced by Papyrus::Path::Path(), and Papyrus::Path::set().
Colors Papyrus::primary_colors | ( | double | saturation, | |
double | brightness | |||
) |
Colors Papyrus::primary_secondary_colors | ( | double | saturation, | |
double | brightness | |||
) |
bool Papyrus::process_drawable | ( | Group & | parent, | |
Drawable::pointer | d, | |||
const AttributeValueMap & | avmap, | |||
bool | in_defs_section | |||
) |
References Papyrus::Group::add(), and Papyrus::Group::add_drawable_to_dictionary().
Referenced by Papyrus::SVG::process_element().
Cairo::RefPtr<Cairo::LinearGradient> Papyrus::process_linear_gradient | ( | const xmlpp::Element * | element | ) |
Cairo::RefPtr<Cairo::RadialGradient> Papyrus::process_radial_gradient | ( | const xmlpp::Element * | element | ) |
bool Papyrus::process_stop | ( | const xmlpp::Element * | element, | |
Cairo::RefPtr< Cairo::Gradient > | pattern | |||
) |
References Papyrus::RGBA::alpha, Papyrus::RGBA::blue, Papyrus::RGBA::green, and Papyrus::RGBA::red.
Referenced by process_linear_gradient().
double Papyrus::rad2units | ( | double | value, | |
DegRad | units | |||
) |
References DEGREES.
Referenced by Papyrus::Drawable::get_rotation(), Papyrus::Drawable::get_skew(), Papyrus::Drawable::get_skew_x(), and Papyrus::Drawable::get_skew_y().
Colors Papyrus::rgb_color_wheel | ( | unsigned | bands, | |
double | saturation, | |||
double | brightness | |||
) |
void Papyrus::rgb_to_hsb | ( | double | r, | |
double | g, | |||
double | b, | |||
double & | h, | |||
double & | s, | |||
double & | v | |||
) |
void Papyrus::rgb_to_hsl | ( | double | r, | |
double | g, | |||
double | 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].
References get_min_max().
Referenced by Papyrus::HSLA::operator=().
void Papyrus::rgb_to_yuv | ( | double | r, | |
double | g, | |||
double | b, | |||
double & | y, | |||
double & | u, | |||
double & | v | |||
) |
Referenced by Papyrus::YUVA::operator=().
Papyrus::RGBA::operator Cairo::RefPtr< Cairo::Pattern > | ( | ) | const |
Colors Papyrus::secondary_colors | ( | double | saturation, | |
double | brightness | |||
) |
Colors Papyrus::shades | ( | const Colors & | colors, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
References shades().
Colors Papyrus::shades | ( | const HSBA & | color, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
Adjusting the black level (brightness).
References Papyrus::HSBA::hue, and Papyrus::HSBA::saturation.
Referenced by shades().
Colors Papyrus::split_complements | ( | const Colors & | colors, | |
double | split | |||
) |
References split_complements().
Colors Papyrus::split_complements | ( | const HSBA & | color, | |
double | split | |||
) |
int Papyrus::strcasecmp | ( | const Glib::ustring & | str1, | |
const Glib::ustring & | str2 | |||
) |
bool Papyrus::strcaseeq | ( | const Glib::ustring & | str1, | |
const Glib::ustring & | str2 | |||
) |
Colors Papyrus::tertiary_colors | ( | double | saturation, | |
double | brightness | |||
) |
Colors Papyrus::tetrads | ( | const HSBA & | color, | |
double | split | |||
) |
Colors Papyrus::tints | ( | const Colors & | colors, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
References tints().
Colors Papyrus::tints | ( | const HSBA & | color, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
Adjusting the white level (saturation).
References Papyrus::HSBA::brightness, and Papyrus::HSBA::hue.
Referenced by tints().
Colors Papyrus::tones | ( | const Colors & | colors, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
References tones().
Colors Papyrus::tones | ( | const HSBA & | color, | |
unsigned | size, | |||
double | offset, | |||
double | start | |||
) |
Adjusting the gray level (brightness and saturation).
References Papyrus::HSBA::hue.
Referenced by tones().
Colors Papyrus::triads | ( | const HSBA & | color | ) |
double Papyrus::units2rad | ( | double | value, | |
DegRad | units | |||
) |
Xform Papyrus::which_transform | ( | const Glib::ustring & | s | ) |
References XFORM_MATRIX, XFORM_NONE, XFORM_ROTATE, XFORM_SCALE, XFORM_SKEWX, XFORM_SKEWY, and XFORM_TRANSLATE.
Referenced by Papyrus::Matrix::set().
RGBA Papyrus::x11_color | ( | const Glib::ustring & | name | ) |
X11Colors Papyrus::x11_colors | ( | ) |
References x11_colors_1(), x11_colors_2(), x11_colors_3(), and x11_colors_4().
Referenced by x11_color().
void Papyrus::x11_colors_1 | ( | X11Colors & | colors | ) |
Referenced by x11_colors().
void Papyrus::x11_colors_2 | ( | X11Colors & | colors | ) |
Referenced by x11_colors().
void Papyrus::x11_colors_3 | ( | X11Colors & | colors | ) |
Referenced by x11_colors().
void Papyrus::x11_colors_4 | ( | X11Colors & | colors | ) |
Referenced by x11_colors().
void Papyrus::yuv_to_rgb | ( | double | y, | |
double | u, | |||
double | v, | |||
double & | r, | |||
double & | g, | |||
double & | b | |||
) |
Referenced by Papyrus::YUVA::operator RGBA().
const char * Papyrus::DrawableStrings |
Initial value:
{ "Arc", "Annulus", "Bezierline", "Beziergon", "Boxed", "Circle", "Face", "Grid", "Group", "Handle Box", "Hilbert Curve", "Image", "Koch Curve", "Koch Snowflake", "Path", "Polygon", "Polyline", "Rectangle", "Reference", "Regular Polygon", "Sierpinski", "SVG", "Text", }