Struct makepad_widgets::widget::DrawStateWrap
source · pub struct DrawStateWrap<T: Clone> { /* private fields */ }
Implementations§
source§impl<T: Clone> DrawStateWrap<T>
impl<T: Clone> DrawStateWrap<T>
pub fn begin(&mut self, cx: &mut Cx2d<'_>, init: T) -> bool
pub fn begin_with<F, S>(&mut self, cx: &mut Cx2d<'_>, v: &S, init: F) -> boolwhere F: FnOnce(&mut Cx2d<'_>, &S) -> T,
pub fn get(&self) -> Option<T>
pub fn as_ref(&self) -> Option<&T>
pub fn as_mut(&mut self) -> Option<&mut T>
pub fn set(&mut self, value: T)
pub fn end(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for DrawStateWrap<T>where T: RefUnwindSafe,
impl<T> Send for DrawStateWrap<T>where T: Send,
impl<T> Sync for DrawStateWrap<T>where T: Sync,
impl<T> Unpin for DrawStateWrap<T>where T: Unpin,
impl<T> UnwindSafe for DrawStateWrap<T>where T: UnwindSafe,
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