pub struct Window<'v, S: IntoCStr, P: Pushable = ()> { /* private fields */ }
Implementations§
Source§impl<'v, S: IntoCStr, P: Pushable> Window<'v, S, P>
impl<'v, S: IntoCStr, P: Pushable> Window<'v, S, P>
Sourcepub fn push_for_begin<P2: Pushable>(self, push: P2) -> Window<'v, S, (P, P2)>
pub fn push_for_begin<P2: Pushable>(self, push: P2) -> Window<'v, S, (P, P2)>
Registers this Pushable
to be called only for the begin
part of this UI
element.
This is useful for example to modify the style of a window without changing the stily of its content.
Sourcepub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
pub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
Calls f
inside this UI element, but only if it is visible.
Sourcepub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
pub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
Calls f
inside this UI element, passing true
if the elements visible, false
if it is not.
pub fn open(self, open: &'v mut bool) -> Self
pub fn flags(self, flags: WindowFlags) -> Self
Auto Trait Implementations§
impl<'v, S, P> Freeze for Window<'v, S, P>
impl<'v, S, P> RefUnwindSafe for Window<'v, S, P>
impl<'v, S, P> Send for Window<'v, S, P>
impl<'v, S, P> Sync for Window<'v, S, P>
impl<'v, S, P> Unpin for Window<'v, S, P>
impl<'v, S, P = ()> !UnwindSafe for Window<'v, S, P>
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