mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 01:26:31 +01:00
add background color property to Canvas::Canvas ; rearrange expose handling and include background fill
Conflicts: libs/canvas/canvas.cc libs/canvas/canvas/canvas.h
This commit is contained in:
parent
9cf5b23392
commit
ef56948d4a
2 changed files with 45 additions and 41 deletions
|
|
@ -87,6 +87,9 @@ public:
|
|||
return &_root;
|
||||
}
|
||||
|
||||
void set_background_color (ArdourCanvas::Color);
|
||||
ArdourCanvas::Color background_color() const { return _bg_color; }
|
||||
|
||||
/** Called when an item is being destroyed */
|
||||
virtual void item_going_away (Item *, boost::optional<Rect>) {}
|
||||
void item_shown_or_hidden (Item *);
|
||||
|
|
@ -152,13 +155,12 @@ public:
|
|||
static void set_tooltip_timeout (uint32_t msecs);
|
||||
|
||||
protected:
|
||||
void queue_draw_item_area (Item *, Rect);
|
||||
|
||||
/** our root item */
|
||||
Root _root;
|
||||
Root _root;
|
||||
Color _bg_color;
|
||||
|
||||
static uint32_t tooltip_timeout_msecs;
|
||||
|
||||
void queue_draw_item_area (Item *, Rect);
|
||||
virtual void pick_current_item (int state) = 0;
|
||||
virtual void pick_current_item (Duple const &, int state) = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue