Files
Graphite/editor/src/viewport_tools/tool_options.rs
T
Paul Kupper 1d2768c26d Implement Freehand Tool (#503)
* Implement freehand tool

* Address review comments

* Consistent ordering of tools

* Add hotkey N for freehand tool

* Tweak freehand tool hint
2022-01-30 11:39:49 +01:00

41 lines
777 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub enum ToolOptions {
Select { append_mode: SelectAppendMode },
Crop {},
Navigate {},
Eyedropper {},
Text {},
Fill {},
Gradient {},
Brush {},
Heal {},
Clone {},
Patch {},
BlurSharpen {},
Relight {},
Path {},
Pen { weight: u32 },
Freehand { weight: u32 },
Spline {},
Line { weight: u32 },
Rectangle {},
Ellipse {},
Shape { shape_type: ShapeType },
}
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub enum SelectAppendMode {
New,
Add,
Subtract,
Intersect,
}
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub enum ShapeType {
Star { vertices: u32 },
Polygon { vertices: u32 },
}