Skip to content

Commit

Permalink
add ArdourButton::remove_elements()
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldavisthefirst committed Dec 29, 2024
1 parent 03b036f commit 0133400
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/widgets/ardour_button.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,13 @@ ArdourButton::add_elements (Element e)
CairoWidget::set_dirty ();
}

void
ArdourButton::remove_elements (Element e)
{
_elements = (ArdourButton::Element) (_elements & ~e);
CairoWidget::set_dirty ();
}

void
ArdourButton::set_icon (ArdourIcon::Icon i)
{
Expand Down
1 change: 1 addition & 0 deletions libs/widgets/widgets/ardour_button.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
Element elements() const { return _elements; }
void set_elements (Element);
void add_elements (Element);
void remove_elements (Element);

ArdourIcon::Icon icon() const { return _icon; }
void set_icon (ArdourIcon::Icon);
Expand Down

0 comments on commit 0133400

Please sign in to comment.