makepad_font/
outline_point.rs1use makepad_geometry::{Point, Transform, Transformation};
2
3#[derive(Clone, Copy, Debug, PartialEq)]
10pub struct OutlinePoint {
11 pub is_on_curve: bool,
12 pub point: Point,
13}
14
15impl Transform for OutlinePoint {
16 fn transform<T>(self, t: &T) -> OutlinePoint
17 where
18 T: Transformation,
19 {
20 OutlinePoint {
21 is_on_curve: self.is_on_curve,
22 point: self.point.transform(t),
23 }
24 }
25
26 fn transform_mut<T>(&mut self, t: &T)
27 where
28 T: Transformation,
29 {
30 *self = self.transform(t)
31 }
32}