mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
* Extract transformation cage to a seperate file * Hook up tool * Implement resize * Draw artboards * centre and constrain * Bounding box is rotated * Fix transform handle positions for artboard * Drag layers * Snapping * Fix imports * Cleanup * Remove allocation from bounding_boxes * Round artboard size and position * Hints * Fix rotated transform cage * Code review changes * Hints changes Co-authored-by: Dennis <dennis@kobert.dev> Co-authored-by: Keavon Chambers <keavon@keavon.com>
24 lines
991 B
Rust
24 lines
991 B
Rust
use super::input_preprocessor::ModifierKeys;
|
|
use super::keyboard::Key;
|
|
use super::mouse::{EditorMouseState, ViewportBounds};
|
|
use crate::message_prelude::*;
|
|
|
|
#[doc(inline)]
|
|
pub use graphene::DocumentResponse;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[remain::sorted]
|
|
#[impl_message(Message, InputPreprocessor)]
|
|
#[derive(PartialEq, Clone, Debug, Serialize, Deserialize)]
|
|
pub enum InputPreprocessorMessage {
|
|
BoundsOfViewports { bounds_of_viewports: Vec<ViewportBounds> },
|
|
DoubleClick { editor_mouse_state: EditorMouseState, modifier_keys: ModifierKeys },
|
|
KeyDown { key: Key, modifier_keys: ModifierKeys },
|
|
KeyUp { key: Key, modifier_keys: ModifierKeys },
|
|
MouseScroll { editor_mouse_state: EditorMouseState, modifier_keys: ModifierKeys },
|
|
PointerDown { editor_mouse_state: EditorMouseState, modifier_keys: ModifierKeys },
|
|
PointerMove { editor_mouse_state: EditorMouseState, modifier_keys: ModifierKeys },
|
|
PointerUp { editor_mouse_state: EditorMouseState, modifier_keys: ModifierKeys },
|
|
}
|