pub struct Viewport(/* private fields */);
Implementations§
Source§impl Viewport
impl Viewport
Sourcepub fn get(&self) -> &ImGuiViewport
pub fn get(&self) -> &ImGuiViewport
Gets a reference to the native wrapper struct.
Source§impl Viewport
impl Viewport
Sourcepub fn cast(r: &ImGuiViewport) -> &Viewport
pub fn cast(r: &ImGuiViewport) -> &Viewport
Converts a native reference into a wrapper reference.
Sourcepub fn cast_mut(r: &mut ImGuiViewport) -> &mut Viewport
pub fn cast_mut(r: &mut ImGuiViewport) -> &mut Viewport
Converts a native reference into a wrapper reference.
It is safe because if you have a reference to the native reference, you already can change anything.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Viewport
impl !RefUnwindSafe for Viewport
impl !Send for Viewport
impl !Sync for Viewport
impl Unpin for Viewport
impl !UnwindSafe for Viewport
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