use kurbo::BezPath;
use kurbo::Point;
use kurbo::Rect;
use crate::Handle;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OutlineKind {
Selection,
Hover,
Frame,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PointKind {
Anchor,
Control,
}
#[derive(Clone, Debug, PartialEq)]
pub enum OverlayItem {
Outline {
path: BezPath,
kind: OutlineKind,
},
Handle {
rect: Rect,
handle: Handle,
},
Marquee {
rect: Rect,
},
Guide {
from: Point,
to: Point,
},
Path {
path: BezPath,
},
Point {
at: Point,
kind: PointKind,
},
Caret {
path: BezPath,
},
TextHighlight {
path: BezPath,
},
Label {
at: Point,
text: String,
},
}
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub enum Cursor {
#[default]
Default,
Grab,
Grabbing,
Crosshair,
Text,
Move,
Resize(f64),
Rotate(f64),
}