projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixes, added background image
[winnie]
/
src
/
wm.h
diff --git
a/src/wm.h
b/src/wm.h
index
b675539
..
0ba8a04
100644
(file)
--- a/
src/wm.h
+++ b/
src/wm.h
@@
-8,6
+8,9
@@
class Window;
class Window;
+bool init_window_manager();
+void destroy_window_manager();
+
class WindowManager {
private:
std::list<Window*> windows;
class WindowManager {
private:
std::list<Window*> windows;
@@
-25,6
+28,7
@@
private:
Window *grab_win;
Pixmap mouse_cursor;
Window *grab_win;
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);
@@
-44,11
+48,16
@@
public:
Window *get_focused_window();
Window *get_window_at_pos(int pointer_x, int pointer_y);
Window *get_focused_window();
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 set_focused_frame_color(int r, int g, int b);
- void get_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 set_unfocused_frame_color(int r, int g, int b);
+ void get_unfocused_frame_color(int *r, int *g, int *b) const;
+
+ void set_background(const Pixmap *pixmap);
+ const Pixmap *get_background() const;
Window *get_grab_window() const;
Window *get_grab_window() const;
@@
-57,6
+66,9
@@
public:
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);
};
extern WindowManager *wm;
};
extern WindowManager *wm;