diff options
author | fluxgen <fluxgen> | 2002-03-23 15:14:45 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-03-23 15:14:45 (GMT) |
commit | 8daa080d11a6bf9e6ed208563e738a02c9eb6cf8 (patch) | |
tree | 4d9f68180a4bc0f1574f03b48897233b43791899 /src/Window.hh | |
parent | e133cf83a332a72ca42be5e223834d4e6aa0a2e8 (diff) | |
download | fluxbox-8daa080d11a6bf9e6ed208563e738a02c9eb6cf8.zip fluxbox-8daa080d11a6bf9e6ed208563e738a02c9eb6cf8.tar.bz2 |
some signed/unsigned stuff
Diffstat (limited to 'src/Window.hh')
-rw-r--r-- | src/Window.hh | 72 |
1 files changed, 34 insertions, 38 deletions
diff --git a/src/Window.hh b/src/Window.hh index 5bf7232..06e482b 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.hh,v 1.13 2002/03/19 00:15:58 fluxgen Exp $ | 25 | // $Id: Window.hh,v 1.14 2002/03/23 15:14:45 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef WINDOW_HH | 27 | #ifndef WINDOW_HH |
28 | #define WINDOW_HH | 28 | #define WINDOW_HH |
@@ -120,55 +120,50 @@ public: | |||
120 | FluxboxWindow(Window, BScreen * = 0); | 120 | FluxboxWindow(Window, BScreen * = 0); |
121 | virtual ~FluxboxWindow(void); | 121 | virtual ~FluxboxWindow(void); |
122 | 122 | ||
123 | inline const bool isTransient(void) const | 123 | inline const bool isTransient(void) const { return ((transient) ? true : false); } |
124 | { return ((transient) ? true : false); } | 124 | inline const bool hasTransient(void) const { return ((client.transient) ? true : false); } |
125 | inline const bool hasTransient(void) const | ||
126 | { return ((client.transient) ? true : false); } | ||
127 | inline const bool isManaged() const { return managed; } | 125 | inline const bool isManaged() const { return managed; } |
128 | inline const bool &isFocused(void) const { return focused; } | 126 | inline const bool isFocused(void) const { return focused; } |
129 | inline const bool &isVisible(void) const { return visible; } | 127 | inline const bool isVisible(void) const { return visible; } |
130 | inline const bool &isIconic(void) const { return iconic; } | 128 | inline const bool isIconic(void) const { return iconic; } |
131 | inline const bool &isShaded(void) const { return shaded; } | 129 | inline const bool isShaded(void) const { return shaded; } |
132 | inline const bool &isMaximized(void) const { return maximized; } | 130 | inline const bool isMaximized(void) const { return maximized; } |
133 | inline const bool &isIconifiable(void) const { return functions.iconify; } | 131 | inline const bool isIconifiable(void) const { return functions.iconify; } |
134 | inline const bool &isMaximizable(void) const { return functions.maximize; } | 132 | inline const bool isMaximizable(void) const { return functions.maximize; } |
135 | inline const bool &isResizable(void) const { return functions.resize; } | 133 | inline const bool isResizable(void) const { return functions.resize; } |
136 | inline const bool &isClosable(void) const { return functions.close; } | 134 | inline const bool isClosable(void) const { return functions.close; } |
137 | inline const bool &isStuck(void) const { return stuck; } | 135 | inline const bool isStuck(void) const { return stuck; } |
138 | inline const bool &hasTitlebar(void) const { return decorations.titlebar; } | 136 | inline const bool hasTitlebar(void) const { return decorations.titlebar; } |
139 | inline const bool hasTab(void) const { return (tab!=0 ? true : false); } | 137 | inline const bool hasTab(void) const { return (tab!=0 ? true : false); } |
140 | static void showError(FluxboxWindow::Error error); | 138 | static void showError(FluxboxWindow::Error error); |
141 | inline BScreen *getScreen(void) { return screen; } | 139 | inline BScreen *getScreen(void) const { return screen; } |
142 | inline Tab *getTab(void) { return tab; } | 140 | inline Tab *getTab(void) const { return tab; } |
143 | inline FluxboxWindow *getTransient(void) { return client.transient; } | 141 | inline FluxboxWindow *getTransient(void) const { return client.transient; } |
144 | inline FluxboxWindow *getTransientFor(void) { return client.transient_for; } | 142 | inline FluxboxWindow *getTransientFor(void) const { return client.transient_for; } |
145 | 143 | ||
146 | inline const Window &getFrameWindow(void) const { return frame.window; } | 144 | inline const Window &getFrameWindow(void) const { return frame.window; } |
147 | inline const Window &getClientWindow(void) const { return client.window; } | 145 | inline const Window &getClientWindow(void) const { return client.window; } |
148 | 146 | ||
149 | inline Windowmenu *getWindowmenu(void) { return windowmenu; } | 147 | inline Windowmenu *getWindowmenu(void) { return windowmenu; } |
150 | 148 | ||
151 | inline char **getTitle(void) { return &client.title; } | 149 | inline const char *getTitle(void) const { return client.title; } |
152 | inline char **getIconTitle(void) { return &client.icon_title; } | 150 | inline const char *getIconTitle(void) const { return client.icon_title; } |
153 | inline const int &getXFrame(void) const { return frame.x; } | 151 | inline const int getXFrame(void) const { return frame.x; } |
154 | inline const int &getYFrame(void) const { return frame.y; } | 152 | inline const int getYFrame(void) const { return frame.y; } |
155 | inline const int &getXClient(void) const { return client.x; } | 153 | inline const int getXClient(void) const { return client.x; } |
156 | inline const int &getYClient(void) const { return client.y; } | 154 | inline const int getYClient(void) const { return client.y; } |
157 | inline const int &getWorkspaceNumber(void) const { return workspace_number; } | 155 | inline const unsigned int getWorkspaceNumber(void) const { return workspace_number; } |
158 | inline const int &getWindowNumber(void) const { return window_number; } | 156 | inline const int getWindowNumber(void) const { return window_number; } |
159 | inline const WinLayer getLayer(void) const { return m_layer; } | 157 | inline const WinLayer getLayer(void) const { return m_layer; } |
160 | inline const unsigned int &getWidth(void) const { return frame.width; } | 158 | inline const unsigned int getWidth(void) const { return frame.width; } |
161 | inline const unsigned int &getHeight(void) const { return frame.height; } | 159 | inline const unsigned int getHeight(void) const { return frame.height; } |
162 | inline const unsigned int &getClientHeight(void) const | 160 | inline const unsigned int getClientHeight(void) const { return client.height; } |
163 | { return client.height; } | 161 | inline const unsigned int getClientWidth(void) const { return client.width; } |
164 | inline const unsigned int &getClientWidth(void) const | 162 | inline const unsigned int getTitleHeight(void) const { return frame.title_h; } |
165 | { return client.width; } | ||
166 | inline const unsigned int &getTitleHeight(void) const | ||
167 | { return frame.title_h; } | ||
168 | 163 | ||
169 | inline void setWindowNumber(int n) { window_number = n; } | 164 | inline void setWindowNumber(int n) { window_number = n; } |
170 | 165 | ||
171 | inline const timeval& getLastFocusTime() const {return lastFocusTime;} | 166 | inline const timeval &getLastFocusTime() const {return lastFocusTime;} |
172 | 167 | ||
173 | bool validateClient(void); | 168 | bool validateClient(void); |
174 | bool setInputFocus(void); | 169 | bool setInputFocus(void); |
@@ -232,7 +227,8 @@ private: | |||
232 | 227 | ||
233 | timeval lastFocusTime; | 228 | timeval lastFocusTime; |
234 | 229 | ||
235 | int focus_mode, window_number, workspace_number; | 230 | int focus_mode, window_number; |
231 | unsigned int workspace_number; | ||
236 | unsigned long current_state; | 232 | unsigned long current_state; |
237 | WinLayer m_layer; | 233 | WinLayer m_layer; |
238 | 234 | ||