Add animation style toggle
This commit is contained in:
parent
02222d5189
commit
e7f9a5cb09
15 changed files with 238 additions and 20 deletions
|
|
@ -1035,6 +1035,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SetAnimationCurve { curve });
|
||||
}
|
||||
|
||||
pub fn set_animation_style(&self, style: u32) {
|
||||
self.send(&ClientMessage::SetAnimationStyle { style });
|
||||
}
|
||||
|
||||
pub fn set_animation_cubic_bezier(&self, x1: f32, y1: f32, x2: f32, y2: f32) {
|
||||
self.send(&ClientMessage::SetAnimationCubicBezier { x1, y1, x2, y2 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -554,6 +554,9 @@ pub enum ClientMessage<'a> {
|
|||
SetAnimationCurve {
|
||||
curve: u32,
|
||||
},
|
||||
SetAnimationStyle {
|
||||
style: u32,
|
||||
},
|
||||
SetAnimationCubicBezier {
|
||||
x1: f32,
|
||||
y1: f32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue