aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index 1d49625..9ca8326 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -34,26 +34,9 @@ class FluxboxWindow;
34 34
35 35
36class Workspace { 36class Workspace {
37private:
38 BScreen *screen;
39 FluxboxWindow *lastfocus;
40 Clientmenu *clientmenu;
41
42 typedef std::list<FluxboxWindow *> WindowStack;
43 typedef std::vector<FluxboxWindow *> Windows;
44
45 WindowStack stackingList;
46 Windows windowList;
47
48 std::string name;
49 int id, cascade_x, cascade_y;
50
51
52protected:
53 void placeWindow(FluxboxWindow *);
54
55
56public: 37public:
38 typedef std::vector<FluxboxWindow *> Windows;
39
57 Workspace(BScreen *, int = 0); 40 Workspace(BScreen *, int = 0);
58 ~Workspace(void); 41 ~Workspace(void);
59 42
@@ -70,6 +53,7 @@ public:
70 inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } 53 inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }
71 54
72 FluxboxWindow *getWindow(int); 55 FluxboxWindow *getWindow(int);
56 inline Windows &getWindowList() { return windowList; }
73 57
74 bool isCurrent(void); 58 bool isCurrent(void);
75 bool isLastWindow(FluxboxWindow *); 59 bool isLastWindow(FluxboxWindow *);
@@ -77,7 +61,7 @@ public:
77 const int addWindow(FluxboxWindow *, Bool = False); 61 const int addWindow(FluxboxWindow *, Bool = False);
78 const int removeWindow(FluxboxWindow *); 62 const int removeWindow(FluxboxWindow *);
79 const int getCount(void); 63 const int getCount(void);
80 64
81 void showAll(void); 65 void showAll(void);
82 void hideAll(void); 66 void hideAll(void);
83 void removeAll(void); 67 void removeAll(void);
@@ -88,6 +72,27 @@ public:
88 void setCurrent(void); 72 void setCurrent(void);
89 void setName(char *); 73 void setName(char *);
90 void shutdown(void); 74 void shutdown(void);
75
76private:
77 BScreen *screen;
78 FluxboxWindow *lastfocus;
79 Clientmenu *clientmenu;
80
81 typedef std::list<FluxboxWindow *> WindowStack;
82
83
84 WindowStack stackingList;
85 Windows windowList;
86
87 std::string name;
88 int id, cascade_x, cascade_y;
89
90
91protected:
92 void placeWindow(FluxboxWindow *);
93
94
95
91}; 96};
92 97
93 98