mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
add ArdourCanvas::Fill::set_pattern() to allow any filled canvas item to be filled using an arbitrary Cairo Pattern
This commit is contained in:
parent
75a150ecc0
commit
98d1200f2c
2 changed files with 15 additions and 1 deletions
|
|
@ -53,6 +53,8 @@ public:
|
|||
|
||||
void set_gradient (StopList const & stops, bool is_vertical);
|
||||
|
||||
void set_pattern (Cairo::RefPtr<Cairo::Pattern>);
|
||||
|
||||
protected:
|
||||
void setup_fill_context (Cairo::RefPtr<Cairo::Context>) const;
|
||||
void setup_gradient_context (Cairo::RefPtr<Cairo::Context>, Rect const &, Duple const &) const;
|
||||
|
|
@ -63,6 +65,8 @@ protected:
|
|||
bool _transparent;
|
||||
StopList _stops;
|
||||
bool _vertical_gradient;
|
||||
Cairo::RefPtr<Cairo::Pattern> _pattern;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue