Struct components::ui::Rect
source · [−]pub struct Rect {}
Implementations
sourceimpl Rect
impl Rect
pub fn from_center(center: Offset, width: f32, height: f32) -> Self
pub fn from_circle(center: Offset, radius: f32) -> Self
pub fn from_ltrb(left: f32, top: f32, right: f32, bottom: f32) -> Self
pub fn from_ltwh(left: f32, top: f32, width: f32, height: f32) -> Self
pub fn from_points(a: Offset, b: Offset) -> Self
Trait Implementations
sourceimpl CustomClipper<Rect> for NoneCustomRectClipper
impl CustomClipper<Rect> for NoneCustomRectClipper
fn get_clip(&self, size: Size) -> Rect
fn add_listener(&self, listener: VoidCallback)
fn get_approximate_clip_rect(&self, size: Size) -> Rect
fn remove_listener(&self, listener: VoidCallback)
fn should_reclip(&self, old_clipper: Box<dyn CustomClipper<T>>) -> bool
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.