#include <item.h>
Inheritance diagram for Goocanvas::Item:
Public Member Functions | |
virtual | ~Item () |
GooCanvasItem * | gobj () |
Provides access to the underlying C GObject. | |
const GooCanvasItem * | gobj () const |
Provides access to the underlying C GObject. | |
Canvas * | get_canvas () |
const Canvas * | get_canvas () const |
void | set_canvas (Canvas *canvas) |
bool | is_visible () const |
Glib::RefPtr< ItemModel > | get_model () |
Glib::RefPtr< const ItemModel > | get_model () const |
void | set_model (const Glib::RefPtr< ItemModel > &model) |
Glib::RefPtr< Item > | get_parent () |
Glib::RefPtr< const Item > | get_parent () const |
void | set_parent (const Glib::RefPtr< Item > &parent) |
void | remove () |
bool | is_container () const |
int | get_n_children () const |
Glib::RefPtr< Item > | get_child (int child_num) |
Glib::RefPtr< const Item > | get_child (int child_num) const |
int | find_child (const Glib::RefPtr< Item > &child) |
void | add_child (const Glib::RefPtr< Item > &child, int pos) |
void | add_child (const Glib::RefPtr< Item > &child) |
void | move_child (int old_position, int new_position) |
void | remove_child (int child_num) |
void | raise (const Glib::RefPtr< Item > &above) |
void | raise () |
Raise the item to the top of the stack. | |
void | lower (const Glib::RefPtr< Item > &below) |
void | lower () |
Lower the item to the bottom of the stack. | |
Bounds | get_bounds () const |
void | request_update () |
void | ensure_upated () |
void | update (bool entire_tree, const Cairo::RefPtr< Cairo::Context > &context, Bounds &bounds) |
void | paint (const Cairo::RefPtr< Cairo::Context > &context, const Bounds &bounds, double scale) |
bool | get_requested_area (const Cairo::RefPtr< Cairo::Context > &context, Bounds &bounds) const |
double | get_requested_height (const Cairo::RefPtr< Cairo::Context > &context, double width) const |
void | allocate_area (const Cairo::RefPtr< Cairo::Context > &context, const Bounds &requested_area, const Bounds &allocated_area, double x_offset, double y_offset) |
Glib::ListHandle< Glib::RefPtr< Item > > | get_items_at (double x, double y, const Cairo::RefPtr< Cairo::Context > &context, bool is_pointer_event, bool parent_is_visible, const Glib::ListHandle< Glib::RefPtr< Item > > &found_items) |
bool | get_transform (Cairo::Matrix *matrix) |
void | set_transform (const Cairo::Matrix *matrix) |
void | set_simple_transform (double x, double y, double scale, double rotation) |
void | translate (double tx, double ty) |
void | scale (double sx, double sy) |
void | rotate (double degrees, double cx, double cy) |
void | skew_x (double degrees, double cx, double cy) |
void | skew_y (double degrees, double cx, double cy) |
bool | get_transform_for_child (const Glib::RefPtr< Item > &child, Cairo::Matrix *transform) |
Glib::RefPtr< Style > | get_style () |
Glib::RefPtr< const Style > | get_style () const |
void | set_style (const Glib::RefPtr< Style > &style) |
void | animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, GooCanvasAnimateType type) |
void | stop_animation () |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventCrossing * > | signal_enter_notify_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventCrossing * > | signal_leave_notify_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventMotion * > | signal_motion_notify_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventButton * > | signal_button_press_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventButton * > | signal_button_release_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventFocus * > | signal_focus_in_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventFocus * > | signal_focus_out_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventKey * > | signal_key_press_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventKey * > | signal_key_release_event () |
| |
Glib::SignalProxy2< bool, const Glib::RefPtr< Item > &, GdkEventGrabBroken * > | signal_grab_broken_event () |
| |
Glib::SignalProxy1< void, GParamSpec * > | signal_child_notify () |
| |
Glib::PropertyProxy< bool > | _can_focus () |
If the item can take the keyboard focus. | |
Glib::PropertyProxy_ReadOnly< bool > | _can_focus () const |
If the item can take the keyboard focus. | |
Glib::PropertyProxy< ItemVisibility > | _visibility () |
When the canvas item is visible. | |
Glib::PropertyProxy_ReadOnly< ItemVisibility > | _visibility () const |
When the canvas item is visible. | |
Glib::PropertyProxy< Glib::ustring > | _description () |
A description of the item for use by assistive technologies. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | _description () const |
A description of the item for use by assistive technologies. | |
Glib::PropertyProxy< double > | _visibility_threshold () |
The scale threshold at which the item becomes visible. | |
Glib::PropertyProxy_ReadOnly< double > | _visibility_threshold () const |
The scale threshold at which the item becomes visible. | |
Glib::PropertyProxy< PointerEvents > | _pointer_events () |
Specifies when the item receives pointer events. | |
Glib::PropertyProxy_ReadOnly< PointerEvents > | _pointer_events () const |
Specifies when the item receives pointer events. | |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual Glib::RefPtr< Item > | get_parent_vfunc () |
virtual void | set_parent_vfunc (const Glib::RefPtr< Item > &parent) |
virtual void | get_bounds_vfunc (GooCanvasBounds *bounds) |
virtual void | update_vfunc (bool entire_tree, const Cairo::RefPtr< Cairo::Context > &cr, GooCanvasBounds *bounds) |
virtual void | paint_vfunc (const Cairo::RefPtr< Cairo::Context > &cr, const Bounds &bounds, double scale) |
virtual bool | get_requested_area_vfunc (const Cairo::RefPtr< Cairo::Context > &cr, GooCanvasBounds *requested_area) |
virtual void | allocate_area_vfunc (const Cairo::RefPtr< Cairo::Context > &cr, const Bounds &requested_area, const Bounds &allocated_area, double x_offset, double y_offset) |
virtual bool | get_transform_vfunc (cairo_matrix_t *transform) |
virtual bool | on_enter_notify_event (const Glib::RefPtr< Item > &target, GdkEventCrossing *event) |
virtual bool | on_leave_notify_event (const Glib::RefPtr< Item > &target, GdkEventCrossing *event) |
virtual bool | on_motion_notify_event (const Glib::RefPtr< Item > &target, GdkEventMotion *event) |
virtual bool | on_button_press_event (const Glib::RefPtr< Item > &target, GdkEventButton *event) |
virtual bool | on_button_release_event (const Glib::RefPtr< Item > &target, GdkEventButton *event) |
virtual bool | on_focus_in_event (const Glib::RefPtr< Item > &target, GdkEventFocus *event) |
virtual bool | on_focus_out_event (const Glib::RefPtr< Item > &target, GdkEventFocus *event) |
virtual bool | on_key_press_event (const Glib::RefPtr< Item > &target, GdkEventKey *event) |
virtual bool | on_key_release_event (const Glib::RefPtr< Item > &target, GdkEventKey *event) |
virtual bool | on_grab_broken_event (const Glib::RefPtr< Item > &target, GdkEventGrabBroken *event) |
virtual void | on_child_notify (GParamSpec *pspec) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Goocanvas::Item > | wrap (GooCanvasItem *object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Goocanvas::Item::~Item | ( | ) | [virtual] |
static void Goocanvas::Item::add_interface | ( | GType | gtype_implementer | ) | [static] |
GooCanvasItem* Goocanvas::Item::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented in Goocanvas::Ellipse, Goocanvas::Group, Goocanvas::Image, Goocanvas::ItemSimple, Goocanvas::Path, Goocanvas::Polyline, Goocanvas::Rect, Goocanvas::Table, Goocanvas::Text, and Goocanvas::Widget.
const GooCanvasItem* Goocanvas::Item::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented in Goocanvas::Ellipse, Goocanvas::Group, Goocanvas::Image, Goocanvas::ItemSimple, Goocanvas::Path, Goocanvas::Polyline, Goocanvas::Rect, Goocanvas::Table, Goocanvas::Text, and Goocanvas::Widget.
Canvas* Goocanvas::Item::get_canvas | ( | ) |
const Canvas* Goocanvas::Item::get_canvas | ( | ) | const |
void Goocanvas::Item::set_canvas | ( | Canvas * | canvas | ) |
bool Goocanvas::Item::is_visible | ( | ) | const |
Glib::RefPtr<ItemModel> Goocanvas::Item::get_model | ( | ) |
Glib::RefPtr<const ItemModel> Goocanvas::Item::get_model | ( | ) | const |
void Goocanvas::Item::set_model | ( | const Glib::RefPtr< ItemModel > & | model | ) |
Reimplemented in Goocanvas::ItemSimple.
Glib::RefPtr<Item> Goocanvas::Item::get_parent | ( | ) |
Glib::RefPtr<const Item> Goocanvas::Item::get_parent | ( | ) | const |
void Goocanvas::Item::set_parent | ( | const Glib::RefPtr< Item > & | parent | ) |
void Goocanvas::Item::remove | ( | ) |
bool Goocanvas::Item::is_container | ( | ) | const |
int Goocanvas::Item::get_n_children | ( | ) | const |
Glib::RefPtr<Item> Goocanvas::Item::get_child | ( | int | child_num | ) |
Glib::RefPtr<const Item> Goocanvas::Item::get_child | ( | int | child_num | ) | const |
int Goocanvas::Item::find_child | ( | const Glib::RefPtr< Item > & | child | ) |
void Goocanvas::Item::add_child | ( | const Glib::RefPtr< Item > & | child, | |
int | pos | |||
) |
void Goocanvas::Item::add_child | ( | const Glib::RefPtr< Item > & | child | ) |
void Goocanvas::Item::move_child | ( | int | old_position, | |
int | new_position | |||
) |
void Goocanvas::Item::remove_child | ( | int | child_num | ) |
void Goocanvas::Item::raise | ( | const Glib::RefPtr< Item > & | above | ) |
void Goocanvas::Item::raise | ( | ) |
Raise the item to the top of the stack.
void Goocanvas::Item::lower | ( | const Glib::RefPtr< Item > & | below | ) |
void Goocanvas::Item::lower | ( | ) |
Lower the item to the bottom of the stack.
Bounds Goocanvas::Item::get_bounds | ( | ) | const |
void Goocanvas::Item::request_update | ( | ) |
void Goocanvas::Item::ensure_upated | ( | ) |
void Goocanvas::Item::update | ( | bool | entire_tree, | |
const Cairo::RefPtr< Cairo::Context > & | context, | |||
Bounds & | bounds | |||
) |
void Goocanvas::Item::paint | ( | const Cairo::RefPtr< Cairo::Context > & | context, | |
const Bounds & | bounds, | |||
double | scale | |||
) |
bool Goocanvas::Item::get_requested_area | ( | const Cairo::RefPtr< Cairo::Context > & | context, | |
Bounds & | bounds | |||
) | const |
double Goocanvas::Item::get_requested_height | ( | const Cairo::RefPtr< Cairo::Context > & | context, | |
double | width | |||
) | const |
void Goocanvas::Item::allocate_area | ( | const Cairo::RefPtr< Cairo::Context > & | context, | |
const Bounds & | requested_area, | |||
const Bounds & | allocated_area, | |||
double | x_offset, | |||
double | y_offset | |||
) |
Glib::ListHandle< Glib::RefPtr<Item> > Goocanvas::Item::get_items_at | ( | double | x, | |
double | y, | |||
const Cairo::RefPtr< Cairo::Context > & | context, | |||
bool | is_pointer_event, | |||
bool | parent_is_visible, | |||
const Glib::ListHandle< Glib::RefPtr< Item > > & | found_items | |||
) |
bool Goocanvas::Item::get_transform | ( | Cairo::Matrix * | matrix | ) |
void Goocanvas::Item::set_transform | ( | const Cairo::Matrix * | matrix | ) |
void Goocanvas::Item::set_simple_transform | ( | double | x, | |
double | y, | |||
double | scale, | |||
double | rotation | |||
) |
void Goocanvas::Item::translate | ( | double | tx, | |
double | ty | |||
) |
void Goocanvas::Item::scale | ( | double | sx, | |
double | sy | |||
) |
void Goocanvas::Item::rotate | ( | double | degrees, | |
double | cx, | |||
double | cy | |||
) |
void Goocanvas::Item::skew_x | ( | double | degrees, | |
double | cx, | |||
double | cy | |||
) |
void Goocanvas::Item::skew_y | ( | double | degrees, | |
double | cx, | |||
double | cy | |||
) |
bool Goocanvas::Item::get_transform_for_child | ( | const Glib::RefPtr< Item > & | child, | |
Cairo::Matrix * | transform | |||
) |
Glib::RefPtr<Style> Goocanvas::Item::get_style | ( | ) |
Glib::RefPtr<const Style> Goocanvas::Item::get_style | ( | ) | const |
void Goocanvas::Item::set_style | ( | const Glib::RefPtr< Style > & | style | ) |
void Goocanvas::Item::animate | ( | double | x, | |
double | y, | |||
double | scale, | |||
double | degrees, | |||
bool | absolute, | |||
int | duration, | |||
int | step_time, | |||
GooCanvasAnimateType | type | |||
) |
void Goocanvas::Item::stop_animation | ( | ) |
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventCrossing* > Goocanvas::Item::signal_enter_notify_event | ( | ) |
bool on_my_enter_notify_event(const Glib::RefPtr<Item>& target, GdkEventCrossing* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventCrossing* > Goocanvas::Item::signal_leave_notify_event | ( | ) |
bool on_my_leave_notify_event(const Glib::RefPtr<Item>& target, GdkEventCrossing* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventMotion* > Goocanvas::Item::signal_motion_notify_event | ( | ) |
bool on_my_motion_notify_event(const Glib::RefPtr<Item>& target, GdkEventMotion* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventButton* > Goocanvas::Item::signal_button_press_event | ( | ) |
bool on_my_button_press_event(const Glib::RefPtr<Item>& target, GdkEventButton* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventButton* > Goocanvas::Item::signal_button_release_event | ( | ) |
bool on_my_button_release_event(const Glib::RefPtr<Item>& target, GdkEventButton* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventFocus* > Goocanvas::Item::signal_focus_in_event | ( | ) |
bool on_my_focus_in_event(const Glib::RefPtr<Item>& target, GdkEventFocus* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventFocus* > Goocanvas::Item::signal_focus_out_event | ( | ) |
bool on_my_focus_out_event(const Glib::RefPtr<Item>& target, GdkEventFocus* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventKey* > Goocanvas::Item::signal_key_press_event | ( | ) |
bool on_my_key_press_event(const Glib::RefPtr<Item>& target, GdkEventKey* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventKey* > Goocanvas::Item::signal_key_release_event | ( | ) |
bool on_my_key_release_event(const Glib::RefPtr<Item>& target, GdkEventKey* event)
Glib::SignalProxy2< bool,const Glib::RefPtr<Item>&,GdkEventGrabBroken* > Goocanvas::Item::signal_grab_broken_event | ( | ) |
bool on_my_grab_broken_event(const Glib::RefPtr<Item>& target, GdkEventGrabBroken* event)
Glib::SignalProxy1< void,GParamSpec* > Goocanvas::Item::signal_child_notify | ( | ) |
void on_my_child_notify(GParamSpec* pspec)
Glib::PropertyProxy<bool> Goocanvas::Item::_can_focus | ( | ) |
If the item can take the keyboard focus.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy_ReadOnly<bool> Goocanvas::Item::_can_focus | ( | ) | const |
If the item can take the keyboard focus.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy<ItemVisibility> Goocanvas::Item::_visibility | ( | ) |
When the canvas item is visible.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy_ReadOnly<ItemVisibility> Goocanvas::Item::_visibility | ( | ) | const |
When the canvas item is visible.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy<Glib::ustring> Goocanvas::Item::_description | ( | ) |
A description of the item for use by assistive technologies.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy_ReadOnly<Glib::ustring> Goocanvas::Item::_description | ( | ) | const |
A description of the item for use by assistive technologies.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy<double> Goocanvas::Item::_visibility_threshold | ( | ) |
The scale threshold at which the item becomes visible.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy_ReadOnly<double> Goocanvas::Item::_visibility_threshold | ( | ) | const |
The scale threshold at which the item becomes visible.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy<PointerEvents> Goocanvas::Item::_pointer_events | ( | ) |
Specifies when the item receives pointer events.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
Glib::PropertyProxy_ReadOnly<PointerEvents> Goocanvas::Item::_pointer_events | ( | ) | const |
Specifies when the item receives pointer events.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Reimplemented in Goocanvas::ItemSimple.
virtual Glib::RefPtr<Item> Goocanvas::Item::get_parent_vfunc | ( | ) | [protected, virtual] |
virtual void Goocanvas::Item::set_parent_vfunc | ( | const Glib::RefPtr< Item > & | parent | ) | [protected, virtual] |
virtual void Goocanvas::Item::get_bounds_vfunc | ( | GooCanvasBounds * | bounds | ) | [protected, virtual] |
virtual void Goocanvas::Item::update_vfunc | ( | bool | entire_tree, | |
const Cairo::RefPtr< Cairo::Context > & | cr, | |||
GooCanvasBounds * | bounds | |||
) | [protected, virtual] |
virtual void Goocanvas::Item::paint_vfunc | ( | const Cairo::RefPtr< Cairo::Context > & | cr, | |
const Bounds & | bounds, | |||
double | scale | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::get_requested_area_vfunc | ( | const Cairo::RefPtr< Cairo::Context > & | cr, | |
GooCanvasBounds * | requested_area | |||
) | [protected, virtual] |
virtual void Goocanvas::Item::allocate_area_vfunc | ( | const Cairo::RefPtr< Cairo::Context > & | cr, | |
const Bounds & | requested_area, | |||
const Bounds & | allocated_area, | |||
double | x_offset, | |||
double | y_offset | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::get_transform_vfunc | ( | cairo_matrix_t * | transform | ) | [protected, virtual] |
virtual bool Goocanvas::Item::on_enter_notify_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventCrossing * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_leave_notify_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventCrossing * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_motion_notify_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventMotion * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_button_press_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventButton * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_button_release_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventButton * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_focus_in_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventFocus * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_focus_out_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventFocus * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_key_press_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventKey * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_key_release_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventKey * | event | |||
) | [protected, virtual] |
virtual bool Goocanvas::Item::on_grab_broken_event | ( | const Glib::RefPtr< Item > & | target, | |
GdkEventGrabBroken * | event | |||
) | [protected, virtual] |
virtual void Goocanvas::Item::on_child_notify | ( | GParamSpec * | pspec | ) | [protected, virtual] |
Glib::RefPtr< Goocanvas::Item > wrap | ( | GooCanvasItem * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
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. |