diff options
Diffstat (limited to 'libwinnie/src/wm.h')
-rw-r--r-- | libwinnie/src/wm.h | 99 |
1 files changed, 50 insertions, 49 deletions
diff --git a/libwinnie/src/wm.h b/libwinnie/src/wm.h index 854f501..a6ef826 100644 --- a/libwinnie/src/wm.h +++ b/libwinnie/src/wm.h @@ -33,79 +33,80 @@ class Window; bool init_window_manager(); void destroy_window_manager(); -class WindowManager { +class WindowManager +{ private: - std::list<Window*> windows; + std::list<Window *> windows; - std::list<Rect> dirty_rects; + std::list<Rect> dirty_rects; - int bg_color[3]; - int frame_thickness; - int titlebar_thickness; - int frame_fcolor[3]; - int frame_ucolor[3]; - int bevel_sz; + int bg_color[3]; + int frame_thickness; + int titlebar_thickness; + int frame_fcolor[3]; + int frame_ucolor[3]; + int bevel_sz; - Window *root_win; - Window *focused_win; - Window *grab_win; + Window *root_win; + Window *focused_win; + Window *grab_win; - Pixmap mouse_cursor; - Pixmap *background; + Pixmap mouse_cursor; + Pixmap *background; - void create_frame(Window *win); - void destroy_frame(Window *win); + void create_frame(Window *win); + void destroy_frame(Window *win); public: - WindowManager(); - ~WindowManager(); + WindowManager(); + ~WindowManager(); - void invalidate_region(const Rect &rect); - void process_windows(); + void invalidate_region(const Rect &rect); + void process_windows(); - void add_window(Window *win); - void remove_window(Window *win); + void add_window(Window *win); + void remove_window(Window *win); - void set_focused_window(Window *win); - const Window *get_focused_window() const; - Window *get_focused_window(); + void set_focused_window(Window *win); + const Window *get_focused_window() const; + Window *get_focused_window(); - Window *get_window_at_pos(int pointer_x, int pointer_y); - Window *get_root_window() const; + Window *get_window_at_pos(int pointer_x, int pointer_y); + Window *get_root_window() const; - void set_focused_frame_color(int r, int g, int b); - void get_focused_frame_color(int *r, int *g, int *b) const; + void set_focused_frame_color(int r, int g, int b); + void get_focused_frame_color(int *r, int *g, int *b) const; - void set_unfocused_frame_color(int r, int g, int b); - void get_unfocused_frame_color(int *r, int *g, int *b) const; + void set_unfocused_frame_color(int r, int g, int b); + void get_unfocused_frame_color(int *r, int *g, int *b) const; - void set_frame_size(int sz); - int get_frame_size() const; + void set_frame_size(int sz); + int get_frame_size() const; - void set_titlebar_size(int sz); - int get_titlebar_size() const; + void set_titlebar_size(int sz); + int get_titlebar_size() const; - void set_bevel_size(int sz); - int get_bevel_size() const; + void set_bevel_size(int sz); + int get_bevel_size() const; - void set_background_color(int r, int g, int b); - void get_background_color(int *r, int *g, int *b) const; + void set_background_color(int r, int g, int b); + void get_background_color(int *r, int *g, int *b) const; - void set_background(const Pixmap *pixmap); - const Pixmap *get_background() const; + void set_background(const Pixmap *pixmap); + const Pixmap *get_background() const; - Window *get_grab_window() const; + Window *get_grab_window() const; - void grab_mouse(Window *win); - void release_mouse(); + void grab_mouse(Window *win); + void release_mouse(); - void raise_window(Window *win); - void sink_window(Window *win); + void raise_window(Window *win); + void sink_window(Window *win); - void maximize_window(Window *win); - void unmaximize_window(Window *win); + void maximize_window(Window *win); + void unmaximize_window(Window *win); }; extern WindowManager *wm; -#endif // WM_H_ +#endif // WM_H_ |