#[non_exhaustive]pub struct RoundRect {
pub radius: f32,
pub color: Color,
pub min_size: Vec2,
}Expand description
A colored box with rounded corners that can contain children.
Responds with RoundRectResponse.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.radius: f32§color: Color§min_size: Vec2Implementations§
Source§impl RoundRect
impl RoundRect
pub fn new(radius: f32) -> Self
pub fn show(self) -> Response<RoundRectResponse>
pub fn show_children<F: FnOnce()>( self, children: F, ) -> Response<RoundRectResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoundRect
impl RefUnwindSafe for RoundRect
impl Send for RoundRect
impl Sync for RoundRect
impl Unpin for RoundRect
impl UnwindSafe for RoundRect
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