diff options
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 32161d1..768f733 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -76,16 +76,16 @@ public: | |||
76 | inline bool isVisible() const { return m_visible; } | 76 | inline bool isVisible() const { return m_visible; } |
77 | /// shade frame (ie resize to titlebar size) | 77 | /// shade frame (ie resize to titlebar size) |
78 | void shade(); | 78 | void shade(); |
79 | void move(int x, int y); | 79 | void move(int x, int y, int win_gravity=ForgetGravity); |
80 | void resize(unsigned int width, unsigned int height); | 80 | void resize(unsigned int width, unsigned int height, int win_gravity=ForgetGravity); |
81 | /// resize client to specified size and resize frame to it | 81 | /// resize client to specified size and resize frame to it |
82 | void resizeForClient(unsigned int width, unsigned int height); | 82 | void resizeForClient(unsigned int width, unsigned int height, int win_gravity=ForgetGravity); |
83 | 83 | ||
84 | // for when there needs to be an atomic move+resize operation | 84 | // for when there needs to be an atomic move+resize operation |
85 | void moveResizeForClient(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true); | 85 | void moveResizeForClient(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true, int win_gravity=ForgetGravity); |
86 | 86 | ||
87 | // can elect to ignore move or resize (mainly for use of move/resize individual functions | 87 | // can elect to ignore move or resize (mainly for use of move/resize individual functions |
88 | void moveResize(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true); | 88 | void moveResize(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true, int win_gravity=ForgetGravity); |
89 | 89 | ||
90 | /// set focus/unfocus style | 90 | /// set focus/unfocus style |
91 | void setFocus(bool newvalue); | 91 | void setFocus(bool newvalue); |
@@ -133,7 +133,8 @@ public: | |||
133 | // this function translates its arguments according to win_gravity | 133 | // this function translates its arguments according to win_gravity |
134 | // if win_gravity is negative, it does an inverse translation | 134 | // if win_gravity is negative, it does an inverse translation |
135 | void gravityTranslate(int &x, int &y, int win_gravity, bool move_frame = false); | 135 | void gravityTranslate(int &x, int &y, int win_gravity, bool move_frame = false); |
136 | 136 | //use width and height given instead of the real values, allows figuring out where to place a window before doing a moveResize | |
137 | void gravityTranslate(int &x, int &y, unsigned int width, unsigned int height, int win_gravity, bool move_frame = false); | ||
137 | void setBorderWidth(unsigned int borderW); | 138 | void setBorderWidth(unsigned int borderW); |
138 | 139 | ||
139 | /** | 140 | /** |