X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fled.h;h=fd29f9439fdfeef3df4204e851a3570e04fa32c3;hb=6b1b72a247bf04c81292fc41af4f69c9b7f90379;hp=e8514d60c053017e2121bb7664204ebe338dcb41;hpb=51ab5ccabf432540ca935065f6c6f40a96f42dad;p=ardour.git diff --git a/gtk2_ardour/led.h b/gtk2_ardour/led.h index e8514d60c0..fd29f9439f 100644 --- a/gtk2_ardour/led.h +++ b/gtk2_ardour/led.h @@ -22,35 +22,29 @@ #include -#include "cairo_widget.h" +#include "gtkmm2ext/cairo_widget.h" class LED : public CairoWidget { - public: +public: 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); - - protected: - void render (cairo_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 (); + void set_diameter (float); + +protected: + void render (Cairo::RefPtr const&, cairo_rectangle_t*); + void on_size_request (Gtk::Requisition* req); + void on_realize (); + +private: + float _diameter; + float _red; + float _green; + float _blue; + bool _fixed_diameter; + + void set_colors_from_style (); }; #endif /* __gtk2_ardour_led_h__ */