swayipc_command_builder/commands/floating_size.rs
1use super::*;
2
3impl Command<FloatingSize> {
4 pub fn width(self, width: isize) -> Command<FloatingSize<X>> {
5 self.push_str(width.to_string()).transmute()
6 }
7}
8
9impl Command<FloatingSize<X>> {
10 pub fn height(self, height: isize) -> Command<Valid> {
11 self.push_char('x').push_str(height.to_string()).transmute()
12 }
13}