diff options
author | fluxgen <fluxgen> | 2003-10-25 22:11:22 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-10-25 22:11:22 (GMT) |
commit | 9c35bbdd40ada59658feb9b98535f77a473bbaa5 (patch) | |
tree | 7e01708e15e011a4a45547f1e1552866498dafd8 /src/CurrentWindowCmd.cc | |
parent | 4d161094576b29ca1a41e807fabb80d672fc1852 (diff) | |
download | fluxbox_pavel-9c35bbdd40ada59658feb9b98535f77a473bbaa5.zip fluxbox_pavel-9c35bbdd40ada59658feb9b98535f77a473bbaa5.tar.bz2 |
added resizeto and moveto commands
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 4f49362..37e4782 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: CurrentWindowCmd.cc,v 1.6 2003/09/10 14:07:48 fluxgen Exp $ | 23 | // $Id: CurrentWindowCmd.cc,v 1.7 2003/10/25 22:11:22 fluxgen Exp $ |
24 | 24 | ||
25 | #include "CurrentWindowCmd.hh" | 25 | #include "CurrentWindowCmd.hh" |
26 | 26 | ||
@@ -80,3 +80,21 @@ void ResizeCmd::real_execute() { | |||
80 | fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, | 80 | fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, |
81 | fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); | 81 | fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); |
82 | } | 82 | } |
83 | |||
84 | MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) : | ||
85 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } | ||
86 | |||
87 | void MoveToCmd::real_execute() { | ||
88 | fbwindow().move( | ||
89 | m_step_size_x, | ||
90 | m_step_size_y ); | ||
91 | } | ||
92 | |||
93 | ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) : | ||
94 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } | ||
95 | |||
96 | void ResizeToCmd::real_execute() { | ||
97 | fbwindow().resize( | ||
98 | m_step_size_x * fbwindow().winClient().width_inc, | ||
99 | m_step_size_y * fbwindow().winClient().height_inc ); | ||
100 | } | ||