X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fled.h;h=ef5ae7b68df8c5ac708b2a0ecd433b410ff028b5;hb=adea8ab68fc8a29984264a4a17ad7cf74439c521;hp=e8514d60c053017e2121bb7664204ebe338dcb41;hpb=51ab5ccabf432540ca935065f6c6f40a96f42dad;p=ardour.git diff --git a/gtk2_ardour/led.h b/gtk2_ardour/led.h index e8514d60c0..ef5ae7b68d 100644 --- a/gtk2_ardour/led.h +++ b/gtk2_ardour/led.h @@ -22,7 +22,7 @@ #include -#include "cairo_widget.h" +#include "gtkmm2ext/cairo_widget.h" class LED : public CairoWidget { @@ -30,27 +30,21 @@ class LED : public CairoWidget LED (); virtual ~LED (); - void set_active (bool yn); - bool active () const { return _active; } - void set_visual_state (int32_t s); - int32_t visual_state() const { return _visual_state; } - void set_diameter (float); + void set_diameter (float); protected: - void render (cairo_t *); - void on_size_request (Gtk::Requisition* req); - void on_realize (); + void render (cairo_t *, cairo_rectangle_t*); + void on_size_request (Gtk::Requisition* req); + void on_realize (); private: - int32_t _visual_state; - bool _active; - float _diameter; - bool _fixed_diameter; - float _red; - float _green; - float _blue; - - void set_colors_from_style (); + float _diameter; + float _red; + float _green; + float _blue; + bool _fixed_diameter; + + void set_colors_from_style (); }; #endif /* __gtk2_ardour_led_h__ */