pub struct EditorContext { /* private fields */ }Expand description
Owned imgui-node-editor context.
Implementations§
Source§impl EditorContext
impl EditorContext
pub fn create(imgui: &ImGuiContext) -> Self
pub fn create_with_config(imgui: &ImGuiContext, config: EditorConfig) -> Self
pub fn try_create_with_config( imgui: &ImGuiContext, config: EditorConfig, ) -> Result<Self, NodeEditorError>
pub fn as_raw(&self) -> *mut DneEditorContext
pub fn as_raw_native(&self) -> *mut c_void
pub fn config(&self) -> &EditorConfigSnapshot
pub fn style(&self) -> NodeEditorStyle
pub fn set_style(&self, style: &NodeEditorStyle)
pub fn style_color(&self, color: StyleColor) -> [f32; 4]
pub fn set_style_color(&self, color: StyleColor, value: [f32; 4])
Trait Implementations§
Source§impl Drop for EditorContext
impl Drop for EditorContext
Auto Trait Implementations§
impl !RefUnwindSafe for EditorContext
impl !Send for EditorContext
impl !Sync for EditorContext
impl !UnwindSafe for EditorContext
impl Freeze for EditorContext
impl Unpin for EditorContext
impl UnsafeUnpin for EditorContext
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