repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/overlays/overlays_message.rs
editor/src/messages/portfolio/document/overlays/overlays_message.rs
use super::utility_types::{OverlayProvider, empty_provider}; use crate::messages::prelude::*; #[impl_message(Message, DocumentMessage, Overlays)] #[derive(derivative::Derivative, Clone, serde::Serialize, serde::Deserialize)] #[derivative(Debug, PartialEq)] pub enum OverlaysMessage { Draw, // Serde functionality isn'...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/overlays/overlays_message_handler.rs
editor/src/messages/portfolio/document/overlays/overlays_message_handler.rs
use super::utility_types::{OverlayProvider, OverlaysVisibilitySettings}; use crate::messages::prelude::*; #[derive(ExtractField)] pub struct OverlaysMessageContext<'a> { pub visibility_settings: OverlaysVisibilitySettings, pub viewport: &'a ViewportMessageHandler, } #[derive(Debug, Clone, Default, ExtractField)] pu...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/overlays/utility_functions.rs
editor/src/messages/portfolio/document/overlays/utility_functions.rs
use super::utility_types::{DrawHandles, OverlayContext}; use crate::consts::HIDE_HANDLE_DISTANCE; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types::network_interface::NodeNetworkInterface; use crate::messages::tool::...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/navigation/utility_types.rs
editor/src/messages/portfolio/document/navigation/utility_types.rs
use glam::DVec2; #[derive(Debug, Default, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub enum NavigationOperation { #[default] None, Pan { pan_original_for_abort: DVec2, }, Tilt { tilt_original_for_abort: f64, tilt_raw_not_snapped: f64, snap: bool, }, Zoom { zoom_raw_not_snapped: f64, ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/navigation/navigation_message_handler.rs
editor/src/messages/portfolio/document/navigation/navigation_message_handler.rs
use crate::consts::{ VIEWPORT_ROTATE_SNAP_INTERVAL, VIEWPORT_SCROLL_RATE, VIEWPORT_ZOOM_LEVELS, VIEWPORT_ZOOM_MIN_FRACTION_COVER, VIEWPORT_ZOOM_MOUSE_RATE, VIEWPORT_ZOOM_SCALE_MAX, VIEWPORT_ZOOM_SCALE_MIN, VIEWPORT_ZOOM_TO_FIT_PADDING_SCALE_FACTOR, }; use crate::messages::frontend::utility_types::MouseCursorIcon; use...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/navigation/navigation_message.rs
editor/src/messages/portfolio/document/navigation/navigation_message.rs
use crate::messages::input_mapper::utility_types::input_keyboard::Key; use crate::messages::prelude::*; use glam::DVec2; #[impl_message(Message, DocumentMessage, Navigation)] #[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)] pub enum NavigationMessage { // Messages BeginCanvasPan, BeginCanvas...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/navigation/mod.rs
editor/src/messages/portfolio/document/navigation/mod.rs
mod navigation_message; mod navigation_message_handler; pub mod utility_types; #[doc(inline)] pub use navigation_message::{NavigationMessage, NavigationMessageDiscriminant}; #[doc(inline)] pub use navigation_message_handler::{NavigationMessageContext, NavigationMessageHandler};
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/properties_panel/properties_panel_message_handler.rs
editor/src/messages/portfolio/document/properties_panel/properties_panel_message_handler.rs
use graphene_std::uuid::NodeId; use crate::messages::layout::utility_types::widget_prelude::*; use crate::messages::portfolio::document::node_graph::document_node_definitions::NodePropertiesContext; use crate::messages::portfolio::document::utility_types::network_interface::NodeNetworkInterface; use crate::messages::p...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/properties_panel/mod.rs
editor/src/messages/portfolio/document/properties_panel/mod.rs
mod properties_panel_message; pub mod properties_panel_message_handler; #[doc(inline)] pub use properties_panel_message::{PropertiesPanelMessage, PropertiesPanelMessageDiscriminant}; #[doc(inline)] pub use properties_panel_message_handler::PropertiesPanelMessageHandler;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/properties_panel/properties_panel_message.rs
editor/src/messages/portfolio/document/properties_panel/properties_panel_message.rs
use crate::messages::prelude::*; #[impl_message(Message, DocumentMessage, PropertiesPanel)] #[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)] pub enum PropertiesPanelMessage { // Messages Clear, Refresh, }
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/node_properties.rs
editor/src/messages/portfolio/document/node_graph/node_properties.rs
#![allow(clippy::too_many_arguments)] use super::document_node_definitions::{NODE_OVERRIDES, NodePropertiesContext}; use super::utility_types::FrontendGraphDataType; use crate::messages::layout::utility_types::widget_prelude::*; use crate::messages::portfolio::document::utility_types::network_interface::InputConnector...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs
editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs
mod document_node_derive; use super::node_properties::choice::enum_choice; use super::node_properties::{self, ParameterWidgetsInfo}; use super::utility_types::FrontendNodeType; use crate::messages::layout::utility_types::widget_prelude::*; use crate::messages::portfolio::document::utility_types::network_interface::{ ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/utility_types.rs
editor/src/messages/portfolio/document/node_graph/utility_types.rs
use glam::{DVec2, IVec2}; use graph_craft::document::NodeId; use graph_craft::document::value::TaggedValue; use graphene_std::Type; use std::borrow::Cow; #[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Hash, serde::Serialize, serde::Deserialize, specta::Type)] pub enum FrontendGraphDataType { #[default] General...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs
editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs
use super::utility_types::{BoxSelection, ContextMenuInformation, DragStart, FrontendNode}; use super::{document_node_definitions, node_properties}; use crate::consts::GRID_SIZE; use crate::messages::clipboard::utility_types::ClipboardContent; use crate::messages::input_mapper::utility_types::macros::{action_shortcut, a...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/mod.rs
editor/src/messages/portfolio/document/node_graph/mod.rs
pub mod document_node_definitions; mod node_graph_message; mod node_graph_message_handler; pub mod node_properties; pub mod utility_types; #[doc(inline)] pub use node_graph_message::{NodeGraphMessage, NodeGraphMessageDiscriminant}; #[doc(inline)] pub use node_graph_message_handler::*;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/node_graph_message.rs
editor/src/messages/portfolio/document/node_graph/node_graph_message.rs
use super::utility_types::Direction; use crate::messages::input_mapper::utility_types::input_keyboard::Key; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types::network_interface::{ImportOrExport, InputConnector, NodeTe...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/portfolio/document/node_graph/document_node_definitions/document_node_derive.rs
editor/src/messages/portfolio/document/node_graph/document_node_definitions/document_node_derive.rs
use super::DocumentNodeDefinition; use crate::messages::portfolio::document::utility_types::network_interface::{DocumentNodePersistentMetadata, InputMetadata, NodeTemplate, WidgetOverride}; use graph_craft::ProtoNodeIdentifier; use graph_craft::document::*; use graphene_std::registry::*; use graphene_std::*; use std::c...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/animation/animation_message_handler.rs
editor/src/messages/animation/animation_message_handler.rs
use std::time::Duration; use crate::messages::prelude::*; use super::TimingInformation; #[derive(PartialEq, Clone, Default, Debug, serde::Serialize, serde::Deserialize)] pub enum AnimationTimeMode { #[default] TimeBased, FrameBased, } #[derive(Default, Debug, Clone, PartialEq)] enum AnimationState { #[default] ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/animation/animation_message.rs
editor/src/messages/animation/animation_message.rs
use super::animation_message_handler::AnimationTimeMode; use crate::messages::prelude::*; #[impl_message(Message, Animation)] #[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)] pub enum AnimationMessage { ToggleLivePreview, EnableLivePreview, DisableLivePreview, RestartAnimation, SetFrameInd...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/animation/mod.rs
editor/src/messages/animation/mod.rs
mod animation_message; mod animation_message_handler; #[doc(inline)] pub use animation_message::{AnimationMessage, AnimationMessageDiscriminant}; #[doc(inline)] pub use animation_message_handler::AnimationMessageHandler; pub use graphene_std::application_io::TimingInformation;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/input_mapper_message_handler.rs
editor/src/messages/input_mapper/input_mapper_message_handler.rs
use super::utility_types::input_keyboard::KeysGroup; use super::utility_types::misc::Mapping; use crate::messages::input_mapper::utility_types::input_keyboard::{self, Key}; use crate::messages::input_mapper::utility_types::misc::MappingEntry; use crate::messages::portfolio::utility_types::KeyboardPlatformLayout; use cr...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/input_mappings.rs
editor/src/messages/input_mapper/input_mappings.rs
use crate::consts::{BIG_NUDGE_AMOUNT, BRUSH_SIZE_CHANGE_KEYBOARD, NUDGE_AMOUNT}; use crate::messages::input_mapper::key_mapping::MappingVariant; use crate::messages::input_mapper::utility_types::input_keyboard::{Key, KeyStates}; use crate::messages::input_mapper::utility_types::input_mouse::MouseButton; use crate::mess...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/mod.rs
editor/src/messages/input_mapper/mod.rs
mod input_mapper_message; mod input_mapper_message_handler; pub mod input_mappings; pub mod key_mapping; pub mod utility_types; #[doc(inline)] pub use input_mapper_message::{InputMapperMessage, InputMapperMessageDiscriminant}; #[doc(inline)] pub use input_mapper_message_handler::{InputMapperMessageContext, InputMappe...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/input_mapper_message.rs
editor/src/messages/input_mapper/input_mapper_message.rs
use crate::messages::input_mapper::utility_types::input_keyboard::Key; use crate::messages::input_mapper::utility_types::input_mouse::MouseButton; use crate::messages::prelude::*; #[impl_message(Message, KeyMappingMessage, Lookup)] #[derive(PartialEq, Eq, Clone, Debug, Hash, serde::Serialize, serde::Deserialize)] pub ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/key_mapping/key_mapping_message.rs
editor/src/messages/input_mapper/key_mapping/key_mapping_message.rs
use crate::messages::prelude::*; #[impl_message(Message, KeyMapping)] #[derive(PartialEq, Eq, Clone, Debug, Hash, serde::Serialize, serde::Deserialize)] pub enum KeyMappingMessage { // Sub-messages #[child] Lookup(InputMapperMessage), // Messages ModifyMapping { mapping: MappingVariant, }, } #[derive(Partial...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/key_mapping/key_mapping_message_handler.rs
editor/src/messages/input_mapper/key_mapping/key_mapping_message_handler.rs
use crate::messages::input_mapper::input_mapper_message_handler::InputMapperMessageContext; use crate::messages::input_mapper::utility_types::input_keyboard::KeysGroup; use crate::messages::prelude::*; #[derive(ExtractField)] pub struct KeyMappingMessageContext<'a> { pub input: &'a InputPreprocessorMessageHandler, p...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/key_mapping/mod.rs
editor/src/messages/input_mapper/key_mapping/mod.rs
mod key_mapping_message; mod key_mapping_message_handler; #[doc(inline)] pub use key_mapping_message::{KeyMappingMessage, KeyMappingMessageDiscriminant, MappingVariant}; #[doc(inline)] pub use key_mapping_message_handler::{KeyMappingMessageContext, KeyMappingMessageHandler};
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/utility_types/misc.rs
editor/src/messages/input_mapper/utility_types/misc.rs
use super::input_keyboard::{KeysGroup, LabeledShortcut, all_required_modifiers_pressed}; use crate::messages::input_mapper::key_mapping::MappingVariant; use crate::messages::input_mapper::utility_types::input_keyboard::{KeyStates, NUMBER_OF_KEYS}; use crate::messages::input_mapper::utility_types::input_mouse::NUMBER_OF...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/utility_types/macros.rs
editor/src/messages/input_mapper/utility_types/macros.rs
/// Constructs a `KeyStates` bit vector and sets the bit flags for all the given modifier `Key`s. macro_rules! modifiers { ($($m:ident),*) => {{ #[allow(unused_mut)] let mut state = KeyStates::new(); $( state.set(Key::$m as usize); )* state }}; } /// Builds a slice of `MappingEntry` struct(s) that are us...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/utility_types/mod.rs
editor/src/messages/input_mapper/utility_types/mod.rs
pub mod input_keyboard; pub mod input_mouse; pub mod macros; pub mod misc;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/utility_types/input_keyboard.rs
editor/src/messages/input_mapper/utility_types/input_keyboard.rs
use crate::messages::portfolio::utility_types::KeyboardPlatformLayout; use crate::messages::prelude::*; use bitflags::bitflags; use std::fmt::{self, Display, Formatter}; use std::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign}; // =========== // StorageType // =========== // TODO: Increase size ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/input_mapper/utility_types/input_mouse.rs
editor/src/messages/input_mapper/utility_types/input_mouse.rs
use crate::consts::DRAG_THRESHOLD; use crate::messages::prelude::*; use bitflags::bitflags; use glam::DVec2; use std::collections::VecDeque; use std::hash::{Hash, Hasher}; // Origin is top left pub type DocumentPosition = DVec2; pub type ViewportPosition = DVec2; pub type EditorPosition = DVec2; #[derive(Debug, Copy,...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/debug/debug_message.rs
editor/src/messages/debug/debug_message.rs
use crate::messages::prelude::*; #[impl_message(Message, Debug)] #[derive(PartialEq, Eq, Clone, Debug, Hash, serde::Serialize, serde::Deserialize)] pub enum DebugMessage { ToggleTraceLogs, MessageOff, MessageNames, MessageContents, }
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/debug/utility_types.rs
editor/src/messages/debug/utility_types.rs
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq)] pub enum MessageLoggingVerbosity { #[default] Off, Names, Contents, }
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/debug/mod.rs
editor/src/messages/debug/mod.rs
mod debug_message; mod debug_message_handler; pub mod utility_types; #[doc(inline)] pub use debug_message::{DebugMessage, DebugMessageDiscriminant}; #[doc(inline)] pub use debug_message_handler::DebugMessageHandler;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/debug/debug_message_handler.rs
editor/src/messages/debug/debug_message_handler.rs
use super::utility_types::MessageLoggingVerbosity; use crate::messages::prelude::*; #[derive(Debug, Default, ExtractField)] pub struct DebugMessageHandler { pub message_logging_verbosity: MessageLoggingVerbosity, } #[message_handler_data] impl MessageHandler<DebugMessage, ()> for DebugMessageHandler { fn process_me...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/defer/defer_message.rs
editor/src/messages/defer/defer_message.rs
use crate::messages::prelude::*; #[impl_message(Message, Defer)] #[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)] pub enum DeferMessage { SetGraphSubmissionIndex { execution_id: u64 }, TriggerGraphRun { execution_id: u64, document_id: DocumentId }, AfterGraphRun { messages: Vec<Message> }, ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/defer/mod.rs
editor/src/messages/defer/mod.rs
mod defer_message; mod defer_message_handler; #[doc(inline)] pub use defer_message::{DeferMessage, DeferMessageDiscriminant}; #[doc(inline)] pub use defer_message_handler::{DeferMessageContext, DeferMessageHandler};
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/defer/defer_message_handler.rs
editor/src/messages/defer/defer_message_handler.rs
use crate::messages::prelude::*; #[derive(ExtractField)] pub struct DeferMessageContext<'a> { pub portfolio: &'a PortfolioMessageHandler, } #[derive(Debug, Default, ExtractField)] pub struct DeferMessageHandler { after_graph_run: HashMap<DocumentId, Vec<(u64, Message)>>, after_viewport_resize: Vec<Message>, curre...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/utility_types.rs
editor/src/messages/tool/utility_types.rs
#![allow(clippy::too_many_arguments)] use super::common_functionality::shape_editor::ShapeState; use super::tool_messages::*; use crate::messages::broadcast::BroadcastMessage; use crate::messages::broadcast::event::EventMessage; use crate::messages::input_mapper::utility_types::input_keyboard::{Key, KeysGroup, Labeled...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_message_handler.rs
editor/src/messages/tool/tool_message_handler.rs
use super::common_functionality::shape_editor::ShapeState; use super::common_functionality::shapes::shape_utility::ShapeType::{self, Ellipse, Line, Rectangle}; use super::utility_types::{ToolActionMessageContext, ToolFsmState, tool_message_to_tool_type}; use crate::application::generate_uuid; use crate::messages::layou...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_message.rs
editor/src/messages/tool/tool_message.rs
use super::utility_types::ToolType; use crate::messages::preferences::SelectionMode; use crate::messages::prelude::*; use graphene_std::raster::color::Color; #[impl_message(Message, Tool)] #[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)] pub enum ToolMessage { // Sub-messages #[child] Transf...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/mod.rs
editor/src/messages/tool/mod.rs
mod tool_message; mod tool_message_handler; pub mod common_functionality; pub mod tool_messages; pub mod transform_layer; pub mod utility_types; #[doc(inline)] pub use tool_message::{ToolMessage, ToolMessageDiscriminant}; #[doc(inline)] pub use tool_message_handler::{ToolMessageContext, ToolMessageHandler}; #[doc(inl...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/compass_rose.rs
editor/src/messages/tool/common_functionality/compass_rose.rs
use crate::consts::{COMPASS_ROSE_ARROW_CLICK_TARGET_ANGLE, COMPASS_ROSE_HOVER_RING_DIAMETER, COMPASS_ROSE_RING_INNER_DIAMETER}; use crate::messages::prelude::DocumentMessageHandler; use glam::{DAffine2, DVec2}; use std::f64::consts::FRAC_PI_2; #[derive(Clone, Default, Debug)] pub struct CompassRose { compass_center: ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/pivot.rs
editor/src/messages/tool/common_functionality/pivot.rs
//! Handler for the pivot overlay visible on the selected layer(s) whilst using the Select tool which controls the center of rotation/scale. use crate::consts::PIVOT_DIAMETER; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::prelude::*; use crate::me...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/graph_modification_utils.rs
editor/src/messages/tool/common_functionality/graph_modification_utils.rs
use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shape_editor.rs
editor/src/messages/tool/common_functionality/shape_editor.rs
use super::graph_modification_utils::merge_layers; use super::snapping::{SnapCache, SnapCandidatePoint, SnapData, SnapManager, SnappedPoint}; use super::utility_functions::{adjust_handle_colinearity, calculate_segment_angle, restore_g1_continuity, restore_previous_handle_position}; use crate::consts::HANDLE_LENGTH_FACT...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/transformation_cage.rs
editor/src/messages/tool/common_functionality/transformation_cage.rs
use super::snapping::{self, SnapCandidatePoint, SnapConstraint, SnapData, SnapManager, SnappedPoint}; use crate::consts::{ BOUNDS_ROTATE_THRESHOLD, BOUNDS_SELECT_THRESHOLD, MAX_LENGTH_FOR_NO_WIDTH_OR_HEIGHT, MAXIMUM_ALT_SCALE_FACTOR, MIN_LENGTH_FOR_CORNERS_VISIBILITY, MIN_LENGTH_FOR_EDGE_RESIZE_PRIORITY_OVER_CORNERS, ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/mod.rs
editor/src/messages/tool/common_functionality/mod.rs
pub mod auto_panning; pub mod color_selector; pub mod compass_rose; pub mod gizmos; pub mod graph_modification_utils; pub mod measure; pub mod pivot; pub mod resize; pub mod shape_editor; pub mod shapes; pub mod snapping; pub mod transformation_cage; pub mod utility_functions;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/measure.rs
editor/src/messages/tool/common_functionality/measure.rs
use crate::consts::COLOR_OVERLAY_BLUE; use crate::messages::portfolio::document::overlays::utility_types::{OverlayContext, Pivot}; use crate::messages::tool::tool_messages::tool_prelude::*; use graphene_std::renderer::Rect; /// Draws a dashed line between two points transformed by the given affine transformation. fn d...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/color_selector.rs
editor/src/messages/tool/common_functionality/color_selector.rs
use crate::messages::layout::utility_types::widget_prelude::*; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::prelude::*; use graphene_std::Color; use graphene_std::vector::style::FillChoice; #[derive(PartialEq, Clone, Debug, serde::Serialize, serd...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/utility_functions.rs
editor/src/messages/tool/common_functionality/utility_functions.rs
use super::snapping::{SnapCandidatePoint, SnapData, SnapManager}; use super::transformation_cage::{BoundingBoxManager, SizeSnapData}; use crate::consts::ROTATE_INCREMENT; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_ty...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping.rs
editor/src/messages/tool/common_functionality/snapping.rs
mod alignment_snapper; mod distribution_snapper; mod grid_snapper; mod layer_snapper; mod snap_results; use crate::consts::{COLOR_OVERLAY_BLACK_75, COLOR_OVERLAY_BLUE, COLOR_OVERLAY_WHITE}; use crate::messages::portfolio::document::overlays::utility_types::{OverlayContext, Pivot}; use crate::messages::portfolio::docum...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/resize.rs
editor/src/messages/tool/common_functionality/resize.rs
use crate::messages::input_mapper::utility_types::input_keyboard::Key; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::prelude::*; use crate::messages::tool::commo...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/auto_panning.rs
editor/src/messages/tool/common_functionality/auto_panning.rs
use crate::consts::{DRAG_BEYOND_VIEWPORT_MAX_OVEREXTENSION_PIXELS, DRAG_BEYOND_VIEWPORT_SPEED_FACTOR}; use crate::messages::prelude::*; use crate::messages::tool::tool_messages::tool_prelude::*; #[derive(Clone, Debug, Default)] pub struct AutoPanning { subscribed_to_animation_frame: bool, } impl AutoPanning { pub f...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/mod.rs
editor/src/messages/tool/common_functionality/gizmos/mod.rs
pub mod gizmo_manager; pub mod shape_gizmos;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/gizmo_manager.rs
editor/src/messages/tool/common_functionality/gizmos/gizmo_manager.rs
use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::prelude::{Documen...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/grid_rows_columns_gizmo.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/grid_rows_columns_gizmo.rs
use crate::consts::GRID_ROW_COLUMN_GIZMO_OFFSET; use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext;...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/point_radius_handle.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/point_radius_handle.rs
use crate::consts::GIZMO_HIDE_THRESHOLD; use crate::consts::{COLOR_OVERLAY_RED, POINT_RADIUS_HANDLE_SNAP_THRESHOLD}; use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/sweep_angle_gizmo.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/sweep_angle_gizmo.rs
use crate::consts::{ARC_SNAP_THRESHOLD, GIZMO_HIDE_THRESHOLD}; use crate::messages::message::Message; use crate::messages::portfolio::document::overlays::utility_functions::text_width; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_ty...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/number_of_points_dial.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/number_of_points_dial.rs
use crate::consts::{GIZMO_HIDE_THRESHOLD, NUMBER_OF_POINTS_DIAL_SPOKE_EXTENSION, NUMBER_OF_POINTS_DIAL_SPOKE_LENGTH, POINT_RADIUS_HANDLE_SEGMENT_THRESHOLD}; use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::overlays::utility_t...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/mod.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/mod.rs
pub mod circle_arc_radius_handle; pub mod grid_rows_columns_gizmo; pub mod number_of_points_dial; pub mod point_radius_handle; pub mod sweep_angle_gizmo;
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/circle_arc_radius_handle.rs
editor/src/messages/tool/common_functionality/gizmos/shape_gizmos/circle_arc_radius_handle.rs
use crate::consts::GIZMO_HIDE_THRESHOLD; use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifie...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping/snap_results.rs
editor/src/messages/tool/common_functionality/snapping/snap_results.rs
use super::DistributionMatch; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types::misc::{DistributionSnapTarget, SnapSource, SnapTarget}; use crate::messages::tool::common_functionality::snapping::SnapCandidatePoint; u...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping/distribution_snapper.rs
editor/src/messages/tool/common_functionality/snapping/distribution_snapper.rs
use super::*; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types::misc::*; use glam::DVec2; use graphene_std::renderer::Quad; use std::collections::VecDeque; #[derive(Clone, Debug, Default)] pub struct DistributionSna...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping/layer_snapper.rs
editor/src/messages/tool/common_functionality/snapping/layer_snapper.rs
use super::*; use crate::consts::HIDE_HANDLE_DISTANCE; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::portfolio::document::utility_types::misc::*; use crate::messages::prelude::*; use glam::{DAffine2, DVec2, FloatExt}; use graphene_std::math::math_e...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping/alignment_snapper.rs
editor/src/messages/tool/common_functionality/snapping/alignment_snapper.rs
use super::*; use crate::messages::portfolio::document::utility_types::misc::*; use glam::{DAffine2, DVec2}; use graphene_std::renderer::Quad; #[derive(Clone, Debug, Default)] pub struct AlignmentSnapper { bounding_box_points: Vec<SnapCandidatePoint>, } impl AlignmentSnapper { pub fn collect_bounding_box_points(&mu...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/snapping/grid_snapper.rs
editor/src/messages/tool/common_functionality/snapping/grid_snapper.rs
use super::*; use crate::messages::portfolio::document::utility_types::misc::{GridSnapTarget, GridSnapping, GridType, SnapTarget}; use glam::DVec2; use graphene_std::renderer::Quad; struct Line { pub point: DVec2, pub direction: DVec2, } #[derive(Clone, Debug, Default)] pub struct GridSnapper; impl GridSnapper { ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs
editor/src/messages/tool/common_functionality/shapes/shape_utility.rs
use super::ShapeToolData; use crate::consts::{ARC_SWEEP_GIZMO_RADIUS, ARC_SWEEP_GIZMO_TEXT_HEIGHT}; use crate::messages::frontend::utility_types::MouseCursorIcon; use crate::messages::message::Message; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::doc...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/grid_shape.rs
editor/src/messages/tool/common_functionality/shapes/grid_shape.rs
use super::shape_utility::ShapeToolModifierKey; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::overlays::utility_ty...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/rectangle_shape.rs
editor/src/messages/tool/common_functionality/shapes/rectangle_shape.rs
use super::shape_utility::ShapeToolModifierKey; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::utility_types::docum...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/line_shape.rs
editor/src/messages/tool/common_functionality/shapes/line_shape.rs
use super::shape_utility::ShapeToolModifierKey; use crate::consts::{BOUNDS_SELECT_THRESHOLD, LINE_ROTATE_SNAP_ANGLE}; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate:...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/spiral_shape.rs
editor/src/messages/tool/common_functionality/shapes/spiral_shape.rs
use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::me...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/ellipse_shape.rs
editor/src/messages/tool/common_functionality/shapes/ellipse_shape.rs
use super::shape_utility::ShapeToolModifierKey; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::utility_types::docum...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/mod.rs
editor/src/messages/tool/common_functionality/shapes/mod.rs
pub mod arc_shape; pub mod circle_shape; pub mod ellipse_shape; pub mod grid_shape; pub mod line_shape; pub mod polygon_shape; pub mod rectangle_shape; pub mod shape_utility; pub mod spiral_shape; pub mod star_shape; pub use super::shapes::ellipse_shape::Ellipse; pub use super::shapes::line_shape::{Line, LineEnd}; pub...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/arc_shape.rs
editor/src/messages/tool/common_functionality/shapes/arc_shape.rs
use super::shape_utility::ShapeToolModifierKey; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::utility_types::docum...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/circle_shape.rs
editor/src/messages/tool/common_functionality/shapes/circle_shape.rs
use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document:...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/polygon_shape.rs
editor/src/messages/tool/common_functionality/shapes/polygon_shape.rs
use super::shape_utility::{ShapeToolModifierKey, update_radius_sign}; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/common_functionality/shapes/star_shape.rs
editor/src/messages/tool/common_functionality/shapes/star_shape.rs
use super::shape_utility::{ShapeToolModifierKey, update_radius_sign}; use super::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/gradient_tool.rs
editor/src/messages/tool/tool_messages/gradient_tool.rs
use super::tool_prelude::*; use crate::consts::{LINE_ROTATE_SNAP_ANGLE, MANIPULATOR_GROUP_MARKER_SIZE, SELECTION_THRESHOLD}; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::mess...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/eyedropper_tool.rs
editor/src/messages/tool/tool_messages/eyedropper_tool.rs
use super::tool_prelude::*; use crate::messages::tool::utility_types::DocumentToolData; #[derive(Default, ExtractField)] pub struct EyedropperTool { fsm_state: EyedropperToolFsmState, data: EyedropperToolData, } #[impl_message(Message, ToolMessage, Eyedropper)] #[derive(PartialEq, Eq, Clone, Debug, Hash, serde::Ser...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/shape_tool.rs
editor/src/messages/tool/tool_messages/shape_tool.rs
use super::tool_prelude::*; use crate::consts::{DEFAULT_STROKE_WIDTH, SNAP_POINT_TOLERANCE}; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/artboard_tool.rs
editor/src/messages/tool/tool_messages/artboard_tool.rs
use super::tool_prelude::*; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use crate::messages::tool...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/fill_tool.rs
editor/src/messages/tool/tool_messages/fill_tool.rs
use super::tool_prelude::*; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::tool::common_functionality::graph_modification_utils::NodeGraphLayer; use graphene_std::vector::style::Fill; #[derive(Default, ExtractField)] pub struct FillTool { fsm_state: FillToolFsm...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/select_tool.rs
editor/src/messages/tool/tool_messages/select_tool.rs
#![allow(clippy::too_many_arguments)] use super::tool_prelude::*; use crate::consts::*; use crate::messages::input_mapper::utility_types::input_mouse::ViewportPosition; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::overlays::utility_typ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/path_tool.rs
editor/src/messages/tool/tool_messages/path_tool.rs
use super::select_tool::extend_lasso; use super::tool_prelude::*; use crate::consts::{ COLOR_OVERLAY_BLUE, COLOR_OVERLAY_GRAY, COLOR_OVERLAY_GREEN, COLOR_OVERLAY_RED, DEFAULT_STROKE_WIDTH, DOUBLE_CLICK_MILLISECONDS, DRAG_DIRECTION_MODE_DETERMINATION_THRESHOLD, DRAG_THRESHOLD, DRILL_THROUGH_THRESHOLD, HANDLE_ROTATE_SN...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/navigate_tool.rs
editor/src/messages/tool/tool_messages/navigate_tool.rs
use super::tool_prelude::*; #[derive(Default, ExtractField)] pub struct NavigateTool { fsm_state: NavigateToolFsmState, tool_data: NavigateToolData, } #[impl_message(Message, ToolMessage, Navigate)] #[derive(PartialEq, Eq, Clone, Debug, Hash, serde::Serialize, serde::Deserialize, specta::Type)] pub enum NavigateToo...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/mod.rs
editor/src/messages/tool/tool_messages/mod.rs
pub mod artboard_tool; pub mod brush_tool; pub mod eyedropper_tool; pub mod fill_tool; pub mod freehand_tool; pub mod gradient_tool; pub mod navigate_tool; pub mod path_tool; pub mod pen_tool; pub mod select_tool; pub mod shape_tool; pub mod spline_tool; pub mod text_tool; pub mod tool_prelude { pub use crate::messag...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/text_tool.rs
editor/src/messages/tool/tool_messages/text_tool.rs
#![allow(clippy::too_many_arguments)] use super::tool_prelude::*; use crate::consts::{COLOR_OVERLAY_BLUE, COLOR_OVERLAY_RED, DRAG_THRESHOLD}; use crate::messages::portfolio::document::graph_operation::utility_types::TransformIn; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use cra...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/brush_tool.rs
editor/src/messages/tool/tool_messages/brush_tool.rs
use super::tool_prelude::*; use crate::consts::DEFAULT_BRUSH_SIZE; use crate::messages::portfolio::document::graph_operation::transform_utils::get_current_transform; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::uti...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/spline_tool.rs
editor/src/messages/tool/tool_messages/spline_tool.rs
use super::tool_prelude::*; use crate::consts::{DEFAULT_STROKE_WIDTH, DRAG_THRESHOLD, PATH_JOIN_THRESHOLD, SNAP_POINT_TOLERANCE}; use crate::messages::input_mapper::utility_types::input_mouse::MouseKeys; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use cra...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/pen_tool.rs
editor/src/messages/tool/tool_messages/pen_tool.rs
use super::tool_prelude::*; use crate::consts::{COLOR_OVERLAY_BLUE, DEFAULT_STROKE_WIDTH, HIDE_HANDLE_DISTANCE, LINE_ROTATE_SNAP_ANGLE, SEGMENT_OVERLAY_SIZE}; use crate::messages::input_mapper::utility_types::input_mouse::MouseKeys; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolv...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/tool_messages/freehand_tool.rs
editor/src/messages/tool/tool_messages/freehand_tool.rs
use super::tool_prelude::*; use crate::consts::DEFAULT_STROKE_WIDTH; use crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type; use crate::messages::portfolio::document::overlays::utility_functions::path_endpoint_overlays; use crate::messages::portfolio::document::overl...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/transform_layer/transform_layer_message.rs
editor/src/messages/tool/transform_layer/transform_layer_message.rs
use crate::messages::input_mapper::utility_types::input_keyboard::Key; use crate::messages::portfolio::document::overlays::utility_types::OverlayContext; use crate::messages::portfolio::document::utility_types::transformation::TransformType; use crate::messages::prelude::*; use crate::messages::tool::common_functionali...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/transform_layer/transform_layer_message_handler.rs
editor/src/messages/tool/transform_layer/transform_layer_message_handler.rs
use crate::consts::{ANGLE_MEASURE_RADIUS_FACTOR, ARC_MEASURE_RADIUS_FACTOR_RANGE, COLOR_OVERLAY_BLUE, COLOR_OVERLAY_GRAY, SLOWING_DIVISOR}; use crate::messages::input_mapper::utility_types::input_mouse::{DocumentPosition, ViewportPosition}; use crate::messages::portfolio::document::overlays::utility_functions::text_wid...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
true
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/tool/transform_layer/mod.rs
editor/src/messages/tool/transform_layer/mod.rs
//! Handles Blender inspired layer transformation with the <kbd>G</kbd>, <kbd>R</kbd>, and <kbd>S</kbd> keys for grabbing, rotating, and scaling. //! //! Other features include //! - Typing a number for a precise transformation //! - <kbd>Shift</kbd> to slow transformation //! - <kbd>Ctrl</kbd> to snap angles to 15° //...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/desktop/src/app.rs
desktop/src/app.rs
use rfd::AsyncFileDialog; use std::fs; use std::path::PathBuf; use std::sync::mpsc::{Receiver, Sender, SyncSender}; use std::thread; use std::time::{Duration, Instant}; use winit::application::ApplicationHandler; use winit::dpi::PhysicalSize; use winit::event::{ButtonSource, ElementState, MouseButton, WindowEvent}; use...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/desktop/src/consts.rs
desktop/src/consts.rs
pub(crate) const APP_NAME: &str = "Graphite"; #[cfg(any(target_os = "linux", target_os = "windows"))] pub(crate) const APP_ID: &str = "art.graphite.Graphite"; pub(crate) const APP_DIRECTORY_NAME: &str = "graphite"; pub(crate) const APP_LOCK_FILE_NAME: &str = "instance.lock"; pub(crate) const APP_STATE_FILE_NAME: &str ...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/desktop/src/event.rs
desktop/src/event.rs
use crate::wrapper::NodeGraphExecutionResult; use crate::wrapper::messages::DesktopWrapperMessage; pub(crate) enum AppEvent { UiUpdate(wgpu::Texture), CursorChange(crate::window::Cursor), ScheduleBrowserWork(std::time::Instant), WebCommunicationInitialized, DesktopWrapperMessage(DesktopWrapperMessage), NodeGraph...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false
GraphiteEditor/Graphite
https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/desktop/src/persist.rs
desktop/src/persist.rs
use crate::wrapper::messages::{Document, DocumentId, Preferences}; #[derive(Default, serde::Serialize, serde::Deserialize)] pub(crate) struct PersistentData { documents: DocumentStore, current_document: Option<DocumentId>, #[serde(skip)] document_order: Option<Vec<DocumentId>>, } impl PersistentData { pub(crate)...
rust
Apache-2.0
42440c0d0bcf5735b05d8a9e5bd27187f74b1589
2026-01-04T15:38:29.103662Z
false