Clutter.Canvas – clutter-1.0 Reference Manual
Packages
clutter-1.0
Clutter
Canvas
height
scale_factor
scale_factor_set
width
Canvas
get_scale_factor
set_scale_factor
set_size
draw
Canvas
Object Hierarchy:
Description:
[
CCode
( type_id =
"clutter_canvas_get_type ()"
) ]
[
Version
( since =
"1.10"
) ]
public
class
Canvas
:
Object
,
Content
The
Canvas
structure contains private data and should only be accessed using the provided API.
Namespace:
Clutter
Package:
clutter-1.0
Content:
Properties:
public
int
height
{
get
;
set
; }
The height of the canvas.
public
int
scale_factor
{
get
;
set
; }
The scaling factor to be applied to the Cairo surface used for drawing.
public
bool
scale_factor_set
{
get
; }
Whether the
scale_factor
property is set.
public
int
width
{
get
;
set
; }
The width of the canvas.
Creation methods:
public
Canvas
()
Creates a new instance of
Canvas
.
Methods:
public
int
get_scale_factor
()
Retrieves the scaling factor of
this
, as set using
set_scale_factor
.
public
void
set_scale_factor
(
int
scale)
Sets the scaling factor for the Cairo surface used by
this
.
public
bool
set_size
(
int
width,
int
height)
Sets the size of the
this
, and invalidates the content.
Signals:
public
virtual
signal
bool
draw
(
Context
cr,
int
width,
int
height)
The
draw
signal is emitted each time a canvas is invalidated.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Clutter.Content
attached
detached
get_preferred_size
invalidate
paint_content