|
| Image (Canvas *, Cairo::Format, int width, int height) |
|
| Image (Item *, Cairo::Format, int width, int height) |
|
std::shared_ptr< Data > | get_image (bool allocate_data=true) |
|
void | put_image (std::shared_ptr< Data >) |
|
void | render (Rect const &, Cairo::RefPtr< Cairo::Context >) const |
|
void | compute_bounding_box () const |
|
| Item (Canvas *) |
|
| Item (Item *) |
|
| Item (Item *, Duple const &p) |
|
virtual | ~Item () |
|
void | redraw () const |
|
virtual void | prepare_for_render (Rect const &area) const |
|
virtual void | add_items_at_point (Duple point, std::vector< Item const * > &items) const |
|
virtual bool | covers (Duple const &point) const |
|
void | grab () |
|
void | ungrab () |
|
void | unparent () |
|
void | reparent (Item *, bool already_added=false) |
|
Item * | parent () const |
|
uint32_t | depth () const |
|
const Item * | closest_ancestor_with (const Item &other) const |
|
bool | common_ancestor_within (uint32_t, const Item &other) const |
|
bool | is_ancestor_of (const Item &candidate) const |
|
bool | is_descendant_of (const Item &candidate) const |
|
void | set_position (Duple) |
|
void | set_x_position (Coord) |
|
void | set_y_position (Coord) |
|
void | move (Duple) |
|
Duple | position () const |
|
Duple | window_origin () const |
|
Duple | canvas_origin () const |
|
ScrollGroup * | scroll_parent () const |
|
virtual void | size_request (double &w, double &h) const |
|
void | set_size_request (double w, double h) |
|
void | set_size_request_to_display_given_text (const std::vector< std::string > &strings, gint hpadding, gint vpadding) |
|
void | size_allocate (Rect const &) |
|
virtual void | _size_allocate (Rect const &) |
|
virtual void | size_allocate_children (Rect const &r) |
|
Rect | allocation () const |
|
void | set_layout_sensitive (bool) |
|
bool | layout_sensitive () const |
|
Rect | bounding_box () const |
|
Coord | height () const |
|
Coord | width () const |
|
Duple | item_to_parent (Duple const &) const |
|
Rect | item_to_parent (Rect const &) const |
|
Duple | parent_to_item (Duple const &) const |
|
Rect | parent_to_item (Rect const &) const |
|
void | canvas_to_item (Coord &, Coord &) const |
|
void | item_to_canvas (Coord &, Coord &) const |
|
Duple | canvas_to_item (Duple const &) const |
|
Rect | item_to_canvas (Rect const &) const |
|
Duple | item_to_canvas (Duple const &) const |
|
Rect | canvas_to_item (Rect const &) const |
|
Duple | item_to_window (Duple const &, bool rounded=true) const |
|
Duple | window_to_item (Duple const &) const |
|
Rect | item_to_window (Rect const &, bool rounded=true) const |
|
Rect | window_to_item (Rect const &) const |
|
void | raise_to_top () |
|
void | raise (int) |
|
void | lower_to_bottom () |
|
virtual void | hide () |
|
virtual void | show () |
|
void | block_change_notifications () |
|
void | unblock_change_notifications () |
|
bool | self_visible () const |
|
bool | visible () const |
|
Canvas * | canvas () const |
|
void | set_ignore_events (bool) |
|
bool | ignore_events () const |
|
void | set_data (std::string const &, void *) |
|
void * | get_data (std::string const &) const |
|
virtual void | add (Item *) |
|
virtual void | add_front (Item *) |
|
virtual void | remove (Item *) |
|
void | clear (bool with_delete=false) |
|
std::list< Item * > const & | items () const |
|
void | raise_child_to_top (Item *) |
|
void | raise_child (Item *, int) |
|
void | lower_child_to_bottom (Item *) |
|
virtual void | child_changed (bool bbox_changed) |
|
PackOptions | pack_options () const |
|
void | set_pack_options (PackOptions) |
|
std::string | whoami () const |
|
const std::string & | tooltip () const |
|
void | set_tooltip (const std::string &) |
|
void | start_tooltip_timeout () |
|
void | stop_tooltip_timeout () |
|
virtual void | dump (std::ostream &) const |
|
std::string | whatami () const |
|
bool | resize_queued () const |
|
void | queue_resize () |
|
bool | scroll_translation () const |
|
void | disable_scroll_translation () |
|
virtual void | layout () |
|
Duple | position_offset () const |
|
| Fill (Item &self) |
|
| Fill (const Fill &)=delete |
|
Fill & | operator= (const Fill &)=delete |
|
virtual | ~Fill () |
|
virtual void | set_fill_color (Gtkmm2ext::Color) |
|
virtual void | set_fill (bool) |
|
Gtkmm2ext::Color | fill_color () const |
|
bool | fill () const |
|
void | set_gradient (StopList const &stops, bool is_vertical) |
|
void | set_pattern (Cairo::RefPtr< Cairo::Pattern >) |
|
| Outline (Item &self) |
|
| Outline (const Outline &)=delete |
|
Outline & | operator= (const Outline &)=delete |
|
virtual | ~Outline () |
|
Gtkmm2ext::Color | outline_color () const |
|
virtual void | set_outline_color (Gtkmm2ext::Color) |
|
Distance | outline_width () const |
|
virtual void | set_outline_width (Distance) |
|
bool | outline () const |
|
virtual void | set_outline (bool) |
|
Definition at line 34 of file canvas/canvas/image.h.
std::shared_ptr<Data> ArdourCanvas::Image::get_image |
( |
bool |
allocate_data = true | ) |
|
Returns a shared_ptr to a Data object that can be used to write image data to. The Data object will contain a pointer to the buffer, along with image properties that may be useful during the data writing.
Can be called from any thread BUT ..
... to avoid collisions with Image deletion, some synchronization method may be required or the use of shared_ptr<Image> or similar.