1 #ifndef WIDGET_HPP 2 #define WIDGET_HPP 3 4 #include <gtkmm/hvbox.h> 5 #include <wf-option-wrap.hpp> 6 #include <wayfire/config/types.hpp> 7 8 #define DEFAULT_PANEL_HEIGHT "48" 9 #define DEFAULT_ICON_SIZE 32 10 11 #define PANEL_POSITION_BOTTOM "bottom" 12 #define PANEL_POSITION_TOP "top" 13 14 class wayfire_config; 15 class WayfireWidget 16 { 17 public: 18 std::string widget_name; // for WayfirePanel use, widgets shouldn't change it 19 20 virtual void init(Gtk::HBox *container) = 0; handle_config_reload()21 virtual void handle_config_reload() {} ~WayfireWidget()22 virtual ~WayfireWidget() {}; 23 }; 24 25 #endif /* end of include guard: WIDGET_HPP */ 26