swayipc_command_builder/commands/
opacity.rs1use super::*;
2
3impl Command<Opacity> {
4 pub fn set(self) -> Command<Opacity<With>> {
5 self.push_str("set").transmute()
6 }
7
8 pub fn plus(self) -> Command<Opacity<With>> {
9 self.push_str("plus").transmute()
10 }
11
12 pub fn minus(self) -> Command<Opacity<With>> {
13 self.push_str("minus").transmute()
14 }
15}
16
17impl Command<Opacity<With>> {
18 pub fn value(self, value: f32) -> Command<Valid> {
19 self.push_str(value.to_string()).transmute()
20 }
21}