diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-16 19:03:41 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-16 19:04:36 +0100 |
commit | 28e4708825c1093ab128856e22ed468635b64f54 (patch) | |
tree | 05fcb9fb0e1e85dd8b152e3c30f62e0a99d97d8f /gtk2_ardour/ardour_button.h | |
parent | d57546dea2e23cc31f5c2c46fa43b7aa82935677 (diff) |
AButton: allow to set custom LED color (for > 2 states)
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r-- | gtk2_ardour/ardour_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h index a3bea7ca3a..b1e2bb82ea 100644 --- a/gtk2_ardour/ardour_button.h +++ b/gtk2_ardour/ardour_button.h @@ -65,6 +65,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable void set_active_state (Gtkmm2ext::ActiveState); void set_visual_state (Gtkmm2ext::VisualState); + void set_custom_led_color (uint32_t c, bool useit = true) { led_custom_color = c; use_custom_led_color = useit; } + void set_act_on_release (bool onRelease) { _act_on_release = onRelease; } Element elements() const { return _elements; } @@ -154,6 +156,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable uint32_t led_active_color; uint32_t led_inactive_color; + uint32_t led_custom_color; + bool use_custom_led_color; cairo_pattern_t* convex_pattern; cairo_pattern_t* concave_pattern; |