pub struct PaintRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub background: Option<Background>,
pub radius: Corners,
pub border_width: f32,
pub border_color: Option<Rgba>,
}Expand description
A resolved, absolutely-positioned box: an optional fill and an optional border, sharing one rounded-rect geometry.
Fields§
§x: f32§y: f32§width: f32§height: f32§background: Option<Background>§radius: Corners§border_width: f32Uniform border width for rendering (0 = none).
border_color: Option<Rgba>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaintRect
impl RefUnwindSafe for PaintRect
impl Send for PaintRect
impl Sync for PaintRect
impl Unpin for PaintRect
impl UnsafeUnpin for PaintRect
impl UnwindSafe for PaintRect
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