mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
pre-render text canvas items so that ::render() is just a blit from an image surface
This commit is contained in:
parent
bcd65def7d
commit
b9750bac72
2 changed files with 52 additions and 31 deletions
|
|
@ -24,13 +24,19 @@ public:
|
|||
void set_font_description (Pango::FontDescription);
|
||||
void set_alignment (Pango::Alignment);
|
||||
|
||||
void set_size_chars (int nchars);
|
||||
|
||||
private:
|
||||
Glib::RefPtr<Pango::Layout> layout (Cairo::RefPtr<Cairo::Context>) const;
|
||||
|
||||
std::string _text;
|
||||
std::string _text;
|
||||
Cairo::RefPtr<Cairo::ImageSurface> _image;
|
||||
uint32_t _color;
|
||||
Pango::FontDescription* _font_description;
|
||||
uint32_t _color;
|
||||
Pango::Alignment _alignment;
|
||||
Duple _origin;
|
||||
int _width;
|
||||
int _height;
|
||||
|
||||
void redraw ();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue