CanvasStyle
Object Hierarchy:
Description:
[
CCode ( type_id =
"goo_canvas_style_get_type ()" ) ]
public class CanvasStyle :
Object
CanvasStyle provides support for cascading style properties for canvas items.
It is intended to be used when implementing new canvas items.
<note><para> The cascading styles canvas feature may be removed in a future version of GooCanvas. </para></note
>
Style properties are identified by a unique Quark, and contain arbitrary data
stored in a Value.
CanvasStyle also provides a few convenience functions such as
set_stroke_options and
set_fill_options which efficiently apply an item's standard style
properties to the given cairo_t.
Content:
Creation methods:
Methods:
- public CanvasStyle copy ()
Copies the given CanvasStyle, by copying
all of its properties.
- public unowned CanvasStyle get_parent ()
Gets the parent of the style.
- public Value? get_property (Quark property_id)
Gets the value of a property.
- public bool set_fill_options (Context cr)
Sets the standard cairo fill options using the given style.
- public void set_parent (CanvasStyle parent)
Sets the parent of the style.
- public void set_property (Quark property_id, Value value)
Sets a property in the style, replacing any current setting.
- public bool set_stroke_options (Context cr)
Sets the standard cairo stroke options using the given style.
Fields:
Inherited Members:
All known members inherited from class GLib.Object