Allow to override Ardour button text padding

This commit is contained in:
Robin Gareus 2022-11-05 15:11:45 +01:00
parent 88ff1fa192
commit 3d6ecaad79
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 17 additions and 1 deletions

View file

@ -102,6 +102,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
void set_layout_ellipsize_width (int w);
void set_layout_font (const Pango::FontDescription&);
void set_text_ellipsize (Pango::EllipsizeMode);
void set_width_padding (float);
/* Sets the text used for size request computation. Pass an
* empty string to return to the default behavior which uses
@ -171,6 +172,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
unsigned int _char_pixel_width;
unsigned int _char_pixel_height;
float _char_avg_pixel_width;
float _width_padding;
bool _custom_font_set;
int _text_width;