mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Add API to add sizing-texts to ArdourButton
This commit is contained in:
parent
4f711c9155
commit
d280c46d44
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue