|
virtual | ~Style () |
|
GooCanvasStyle* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GooCanvasStyle* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GooCanvasStyle* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
template<typename PropertyType > |
void | get_property (GQuark property_id, PropertyType& value) const |
|
template<typename PropertyType > |
void | set_property (GQuark property_id, const PropertyType& value) |
|
Glib::RefPtr< Style > | copy () const |
| Copies the given Goo::CanvasStyle, by copying all of its properties. More...
|
|
Glib::RefPtr< Style > | get_parent () const |
| Gets the parent of the style. More...
|
|
void | set_parent (const Glib::RefPtr< Style >& style) |
| Sets the parent of the style. More...
|
|
bool | set_stroke_options (const Cairo::RefPtr< Cairo::Context >& context) |
| Sets the standard cairo stroke options using the given style. More...
|
|
bool | set_fill_options (const Cairo::RefPtr< Cairo::Context >& context) |
| Sets the standard cairo fill options using the given style. More...
|
|
virtual Goocanvas::Style::~Style |
( |
| ) |
|
|
virtual |
Goocanvas::Style::Style |
( |
| ) |
|
|
protected |
Copies the given Goo::CanvasStyle, by copying all of its properties.
Though the parent of the new style is left unset.
- Returns
- A copy of the given Goo::CanvasStyle.
Gets the parent of the style.
- Returns
- The parent of the given style, or
0
.
template <typename PropertyType >
void Goocanvas::Style::get_property |
( |
GQuark |
property_id, |
|
|
PropertyType & |
value |
|
) |
| const |
|
inline |
static GType Goocanvas::Style::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
GooCanvasStyle* Goocanvas::Style::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C GObject.
const GooCanvasStyle* Goocanvas::Style::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C GObject.
GooCanvasStyle* Goocanvas::Style::gobj_copy |
( |
| ) |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool Goocanvas::Style::set_fill_options |
( |
const Cairo::RefPtr< Cairo::Context > & |
context | ) |
|
Sets the standard cairo fill options using the given style.
- Parameters
-
- Returns
true
if a paint source is set, or false
if the fill should be skipped.
Sets the parent of the style.
- Parameters
-
template <typename PropertyType >
void Goocanvas::Style::set_property |
( |
GQuark |
property_id, |
|
|
const PropertyType & |
value |
|
) |
| |
|
inline |
bool Goocanvas::Style::set_stroke_options |
( |
const Cairo::RefPtr< Cairo::Context > & |
context | ) |
|
Sets the standard cairo stroke options using the given style.
- Parameters
-
- Returns
true
if a paint source is set, or false
if the stroke should be skipped.
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: