Add API to add sizing-texts to ArdourButton
This commit is contained in:
@@ -238,6 +238,13 @@ ArdourButton::set_sizing_text (std::string const& str)
|
||||
queue_resize ();
|
||||
}
|
||||
|
||||
void
|
||||
ArdourButton::add_sizing_text (std::string const& str)
|
||||
{
|
||||
_sizing_texts.push_back (str);
|
||||
queue_resize ();
|
||||
}
|
||||
|
||||
void
|
||||
ArdourButton::set_sizing_texts (std::vector<std::string> const& s)
|
||||
{
|
||||
|
||||
@@ -113,6 +113,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
|
||||
* empty string to return to the default behavior which uses
|
||||
* the currently displayed text for measurement. */
|
||||
void set_sizing_text (std::string const&);
|
||||
void add_sizing_text (std::string const&);
|
||||
void set_sizing_texts (std::vector<std::string> const&);
|
||||
|
||||
sigc::signal<void, GdkEventButton*> signal_led_clicked;
|
||||
|
||||
Reference in New Issue
Block a user