mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
- Move message handler payload data into structs
- Organize the file structure used by `editor/src/messages/portfolio/document` `/node_graph` and `/graph_operation`
- Make derive attributes use `serde::Serialize, serde::Deserialize` consistently instead of `use serde::{Deserialize, Serialize};` imports
- Various other code cleanup and refactoring
26 lines
591 B
Rust
26 lines
591 B
Rust
use crate::messages::layout::utility_types::widget_prelude::*;
|
|
use crate::messages::prelude::*;
|
|
|
|
#[impl_message(Message, Layout)]
|
|
#[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)]
|
|
pub enum LayoutMessage {
|
|
ResendActiveWidget {
|
|
layout_target: LayoutTarget,
|
|
widget_id: WidgetId,
|
|
},
|
|
SendLayout {
|
|
layout: Layout,
|
|
layout_target: LayoutTarget,
|
|
},
|
|
WidgetValueCommit {
|
|
layout_target: LayoutTarget,
|
|
widget_id: WidgetId,
|
|
value: serde_json::Value,
|
|
},
|
|
WidgetValueUpdate {
|
|
layout_target: LayoutTarget,
|
|
widget_id: WidgetId,
|
|
value: serde_json::Value,
|
|
},
|
|
}
|