pub struct BoundEditor<'a> { /* private fields */ }Expand description
An ImNodes editor context bound to a specific ImNodes context.
Prefer using this type over calling methods directly on EditorContext to avoid
accidentally operating on the wrong global ImNodes context.
Implementations§
Source§impl<'a> BoundEditor<'a>
impl<'a> BoundEditor<'a>
pub fn set_current(&self)
pub fn get_panning(&self) -> [f32; 2]
pub fn reset_panning(&self, pos: [f32; 2])
pub fn move_to_node(&self, node_id: i32)
Sourcepub fn save_state_to_ini_string(&self) -> String
pub fn save_state_to_ini_string(&self) -> String
Save this editor’s state to an INI string.
Sourcepub fn load_state_from_ini_string(&self, data: &str)
pub fn load_state_from_ini_string(&self, data: &str)
Load this editor’s state from an INI string.
Sourcepub fn save_state_to_ini_file(&self, file_name: &str)
pub fn save_state_to_ini_file(&self, file_name: &str)
Save this editor’s state directly to an INI file.
Sourcepub fn load_state_from_ini_file(&self, file_name: &str)
pub fn load_state_from_ini_file(&self, file_name: &str)
Load this editor’s state from an INI file.
Auto Trait Implementations§
impl<'a> Freeze for BoundEditor<'a>
impl<'a> !RefUnwindSafe for BoundEditor<'a>
impl<'a> !Send for BoundEditor<'a>
impl<'a> !Sync for BoundEditor<'a>
impl<'a> Unpin for BoundEditor<'a>
impl<'a> UnsafeUnpin for BoundEditor<'a>
impl<'a> !UnwindSafe for BoundEditor<'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