pub struct EditorContext { /* private fields */ }Expand description
An editor context allows multiple independent editors
Implementations§
Source§impl EditorContext
impl EditorContext
pub fn try_create() -> ImGuiResult<Self>
pub fn create() -> Self
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditorContext
impl RefUnwindSafe for EditorContext
impl !Send for EditorContext
impl !Sync for EditorContext
impl Unpin for EditorContext
impl UnwindSafe 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