aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index 6a14fb5..942b555 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -1,6 +1,6 @@
1// Workspace.hh for FbPager 1// Workspace.hh for FbPager
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) 2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 3//
4// Permission is hereby granted, free of charge, to any person obtaining a 4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"), 5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation 6// to deal in the Software without restriction, including without limitation
@@ -45,12 +45,12 @@ class Workspace:private FbTk::NotCopyable {
45public: 45public:
46 46
47 /// create a workspace with specified name, size, parent and eventhandler 47 /// create a workspace with specified name, size, parent and eventhandler
48 Workspace(FbTk::EventHandler &evh, 48 Workspace(FbTk::EventHandler &evh,
49 FbTk::FbWindow &parent, unsigned int width, unsigned int height, 49 FbTk::FbWindow &parent, unsigned int width, unsigned int height,
50 const FbTk::Color &focused_win_color, 50 const FbTk::Color &focused_win_color,
51 const FbTk::Color &wincolor, 51 const FbTk::Color &wincolor,
52 const FbTk::Color &border_color, 52 const FbTk::Color &border_color,
53 const FbTk::Color &background_color, 53 const FbTk::Color &background_color,
54 const char *name = 0, 54 const char *name = 0,
55 const bool use_pixmap = true, 55 const bool use_pixmap = true,
56 const int window_border_width = 1); 56 const int window_border_width = 1);
@@ -63,6 +63,8 @@ public:
63 void resize(unsigned int width, unsigned int height); 63 void resize(unsigned int width, unsigned int height);
64 /// remove a window from workspace 64 /// remove a window from workspace
65 void remove(Window win); 65 void remove(Window win);
66 /// remove all windows from this workspace
67 void removeAll();
66 void shadeWindow(Window win); 68 void shadeWindow(Window win);
67 void unshadeWindow(Window win); 69 void unshadeWindow(Window win);
68 void iconifyWindow(Window win); 70 void iconifyWindow(Window win);
@@ -88,9 +90,9 @@ public:
88 const FbTk::FbWindow *find(Window win) const; 90 const FbTk::FbWindow *find(Window win) const;
89 /// @return workspace name 91 /// @return workspace name
90 const std::string &name() const { return m_name; } 92 const std::string &name() const { return m_name; }
91 /// @return the workspace's FbWindow 93 /// @return the workspace's FbWindow
92 const FbTk::FbWindow &window() const { return m_window; } 94 const FbTk::FbWindow &window() const { return m_window; }
93 /// @return the workspace's FbWindow 95 /// @return the workspace's FbWindow
94 FbTk::FbWindow &window() { return m_window; } 96 FbTk::FbWindow &window() { return m_window; }
95 97
96 static void setFocusedWindow(Window win) { s_focused_window = win; } 98 static void setFocusedWindow(Window win) { s_focused_window = win; }
@@ -98,7 +100,7 @@ public:
98private: 100private:
99 101
100 void updateBackground(Window win, const FbTk::Color& bg_color); 102 void updateBackground(Window win, const FbTk::Color& bg_color);
101 103
102 std::string m_name; ///< name of this workspace 104 std::string m_name; ///< name of this workspace
103 FbTk::FbWindow m_window; ///< FbWindow of this workspace 105 FbTk::FbWindow m_window; ///< FbWindow of this workspace
104 FbTk::EventHandler &m_eventhandler; 106 FbTk::EventHandler &m_eventhandler;
@@ -113,7 +115,7 @@ private:
113 115
114 bool m_use_pixmap; 116 bool m_use_pixmap;
115 int m_window_border_width; 117 int m_window_border_width;
116 118
117}; 119};
118 120
119}; // end namespace FbPager 121}; // end namespace FbPager