| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef SOURCE_CONTROL_HPP_INCLUDED
- #define SOURCE_CONTROL_HPP_INCLUDED
- #include <string>
- #include <gtkmm/grid.h>
- #include <gtkmm/entry.h>
- #include <gtkmm/label.h>
- #include <gtkmm/scale.h>
- #include <gtkmm/button.h>
- #include <gtkmm/drawingarea.h>
- #include <gtkmm/adjustment.h>
- #include <cairomm/context.h>
- #include "light.hpp"
- namespace cx_light {
- class control: public Gtk::Grid {
- public:
- control(light*);
- ~control() override;
- void redraw(
- const Cairo::RefPtr<Cairo::Context> &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<Gtk::Adjustment> *color_value;
- Glib::RefPtr<Gtk::Adjustment> *power_value;
- };
- }
- #endif
|