CanvasItemSimple
Object Hierarchy:
Goo.CanvasItemSimple
Goo.CanvasItemSimple
Goo.CanvasItemSimple
GLib.Object
GLib.Object
GLib.Object->Goo.CanvasItemSimple
Goo.CanvasItem
Goo.CanvasItem
Goo.CanvasItem->Goo.CanvasItemSimple
Description:
[
CCode ( type_id =
"goo_canvas_item_simple_get_type ()" ) ]
public class CanvasItemSimple :
Object ,
CanvasItem
CanvasItemSimple is used as a base class for all of the standard canvas items.
It can also be used as the base class for new custom canvas items.
It provides default implementations for many of the CanvasItem methods.
For very simple items, all that is needed is to implement the create_path
method. (
CanvasEllipse , CanvasRect and
CanvasPath do this.)
More complicated items need to implement the update
, paint
and is_item_at
methods instead. (
CanvasImage , CanvasPolyline ,
CanvasText and CanvasWidget do this.)
They may also need to override some of the other GooCanvasItem methods such as set_canvas
, set_parent
or
allocate_area
if special code is needed. (CanvasWidget does this to make sure
the Widget is embedded in the Canvas widget correctly.)
Content:
Properties:
Creation methods:
Methods:
public void changed (bool recompute_bounds)
This function is intended to be used by subclasses of
CanvasItemSimple .
public bool check_in_path (double x, double y, Context cr, CanvasPointerEvents pointer_events)
This function is intended to be used by subclasses of
CanvasItemSimple .
public void check_style ()
This function is intended to be used by subclasses of
CanvasItemSimple , typically in their update
or get_requested_area
methods.
public double get_line_width ()
Gets the item's line width.
public void get_path_bounds (Context cr, out CanvasBounds bounds)
This function is intended to be used by subclasses of
CanvasItemSimple , typically in their update
or get_requested_area
methods.
public void paint_path (Context cr)
This function is intended to be used by subclasses of
CanvasItemSimple .
public virtual void simple_create_path (Context cr)
public virtual bool simple_is_item_at (double x, double y, Context cr, bool is_pointer_event)
public virtual void simple_paint (Context cr, CanvasBounds bounds)
public virtual void simple_update (Context cr)
public void user_bounds_to_device (Context cr, CanvasBounds bounds)
This function is intended to be used by subclasses of
CanvasItemSimple , typically in their update
or get_requested_area
methods.
public void user_bounds_to_parent (Context cr, CanvasBounds bounds)
This function is intended to be used by subclasses of
CanvasItemSimple , typically in their get_requested_area
method.
Fields:
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 Goo.CanvasItem