swayipc_command_builder/commands/
border.rs

1use super::*;
2
3impl Command<Border> {
4    pub fn csd(self) -> Command<Valid> {
5        self.push_str("csd").transmute()
6    }
7
8    pub fn none(self) -> Command<Valid> {
9        self.push_str("none").transmute()
10    }
11
12    pub fn toggle(self) -> Command<Valid> {
13        self.push_str("toggle").transmute()
14    }
15
16    pub fn normal(self) -> Command<Valid<Border<With>>> {
17        self.push_str("normal").transmute()
18    }
19
20    pub fn pixel(self) -> Command<Valid<Border<With>>> {
21        self.push_str("pixel").transmute()
22    }
23}
24
25impl Command<Valid<Border<With>>> {
26    pub fn with(self, n: isize) -> Command<Valid> {
27        self.push_str(n.to_string()).transmute()
28    }
29}