static Element led_default_elements;
static Element just_led_default_elements;
+ static void set_flat_buttons (bool yn);
+ static bool flat_buttons() { return _flat_buttons; }
+
ArdourButton (Element e = default_elements);
ArdourButton (const std::string&, Element e = default_elements);
virtual ~ArdourButton ();
void set_active_state (Gtkmm2ext::ActiveState);
void set_visual_state (Gtkmm2ext::VisualState);
- void set_elements (Element);
Element elements() const { return _elements; }
-
+ void set_elements (Element);
+
void set_corner_radius (float);
+ void set_rounded_corner_mask (int);
void set_diameter (float);
void set_text (const std::string&);
int _text_height;
float _diameter;
float _corner_radius;
+ int _corner_mask;
cairo_pattern_t* edge_pattern;
- cairo_pattern_t* fill_pattern;
+ cairo_pattern_t* active_pattern;
+ cairo_pattern_t* inactive_pattern;
cairo_pattern_t* led_inset_pattern;
cairo_pattern_t* reflection_pattern;
double led_b;
double led_a;
+ double active_r;
+ double active_g;
+ double active_b;
+ double active_a;
+
bool _act_on_release;
bool _led_left;
bool _fixed_diameter;
bool _distinct_led_click;
bool _hovering;
+ static bool _flat_buttons;
+
void setup_led_rect ();
void set_colors ();
void color_handler ();