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>
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.try_create_editor_context().pub fn create() -> Self
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.create_editor_context().pub fn set_current(&self)
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.bind_editor(&editor).set_current().pub fn get_panning(&self) -> [f32; 2]
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.bind_editor(&editor).get_panning().pub fn reset_panning(&self, pos: [f32; 2])
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.bind_editor(&editor).reset_panning(...).pub fn move_to_node(&self, node_id: i32)
👎Deprecated: Deprecated: will be removed in 0.11.0. Use
ctx.bind_editor(&editor).move_to_node(...).Sourcepub fn save_state_to_ini_string(&self) -> String
👎Deprecated: Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).save_state_to_ini_string().
pub fn save_state_to_ini_string(&self) -> String
ctx.bind_editor(&editor).save_state_to_ini_string().Save this editor’s state to an INI string
Sourcepub fn load_state_from_ini_string(&self, data: &str)
👎Deprecated: Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).load_state_from_ini_string(...).
pub fn load_state_from_ini_string(&self, data: &str)
ctx.bind_editor(&editor).load_state_from_ini_string(...).Load this editor’s state from an INI string
Sourcepub fn save_state_to_ini_file(&self, file_name: &str)
👎Deprecated: Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).save_state_to_ini_file(...).
pub fn save_state_to_ini_file(&self, file_name: &str)
ctx.bind_editor(&editor).save_state_to_ini_file(...).Save this editor’s state directly to an INI file
Sourcepub fn load_state_from_ini_file(&self, file_name: &str)
👎Deprecated: Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).load_state_from_ini_file(...).
pub fn load_state_from_ini_file(&self, file_name: &str)
ctx.bind_editor(&editor).load_state_from_ini_file(...).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 UnsafeUnpin 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