11 WindowState(
int ax,
int ay,
int aw,
int ah,
bool m =
false) : x(ax), y(ay), width(aw), height(ah), maximized(m){};
17 bool maximized =
false;
20 class WindowStateStore {
22 WindowStateStore(Gtk::Window *w,
const std::string &window_name);
23 bool get_default_set()
const;
27 const std::string window_name;
28 Gtk::Window *win =
nullptr;
29 WindowState window_state;
31 bool load(
const std::string &win, WindowState &ws);
32 void save(
const std::string &win,
const WindowState &ws);
34 void apply(
const WindowState &ws);
35 bool default_set =
false;