Trait msdfgen::EdgeSegment

source ·
pub trait EdgeSegment {
    fn segment_kind(&self) -> SegmentKind;
    fn start_point(&self) -> &Point2<f64>;
    fn start_point_mut(&mut self) -> &mut Point2<f64>;
    fn control_point(&self, num: u8) -> Option<&Point2<f64>>;
    fn control_point_mut(&mut self, num: u8) -> Option<&mut Point2<f64>>;
    fn end_point(&self) -> &Point2<f64>;
    fn end_point_mut(&mut self) -> &mut Point2<f64>;
    fn edge_color(&self) -> &EdgeColor;
    fn edge_color_mut(&mut self) -> &mut EdgeColor;
    fn into_raw(self) -> *mut msdfgen_EdgeSegment;
}
Expand description

Generic edge segment

Required Methods§

Gets segment kind

Gets starting point of segment

Gets starting point of segment (mutable)

Gets control point of segment

Gets control point of segment (mutable)

Gets end point of segment

Gets end point of segment (mutable)

Gets edge color of segment

Gets edge color of segment (mutable)

Implementors§