use crate::messages::prelude::*; | |
use graphite_proc_macros::*; | |
pub enum Message { | |
NoOp, | |
Init, | |
Batched(Box<[Message]>), | |
StartBuffer, | |
EndBuffer(graphene_std::renderer::RenderMetadata), | |
Animation(AnimationMessage), | |
Broadcast(BroadcastMessage), | |
Debug(DebugMessage), | |
Dialog(DialogMessage), | |
Frontend(FrontendMessage), | |
Globals(GlobalsMessage), | |
InputPreprocessor(InputPreprocessorMessage), | |
KeyMapping(KeyMappingMessage), | |
Layout(LayoutMessage), | |
Portfolio(PortfolioMessage), | |
Preferences(PreferencesMessage), | |
Tool(ToolMessage), | |
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::TypeCollection, _generics: specta::Generics) -> specta::DataType { | |
specta::DataType::Any | |
} | |
} | |