mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
add API to extract color from ArdourCanvas::Text and tidy up member declarations
This commit is contained in:
parent
04a4e949e8
commit
0ae0477945
1 changed files with 12 additions and 10 deletions
|
|
@ -38,8 +38,10 @@ public:
|
|||
void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
|
||||
void compute_bounding_box () const;
|
||||
|
||||
ArdourCanvas::Color color () const { return _color; }
|
||||
void set_color (ArdourCanvas::Color);
|
||||
|
||||
void set (std::string const &);
|
||||
void set_color (uint32_t);
|
||||
void set_font_description (Pango::FontDescription);
|
||||
void set_alignment (Pango::Alignment);
|
||||
|
||||
|
|
@ -52,17 +54,17 @@ public:
|
|||
double text_width() const { return _width; }
|
||||
|
||||
private:
|
||||
std::string _text;
|
||||
uint32_t _color;
|
||||
std::string _text;
|
||||
ArdourCanvas::Color _color;
|
||||
Pango::FontDescription* _font_description;
|
||||
Pango::Alignment _alignment;
|
||||
Pango::Alignment _alignment;
|
||||
mutable Cairo::RefPtr<Cairo::ImageSurface> _image;
|
||||
mutable Duple _origin;
|
||||
mutable double _width;
|
||||
mutable double _height;
|
||||
mutable bool _need_redraw;
|
||||
mutable double _width_correction;
|
||||
double _clamped_width;
|
||||
mutable Duple _origin;
|
||||
mutable double _width;
|
||||
mutable double _height;
|
||||
mutable bool _need_redraw;
|
||||
mutable double _width_correction;
|
||||
double _clamped_width;
|
||||
|
||||
void redraw (Cairo::RefPtr<Cairo::Context>) const;
|
||||
void redraw (Glib::RefPtr<Pango::Context>) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue