[][src]Struct egui::paint::mesher::Path

pub struct Path(_);

Implementations

impl Path[src]

pub fn from_point_loop(points: &[Pos2]) -> Self[src]

pub fn from_open_points(points: &[Pos2]) -> Self[src]

pub fn clear(&mut self)[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn reserve(&mut self, additional: usize)[src]

pub fn add_point(&mut self, pos: Pos2, normal: Vec2)[src]

pub fn add_circle(&mut self, center: Pos2, radius: f32)[src]

pub fn add_line_segment(&mut self, points: [Pos2; 2])[src]

pub fn add_open_points(&mut self, points: &[Pos2])[src]

pub fn add_line_loop(&mut self, points: &[Pos2])[src]

pub fn add_rectangle(&mut self, rect: Rect)[src]

pub fn add_rounded_rectangle(&mut self, rect: Rect, corner_radius: f32)[src]

pub fn add_circle_quadrant(&mut self, center: Pos2, radius: f32, quadrant: f32)[src]

with x right, and y down (GUI coords) we have: angle = dir 0 * TAU / 4 = right quadrant 0, right bottom 1 * TAU / 4 = bottom quadrant 1, left bottom 2 * TAU / 4 = left quadrant 2 left top 3 * TAU / 4 = top quadrant 3 right top 4 * TAU / 4 = right

Trait Implementations

impl Clone for Path[src]

impl Debug for Path[src]

impl Default for Path[src]

Auto Trait Implementations

impl RefUnwindSafe for Path

impl Send for Path

impl Sync for Path

impl Unpin for Path

impl UnwindSafe for Path

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.