core_window.hpp 624 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CORE_WINDOW_H_INCLUDED
  2. #define CORE_WINDOW_H_INCLUDED
  3. #include <gtkmm.h>
  4. #include "strings.hpp"
  5. #include "buttons.hpp"
  6. namespace cx_light {
  7. class core_window: public Gtk::Window {
  8. public:
  9. core_window();
  10. ~core_window();
  11. private:
  12. Gtk::Grid *content;
  13. Gtk::Frame *lights_list_frame;
  14. Gtk::ListBox *lights_list;
  15. add_light_button *add_light;
  16. void init_default();
  17. void create_lights_list();
  18. void set_margin(Gtk::Widget *, unsigned int);
  19. void set_margin(Gtk::Widget *, unsigned int, unsigned int);
  20. };
  21. }
  22. #endif