pub struct View { /* private fields */ }
Implementations§
Source§impl View
impl View
pub fn new(env: &Env<'_>, context: impl Into<Context>) -> View
pub fn set_background_color(&mut self, env: &Env<'_>, color: Color)
pub fn set_frame(&mut self, env: &Env<'_>, frame: Rect)
pub fn bounds(&self, env: &Env<'_>) -> Rect
pub fn add_view(&mut self, env: &Env<'_>, view: &View)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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