Optimize automation-event process splitting
[ardour.git] / gtk2_ardour / led.h
index e2009ce1925ebf58967ef343161f11ab1023bb3f..fd29f9439fdfeef3df4204e851a3570e04fa32c3 100644 (file)
 
 #include <stdint.h>
 
-#include "cairo_widget.h"
+#include "gtkmm2ext/cairo_widget.h"
 
 class LED : public CairoWidget
 {
-  public:
+public:
        LED ();
        virtual ~LED ();
 
-        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<Cairo::Context> 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__ */