mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 11:28:12 +08:00
Massively reorganize and clean up the whole Rust codebase (#478)
* Massively reorganize and clean up the whole Rust codebase * Additional changes during code review
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::input::keyboard::{Key, MouseMotion};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct HintData(pub Vec<HintGroup>);
|
||||
|
||||
@@ -13,8 +13,10 @@ pub struct HintInfo {
|
||||
pub key_groups: Vec<KeysGroup>,
|
||||
pub mouse: Option<MouseMotion>,
|
||||
pub label: String,
|
||||
pub plus: bool, // Prepend the "+" symbol indicating that this is a refinement upon a previous entry in the group
|
||||
/// Prepend the "+" symbol indicating that this is a refinement upon a previous entry in the group.
|
||||
pub plus: bool,
|
||||
}
|
||||
|
||||
/// Only `Key`s that exist on a physical keyboard should be used.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct KeysGroup(pub Vec<Key>); // Only use `Key`s that exist on a physical keyboard
|
||||
pub struct KeysGroup(pub Vec<Key>);
|
||||
|
||||
Reference in New Issue
Block a user