pub struct Context { /* private fields */ }Expand description
Global ImNodes context
Implementations§
Source§impl Context
impl Context
Sourcepub fn try_create(_imgui: &ImGuiContext) -> ImGuiResult<Self>
pub fn try_create(_imgui: &ImGuiContext) -> ImGuiResult<Self>
Try to create a new ImNodes context bound to the current Dear ImGui context
Sourcepub fn create(imgui: &ImGuiContext) -> Self
pub fn create(imgui: &ImGuiContext) -> Self
Create a new ImNodes context (panics on error)
Sourcepub fn set_as_current(&self)
pub fn set_as_current(&self)
Set as current ImNodes context
Sourcepub fn as_raw(&self) -> *mut ImNodesContext
pub fn as_raw(&self) -> *mut ImNodesContext
Return the raw pointer for this context.
Sourcepub fn current_raw() -> Option<NonNull<ImNodesContext>>
pub fn current_raw() -> Option<NonNull<ImNodesContext>>
Get the currently active ImNodes context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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