21 #ifndef __CANVAS_ITEM_H__
22 #define __CANVAS_ITEM_H__
28 #include <cairomm/context.h>
43 class ConstrainedItem;
77 virtual void render (
Rect const & area, Cairo::RefPtr<Cairo::Context>)
const = 0;
219 return _ignore_events;
230 void clear (
bool with_delete =
false);
232 std::list<Item*>
const &
items ()
const {
256 while (first != last) {
266 sigc::signal1<bool, GdkEvent*, EventAccumulator<bool> >
Event;
270 std::string whoami()
const {
return whatami() +
'/' +
name; }
272 std::string
whoami()
const {
return whatami(); }
275 const std::string&
tooltip ()
const {
return _tooltip; }
281 virtual void dump (std::ostream&)
const;
345 std::map<std::string, void *>
_data;
ItemChangeBlocker(Item &i)
virtual void remove(Item *)
void raise_child(Item *, int)
std::list< Item * > const & items() const
Duple position_offset() const
void add_child_bounding_boxes(bool include_hidden=false) const
PackOptions _pack_options
Rect window_to_item(Rect const &) const
void set_bbox_dirty() const
Rect parent_to_item(Rect const &) const
void item_to_canvas(Coord &, Coord &) const
bool layout_sensitive() const
void propagate_show_hide()
void set_bbox_clean() const
virtual void _size_allocate(Rect const &)
std::list< Item * > _items
void start_tooltip_timeout()
virtual void add_items_at_point(Duple point, std::vector< Item const * > &items) const
virtual void render(Rect const &area, Cairo::RefPtr< Cairo::Context >) const =0
void set_x_position(Coord)
Rect item_to_parent(Rect const &) const
sigc::signal1< bool, GdkEvent *, EventAccumulator< bool > > Event
Duple canvas_to_item(Duple const &) const
void block_change_notifications()
void set_pack_options(PackOptions)
void disable_scroll_translation()
const Item * closest_ancestor_with(const Item &other) const
Rect item_to_canvas(Rect const &) const
std::string whoami() const
Rect bounding_box() const
Item(Item *, Duple const &p)
virtual void child_changed(bool bbox_changed)
PackOptions pack_options() const
void invalidate_lut() const
virtual bool covers(Duple const &point) const
void begin_visual_change()
const std::string & tooltip() const
virtual void size_allocate_children(Rect const &r)
void set_layout_sensitive(bool)
void clear(bool with_delete=false)
void set_size_request_to_display_given_text(const std::vector< std::string > &strings, gint hpadding, gint vpadding)
bool is_descendant_of(const Item &candidate) const
bool ignore_events() const
void unblock_change_notifications()
bool self_visible() const
Duple item_to_window(Duple const &, bool rounded=true) const
Duple item_to_parent(Duple const &) const
Duple scroll_offset() const
void canvas_to_item(Coord &, Coord &) const
void lower_child_to_bottom(Item *)
void find_scroll_parent()
std::string whatami() const
Duple window_to_item(Duple const &) const
Duple item_to_canvas(Duple const &) const
void set_ignore_events(bool)
Duple parent_to_item(Duple const &) const
void render_children(Rect const &area, Cairo::RefPtr< Cairo::Context > context) const
Rect item_to_window(Rect const &, bool rounded=true) const
void size_allocate(Rect const &)
void set_tooltip(const std::string &)
Rect _pre_change_bounding_box
Duple window_origin() const
void raise_child_to_top(Item *)
virtual void dump(std::ostream &) const
std::map< std::string, void * > _data
void set_size_request(double w, double h)
void stop_tooltip_timeout()
void prepare_for_render_children(Rect const &area) const
bool is_ancestor_of(const Item &candidate) const
ScrollGroup * _scroll_parent
virtual void size_request(double &w, double &h) const
void set_y_position(Coord)
bool scroll_translation() const
bool common_ancestor_within(uint32_t, const Item &other) const
bool resize_queued() const
void set_data(std::string const &, void *)
void reparent(Item *, bool already_added=false)
Duple canvas_origin() const
ScrollGroup * scroll_parent() const
static int default_items_per_cell
void clear_items(bool with_delete)
virtual void compute_bounding_box() const =0
virtual void prepare_for_render(Rect const &area) const
virtual void add_front(Item *)
Rect canvas_to_item(Rect const &) const
void * get_data(std::string const &) const
GtkImageIconNameData name
std::ostream & operator<<(std::ostream &, const ArdourCanvas::Item &)