pub struct ImmediateViewport<'a> {
pub ids: ViewportIdPair,
pub builder: ViewportBuilder,
pub viewport_ui_cb: Box<dyn FnMut(&Context) + 'a>,
}
Expand description
Viewport for immediate rendering.
Fields§
§ids: ViewportIdPair
Id of us and our parent.
builder: ViewportBuilder
§viewport_ui_cb: Box<dyn FnMut(&Context) + 'a>
The user-code that shows the GUI.
Auto Trait Implementations§
impl<'a> Freeze for ImmediateViewport<'a>
impl<'a> !RefUnwindSafe for ImmediateViewport<'a>
impl<'a> !Send for ImmediateViewport<'a>
impl<'a> !Sync for ImmediateViewport<'a>
impl<'a> Unpin for ImmediateViewport<'a>
impl<'a> !UnwindSafe for ImmediateViewport<'a>
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