diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-07 18:50:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-07 20:23:49 +0200 |
commit | cb07f0f99b3b4c10ebf23c8ddeca6a0c93ae8a56 (patch) | |
tree | 29e712a46374119669a19542904e4dbfa2895d7b /gtk2_ardour/ardour_button.h | |
parent | 5dab88c3fa34692b2c7cedd2ac817a50fac193b4 (diff) |
yet another button tweak..
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r-- | gtk2_ardour/ardour_button.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h index c2b20c3ba9..9d59f1a9ea 100644 --- a/gtk2_ardour/ardour_button.h +++ b/gtk2_ardour/ardour_button.h @@ -55,7 +55,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable enum Tweaks { Square = 0x1, - unused2 = 0x2, + TrackHeader = 0x2, unused3 = 0x4, }; @@ -105,6 +105,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable unsigned int char_pixel_width() { if (_char_pixel_width < 1) recalc_char_pixel_geometry() ; return _char_pixel_width; } unsigned int char_pixel_height() { if (_char_pixel_height < 1) recalc_char_pixel_geometry() ; return _char_pixel_height; } + float char_avg_pixel_width() { if (_char_pixel_width < 1) recalc_char_pixel_geometry() ; return _char_avg_pixel_width; } protected: void render (cairo_t *, cairo_rectangle_t *); @@ -133,6 +134,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable void recalc_char_pixel_geometry (); unsigned int _char_pixel_width; unsigned int _char_pixel_height; + float _char_avg_pixel_width; int _text_width; int _text_height; |