[−][src]Struct egui::paint::mesher::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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,