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 imgui_context_raw(&self) -> *mut ImGuiContext
pub fn imgui_context_raw(&self) -> *mut ImGuiContext
Return the raw Dear ImGui context pointer this ImNodes context is bound to.
Sourcepub fn current_raw() -> Option<NonNull<ImNodesContext>>
pub fn current_raw() -> Option<NonNull<ImNodesContext>>
Get the currently active ImNodes context.
Sourcepub fn bind_editor<'a>(&'a self, editor: &'a EditorContext) -> BoundEditor<'a>
pub fn bind_editor<'a>(&'a self, editor: &'a EditorContext) -> BoundEditor<'a>
Bind an EditorContext to this ImNodes context.
pub fn try_create_editor_context(&self) -> ImGuiResult<EditorContext>
pub fn create_editor_context(&self) -> EditorContext
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 UnsafeUnpin 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