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§
sourcefn segment_kind(&self) -> SegmentKind
fn segment_kind(&self) -> SegmentKind
Gets segment kind
sourcefn start_point(&self) -> &Point2<f64>
fn start_point(&self) -> &Point2<f64>
Gets starting point of segment
sourcefn start_point_mut(&mut self) -> &mut Point2<f64>
fn start_point_mut(&mut self) -> &mut Point2<f64>
Gets starting point of segment (mutable)
sourcefn control_point_mut(&mut self, num: u8) -> Option<&mut Point2<f64>>
fn control_point_mut(&mut self, num: u8) -> Option<&mut Point2<f64>>
Gets control point of segment (mutable)
sourcefn end_point_mut(&mut self) -> &mut Point2<f64>
fn end_point_mut(&mut self) -> &mut Point2<f64>
Gets end point of segment (mutable)
sourcefn edge_color(&self) -> &EdgeColor
fn edge_color(&self) -> &EdgeColor
Gets edge color of segment
sourcefn edge_color_mut(&mut self) -> &mut EdgeColor
fn edge_color_mut(&mut self) -> &mut EdgeColor
Gets edge color of segment (mutable)