#ifndef LIGHT_ON_LIST_HPP_INCLUDED #define LIGHT_ON_LIST_HPP_INCLUDED #include #include #include #include #include #include #include #include "light.hpp" namespace cx_light { class light_on_list: public Gtk::Frame { public: light_on_list(light); ~light_on_list() override; static int width(); static int height(); void set_show_callback(std::function); void set_edit_callback(std::function); private: light *target; Gtk::Box *center; Gtk::Label *title; Gtk::Button *show; Gtk::Button *edit; std::function show_callback; std::function edit_callback; }; } #endif