aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:39:24 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:39:24 (GMT)
commit06d696f99b276e3394aec10f52c206aec4697c76 (patch)
tree699059b20bacea6403886dd63e47261cb348d94f /src/Window.hh
parent4093d2641f371bb8e80616a4c51dea9af508dac2 (diff)
downloadfluxbox-06d696f99b276e3394aec10f52c206aec4697c76.zip
fluxbox-06d696f99b276e3394aec10f52c206aec4697c76.tar.bz2
fix some consts and private functions
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 05c4342..f0a390c 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -199,14 +199,6 @@ public:
199 */ 199 */
200 void moveClientTo(WinClient &win, int x, int y); 200 void moveClientTo(WinClient &win, int x, int y);
201 /** 201 /**
202 * Calculates insertition position in the list by
203 * using pixel position x and y.
204 * @param x position
205 * @param y position
206 * @return iterator position for insertion
207 */
208 ClientList::iterator getClientInsertPosition(int x, int y);
209 /**
210 * Take focus. 202 * Take focus.
211 * @see Focusable 203 * @see Focusable
212 * @return true if it took focus. 204 * @return true if it took focus.
@@ -313,7 +305,7 @@ public:
313 * @param width will be filled in with maximum width 305 * @param width will be filled in with maximum width
314 * @param height will be filled in with maximum height 306 * @param height will be filled in with maximum height
315 */ 307 */
316 void maxSize(unsigned int &width, unsigned int &height); 308 void maxSize(unsigned int &width, unsigned int &height) const;
317 void setWorkspace(int n); 309 void setWorkspace(int n);
318 void updateFunctions(); 310 void updateFunctions();
319 void restoreAttributes(); 311 void restoreAttributes();
@@ -381,7 +373,7 @@ public:
381 */ 373 */
382 void startResizing(int x, int y, ResizeDirection dir); 374 void startResizing(int x, int y, ResizeDirection dir);
383 /// determine which edge or corner to resize 375 /// determine which edge or corner to resize
384 ResizeDirection getResizeDirection(int x, int y, ResizeModel model); 376 ResizeDirection getResizeDirection(int x, int y, ResizeModel model) const;
385 /// stops the resizing 377 /// stops the resizing
386 void stopResizing(bool interrupted = false); 378 void stopResizing(bool interrupted = false);
387 /// starts tabbing 379 /// starts tabbing
@@ -395,7 +387,7 @@ public:
395 // whether this window can be tabbed with other windows, 387 // whether this window can be tabbed with other windows,
396 // and others tabbed with it 388 // and others tabbed with it
397 void setTabable(bool tabable) { functions.tabable = tabable; } 389 void setTabable(bool tabable) { functions.tabable = tabable; }
398 bool isTabable() { return functions.tabable; } 390 bool isTabable() const { return functions.tabable; }
399 void setMovable(bool movable) { functions.move = movable; } 391 void setMovable(bool movable) { functions.move = movable; }
400 void setResizable(bool resizable) { functions.resize = resizable; } 392 void setResizable(bool resizable) { functions.resize = resizable; }
401 393
@@ -403,9 +395,7 @@ public:
403 bool isIconHidden() const { return m_icon_hidden; } 395 bool isIconHidden() const { return m_icon_hidden; }
404 bool isManaged() const { return m_initialized; } 396 bool isManaged() const { return m_initialized; }
405 bool isVisible() const; 397 bool isVisible() const;
406 bool isIconic() { return iconic; }
407 bool isIconic() const { return iconic; } 398 bool isIconic() const { return iconic; }
408 bool isShaded() { return shaded; }
409 bool isShaded() const { return shaded; } 399 bool isShaded() const { return shaded; }
410 bool isFullscreen() const { return fullscreen; } 400 bool isFullscreen() const { return fullscreen; }
411 bool isMaximized() const { return maximized == MAX_FULL; } 401 bool isMaximized() const { return maximized == MAX_FULL; }
@@ -429,7 +419,7 @@ public:
429 WinClient &winClient() { return *m_client; } 419 WinClient &winClient() { return *m_client; }
430 const WinClient &winClient() const { return *m_client; } 420 const WinClient &winClient() const { return *m_client; }
431 421
432 bool isTyping(); 422 bool isTyping() const;
433 423
434 const FbTk::XLayerItem &layerItem() const { return m_frame.layerItem(); } 424 const FbTk::XLayerItem &layerItem() const { return m_frame.layerItem(); }
435 FbTk::XLayerItem &layerItem() { return m_frame.layerItem(); } 425 FbTk::XLayerItem &layerItem() { return m_frame.layerItem(); }
@@ -523,6 +513,15 @@ private:
523 void updateClientLeftWindow(); 513 void updateClientLeftWindow();
524 void grabButtons(); 514 void grabButtons();
525 515
516 /**
517 * Calculates insertition position in the list by
518 * using pixel position x and y.
519 * @param x position
520 * @param y position
521 * @return iterator position for insertion
522 */
523 ClientList::iterator getClientInsertPosition(int x, int y);
524
526 /// try to attach current attaching client to a window at pos x, y 525 /// try to attach current attaching client to a window at pos x, y
527 void attachTo(int x, int y, bool interrupted = false); 526 void attachTo(int x, int y, bool interrupted = false);
528 527