summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-17 07:45:07 +0000
committerDana Jansens <danakj@orodu.net>2003-01-17 07:45:07 +0000
commit105e3524a3f6b526d54ecc761a6e6c91b04f3949 (patch)
treea50371d361db488363606d721cd696a56e33bc4f /src/client.hh
parent8be4541461ba04f41eb5c40852be351f35fa18ee (diff)
add internal_move/resize and wrap them with move() and resize() which are for user use, and make sure that the window is allowed to be moved/resized.
add the allowed actions hint setting.
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/client.hh b/src/client.hh
index 37a38ac1..d2c8b5f8 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -367,6 +367,8 @@ private:
//! Change the client's state hints to match the class' data
void changeState();
+ //! Change the allowed actions set on the client
+ void changeAllowedActions();
//! Request the client to close its window.
void close();
@@ -377,7 +379,29 @@ private:
unshaded.
*/
void shade(bool shade);
-
+
+ //! Internal version of the Client::move function
+ /*!
+ @param x The X coordinate to move to.
+ @param y The Y coordinate to move to.
+ */
+ void internal_move(int x, int y);
+ //! Internal version of the Client::resize function
+ /*!
+ This also maintains things like the client's minsize, and size increments.
+ @param anchor The corner to keep in the same position when resizing.
+ @param w The width component of the new size for the client.
+ @param h The height component of the new size for the client.
+ @param x An optional X coordinate to which the window will be moved
+ after resizing.
+ @param y An optional Y coordinate to which the window will be moved
+ after resizing.
+ The x and y coordinates must both be sepcified together, or they will have
+ no effect. When they are specified, the anchor is ignored.
+ */
+ void internal_resize(Corner anchor, int w, int h,
+ int x = INT_MIN, int y = INT_MIN);
+
public:
#ifndef SWIG
//! Constructs a new Client object around a specified window id
@@ -510,14 +534,8 @@ BB @param window The window id that the Client class should handle
@param anchor The corner to keep in the same position when resizing.
@param w The width component of the new size for the client.
@param h The height component of the new size for the client.
- @param x An optional X coordinate to which the window will be moved
- after resizing.
- @param y An optional Y coordinate to which the window will be moved
- after resizing.
- The x and y coordinates must both be sepcified together, or they will have
- no effect. When they are specified, the anchor is ignored.
*/
- void resize(Corner anchor, int w, int h, int x = INT_MIN, int y = INT_MIN);
+ void resize(Corner anchor, int w, int h);
//! Attempt to focus the client window
bool focus() const;