diff options
author | fluxgen <fluxgen> | 2003-12-30 17:17:05 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-30 17:17:05 (GMT) |
commit | 8c8e4f0f4ac4c0e03c142e8f3929ad479f0df039 (patch) | |
tree | 91a2355c6dcbc9e4980bab35f6c939f5bbd41338 /src/FbTk/FbWindow.hh | |
parent | 348327dc8fa2bc3d1b7c4462efb122f94733471a (diff) | |
download | fluxbox_pavel-8c8e4f0f4ac4c0e03c142e8f3929ad479f0df039.zip fluxbox_pavel-8c8e4f0f4ac4c0e03c142e8f3929ad479f0df039.tar.bz2 |
inline
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r-- | src/FbTk/FbWindow.hh | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index 60acec4..499d3ad 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbWindow.hh,v 1.26 2003/12/16 17:06:49 fluxgen Exp $ | 22 | // $Id: FbWindow.hh,v 1.27 2003/12/30 17:17:05 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_FBWINDOW_HH | 24 | #ifndef FBTK_FBWINDOW_HH |
25 | #define FBTK_FBWINDOW_HH | 25 | #define FBTK_FBWINDOW_HH |
@@ -91,9 +91,25 @@ public: | |||
91 | virtual void show(); | 91 | virtual void show(); |
92 | virtual void showSubwindows(); | 92 | virtual void showSubwindows(); |
93 | 93 | ||
94 | virtual void move(int x, int y); | 94 | virtual inline void move(int x, int y) { |
95 | virtual void resize(unsigned int width, unsigned int height); | 95 | XMoveWindow(s_display, m_window, x, y); |
96 | virtual void moveResize(int x, int y, unsigned int width, unsigned int height); | 96 | m_x = x; |
97 | m_y = y; | ||
98 | } | ||
99 | |||
100 | virtual inline void resize(unsigned int width, unsigned int height) { | ||
101 | XResizeWindow(s_display, m_window, width, height); | ||
102 | m_width = width; | ||
103 | m_height = height; | ||
104 | } | ||
105 | |||
106 | virtual inline void moveResize(int x, int y, unsigned int width, unsigned int height) { | ||
107 | XMoveResizeWindow(s_display, m_window, x, y, width, height); | ||
108 | m_x = x; | ||
109 | m_y = y; | ||
110 | m_width = width; | ||
111 | m_height = height; | ||
112 | } | ||
97 | virtual void lower(); | 113 | virtual void lower(); |
98 | virtual void raise(); | 114 | virtual void raise(); |
99 | void setInputFocus(int revert_to, int time); | 115 | void setInputFocus(int revert_to, int time); |
@@ -175,7 +191,7 @@ class ChangeProperty { | |||
175 | public: | 191 | public: |
176 | ChangeProperty(Display *disp, Atom prop, int mode, | 192 | ChangeProperty(Display *disp, Atom prop, int mode, |
177 | unsigned char *state, int num):m_disp(disp), | 193 | unsigned char *state, int num):m_disp(disp), |
178 | m_prop(prop), m_state(state), m_num(num), m_mode(mode){ | 194 | m_prop(prop), m_state(state), m_num(num), m_mode(mode){ |
179 | 195 | ||
180 | } | 196 | } |
181 | void operator () (FbTk::FbWindow *win) { | 197 | void operator () (FbTk::FbWindow *win) { |