mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 15:58:11 +08:00
Modify all message enum data to use named struct values, not tuples (#479)
* Massively reorganize and clean up the whole Rust codebase * Modify all message enum data to use named struct values, not tuples
This commit is contained in:
@@ -26,12 +26,20 @@ pub enum MovementMessage {
|
||||
zoom_from_viewport: Option<DVec2>,
|
||||
},
|
||||
RotateCanvasBegin,
|
||||
SetCanvasRotation(f64),
|
||||
SetCanvasZoom(f64),
|
||||
SetCanvasRotation {
|
||||
angle_radians: f64,
|
||||
},
|
||||
SetCanvasZoom {
|
||||
zoom_factor: f64,
|
||||
},
|
||||
TransformCanvasEnd,
|
||||
TranslateCanvas(DVec2),
|
||||
TranslateCanvas {
|
||||
delta: DVec2,
|
||||
},
|
||||
TranslateCanvasBegin,
|
||||
TranslateCanvasByViewportFraction(DVec2),
|
||||
TranslateCanvasByViewportFraction {
|
||||
delta: DVec2,
|
||||
},
|
||||
WheelCanvasTranslate {
|
||||
use_y_as_x: bool,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user