pub struct Arc { /* private fields */ }Implementations§
Source§impl Arc
impl Arc
pub fn new() -> Self
Sourcepub fn inner_radius(self, inner_radius: f32) -> Self
pub fn inner_radius(self, inner_radius: f32) -> Self
Set the inner radius of the Arc.
Sourcepub fn outer_radius(self, outer_radius: f32) -> Self
pub fn outer_radius(self, outer_radius: f32) -> Self
Set the outer radius of the Arc.
Sourcepub fn contains<T>(
&self,
arc: &ArcData<'_, T>,
position: Point<f32>,
inner_radius: Option<f32>,
outer_radius: Option<f32>,
bounds: &Bounds<Pixels>,
) -> bool
pub fn contains<T>( &self, arc: &ArcData<'_, T>, position: Point<f32>, inner_radius: Option<f32>, outer_radius: Option<f32>, bounds: &Bounds<Pixels>, ) -> bool
Whether the cursor at position (relative to the bounds origin) is on
this arc’s slice: within its angles and between inner_radius and
outer_radius (this arc’s own radii when None).
Sourcepub fn paint_cached<T>(
&self,
arc: &ArcData<'_, T>,
color: impl Into<Hsla>,
inner_radius: Option<f32>,
outer_radius: Option<f32>,
bounds: &Bounds<Pixels>,
cache: &mut PathCache,
window: &mut Window,
)
pub fn paint_cached<T>( &self, arc: &ArcData<'_, T>, color: impl Into<Hsla>, inner_radius: Option<f32>, outer_radius: Option<f32>, bounds: &Bounds<Pixels>, cache: &mut PathCache, window: &mut Window, )
Paint the Arc, reusing the path tessellated by an earlier paint while its
angles, radii and the bounds size are unchanged; see
Line::paint_cached.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arc
impl RefUnwindSafe for Arc
impl Send for Arc
impl Sync for Arc
impl Unpin for Arc
impl UnsafeUnpin for Arc
impl UnwindSafe for Arc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().