pub struct ColorBox {
pub color: Rgba<f32>,
pub size: vec2<f32>,
}
Fields§
§color: Rgba<f32>
§size: vec2<f32>
Implementations§
Trait Implementations§
source§impl Widget for ColorBox
impl Widget for ColorBox
fn draw(&mut self, cx: &mut DrawContext<'_, '_>)
fn calc_constraints( &mut self, _children: &ConstraintsContext<'_> ) -> Constraints
fn sense(&mut self) -> Option<&mut Sense>
fn update(&mut self, delta_time: f64)
fn handle_event(&mut self, event: &Event)
fn walk_children_mut(&mut self, f: &mut dyn FnMut(&mut dyn Widget))
fn layout_children(&mut self, cx: &mut LayoutContext<'_>)
Auto Trait Implementations§
impl RefUnwindSafe for ColorBox
impl Send for ColorBox
impl Sync for ColorBox
impl Unpin for ColorBox
impl UnwindSafe for ColorBox
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