Struct egui::viewport::ImmediateViewport
source · pub struct ImmediateViewport<'a> {
pub ids: ViewportIdPair,
pub builder: ViewportBuilder,
pub viewport_ui_cb: Box<dyn FnOnce(&Context) + 'a>,
}
Expand description
Viewport for immediate rendering.
Fields§
§ids: ViewportIdPair
Id of us and our parent.
builder: ViewportBuilder
§viewport_ui_cb: Box<dyn FnOnce(&Context) + 'a>
The user-code that shows the GUI.
Auto Trait Implementations§
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