pub struct ListBox<S: IntoCStr, P: Pushable = ()> { /* private fields */ }
Implementations§
Source§impl<S: IntoCStr, P: Pushable> ListBox<S, P>
impl<S: IntoCStr, P: Pushable> ListBox<S, P>
Sourcepub fn push_for_begin<P2: Pushable>(self, push: P2) -> ListBox<S, (P, P2)>
pub fn push_for_begin<P2: Pushable>(self, push: P2) -> ListBox<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 size(self, size: Vector2) -> Self
Auto Trait Implementations§
impl<S, P> Freeze for ListBox<S, P>
impl<S, P> RefUnwindSafe for ListBox<S, P>
impl<S, P> Send for ListBox<S, P>
impl<S, P> Sync for ListBox<S, P>
impl<S, P> Unpin for ListBox<S, P>
impl<S, P> UnwindSafe for ListBox<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