mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
update ArdourButton Icon API
This commit is contained in:
parent
62a1a2e086
commit
d25e8f2233
6 changed files with 42 additions and 19 deletions
|
|
@ -40,11 +40,16 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
|||
unused = 0x10,
|
||||
Menu = 0x20,
|
||||
Inactive = 0x40, // no _action is defined AND state is not used
|
||||
RecButton = 0x80, // tentative, see commit message
|
||||
RecTapeMode = 0x100, // tentative
|
||||
CloseCross = 0x200, // tentative
|
||||
StripWidth = 0x400, // tentative
|
||||
DinMidi = 0x800, // tentative
|
||||
VectorIcon = 0x80, // tentative, see commit message
|
||||
};
|
||||
|
||||
enum Icon {
|
||||
NoIcon,
|
||||
RecButton,
|
||||
RecTapeMode,
|
||||
CloseCross,
|
||||
StripWidth,
|
||||
DinMidi,
|
||||
};
|
||||
|
||||
static Element default_elements;
|
||||
|
|
@ -75,6 +80,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
|||
void set_elements (Element);
|
||||
void add_elements (Element);
|
||||
|
||||
Icon icon() const { return _icon; }
|
||||
void set_icon (Icon);
|
||||
|
||||
void set_corner_radius (float);
|
||||
|
||||
void set_text (const std::string&);
|
||||
|
|
@ -133,6 +141,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
|||
Glib::RefPtr<Gdk::Pixbuf> _pixbuf;
|
||||
std::string _text;
|
||||
Element _elements;
|
||||
Icon _icon;
|
||||
Tweaks _tweaks;
|
||||
BindingProxy binding_proxy;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue