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: will be removed in 0.11.0. Use ctx.try_create_editor_context().
pub fn create() -> Self
Deprecated: will be removed in 0.11.0. Use ctx.create_editor_context().
pub fn set_current(&self)
Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).set_current().
pub fn get_panning(&self) -> [f32; 2]
Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).get_panning().
pub fn reset_panning(&self, pos: [f32; 2])
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: 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
Deprecated: will be removed in 0.11.0. Use 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)
Deprecated: will be removed in 0.11.0. Use 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)
Deprecated: will be removed in 0.11.0. Use 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)
Deprecated: will be removed in 0.11.0. Use ctx.bind_editor(&editor).load_state_from_ini_file(...).
Load this editor’s state from an INI file