mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
* Fix text tool * Implement buffering to fix freehand tool * Fix tools * Fix clippy lints * Small fixes * Move vector modify back to Monitor nodes * Code review * Fix abort * Fix svg import --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
47 lines
1.1 KiB
Rust
47 lines
1.1 KiB
Rust
use crate::messages::prelude::*;
|
|
|
|
use graphite_proc_macros::*;
|
|
|
|
#[impl_message]
|
|
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize)]
|
|
pub enum Message {
|
|
NoOp,
|
|
Init,
|
|
Batched(Box<[Message]>),
|
|
StartBuffer,
|
|
EndBuffer(graphene_std::renderer::RenderMetadata),
|
|
|
|
#[child]
|
|
Broadcast(BroadcastMessage),
|
|
#[child]
|
|
Debug(DebugMessage),
|
|
#[child]
|
|
Dialog(DialogMessage),
|
|
#[child]
|
|
Frontend(FrontendMessage),
|
|
#[child]
|
|
Globals(GlobalsMessage),
|
|
#[child]
|
|
InputPreprocessor(InputPreprocessorMessage),
|
|
#[child]
|
|
KeyMapping(KeyMappingMessage),
|
|
#[child]
|
|
Layout(LayoutMessage),
|
|
#[child]
|
|
Portfolio(PortfolioMessage),
|
|
#[child]
|
|
Preferences(PreferencesMessage),
|
|
#[child]
|
|
Tool(ToolMessage),
|
|
#[child]
|
|
Workspace(WorkspaceMessage),
|
|
}
|
|
|
|
/// Provides an impl of `specta::Type` for `MessageDiscriminant`, the struct created by `impl_message`.
|
|
/// Specta isn't integrated with `impl_message`, so a remote impl must be provided using this struct.
|
|
impl specta::Type for MessageDiscriminant {
|
|
fn inline(_type_map: &mut specta::TypeMap, _generics: specta::Generics) -> specta::DataType {
|
|
specta::DataType::Any
|
|
}
|
|
}
|