virtual Clutter::Canvas::~Canvas |
( |
) | |
|
|
virtual |
Clutter::Canvas::Canvas |
( |
) | |
|
|
protected |
static GType Clutter::Canvas::get_type |
( |
) | |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
ClutterCanvas* Clutter::Canvas::gobj |
( |
) | |
|
|
inline |
Provides access to the underlying C GObject.
const ClutterCanvas* Clutter::Canvas::gobj |
( |
) | |
const |
|
inline |
Provides access to the underlying C GObject.
ClutterCanvas* Clutter::Canvas::gobj_copy |
( |
) | |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
The height of the canvas.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
The height of the canvas.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
The width of the canvas.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
The width of the canvas.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
void Clutter::Canvas::set_size |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Sets the size of the canvas, and invalidates the content.
This function will cause the canvas to be invalidated only if the size of the canvas surface has changed.
If you want to invalidate the contents of the canvas when setting the size, you can use the return value of the function to conditionally call Clutter::Content::invalidate():
[C example ellipted]
- Since cluttermm 1.10:
- Parameters
-
width | The width of the canvas, in pixels. |
height | The height of the canvas, in pixels. |
- Returns
- This function returns
true
if the size change caused a content invalidation, and false
otherwise.
- Slot Prototype:
bool on_my_draw(const ::Cairo::RefPtr< ::Cairo::Context>& p1, int width, int height)
The Clutter::Canvas::signal_draw() signal is emitted each time a canvas is invalidated.
It is safe to connect multiple handlers to this signal: each handler invocation will be automatically protected by cairo_save() and cairo_restore() pairs.
- Since cluttermm 1.10:
- Parameters
-
cr | The Cairo context used to draw. |
width | The width of the canvas. |
height | The height of the canvas. |
- Returns
true
if the signal emission should stop, and false
otherwise.
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: