pub struct DrawRRect {
pub rect: Rect,
pub radius: f32,
pub color: Color,
}Expand description
Filled rounded-rectangle draw primitive.
§Examples
use ailloli_ui_core::{Color, Rect};
use ailloli_ui_runtime::scene::DrawRRect;
let draw = DrawRRect { rect: Rect::new(0.0, 0.0, 20.0, 10.0), radius: 4.0, color: Color::WHITE };
assert_eq!(draw.radius, 4.0);Fields§
§rect: RectFilled rectangle in window-space logical pixels.
radius: f32Corner radius in logical pixels (clamped by the renderer).
color: ColorLinear-RGBA fill color.
Trait Implementations§
impl Copy for DrawRRect
impl StructuralPartialEq for DrawRRect
Auto Trait Implementations§
impl Freeze for DrawRRect
impl RefUnwindSafe for DrawRRect
impl Send for DrawRRect
impl Sync for DrawRRect
impl Unpin for DrawRRect
impl UnwindSafe for DrawRRect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.