#ifndef SOURCE_CONTROL_HPP_INCLUDED #define SOURCE_CONTROL_HPP_INCLUDED #include #include #include #include #include #include #include #include #include #include "light.hpp" namespace cx_light { class control: public Gtk::Grid { public: control(light*); ~control() override; void redraw( const Cairo::RefPtr &context, int width, int height ); private: std::string title; std::string address; Gtk::Label *description; Gtk::Scale *power; Gtk::Label *power_description; Gtk::Scale *color; Gtk::Label *color_description; Gtk::DrawingArea *drawing; Gtk::Button *apply; Gtk::Button *back; Glib::RefPtr *color_value; Glib::RefPtr *power_value; }; } #endif