pub struct PostEditor;Expand description
Post-editor queries (must be called after EndNodeEditor)
Implementations§
Source§impl PostEditor
impl PostEditor
Sourcepub fn save_state_to_ini_string(&self) -> String
pub fn save_state_to_ini_string(&self) -> String
Save current editor 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 editor 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/Load current editor state to/from INI file
pub fn load_state_from_ini_file(&self, file_name: &str)
Sourcepub fn select_node(&self, node_id: i32)
pub fn select_node(&self, node_id: i32)
Selection helpers per id
pub fn clear_node_selection_of(&self, node_id: i32)
pub fn is_node_selected(&self, node_id: i32) -> bool
pub fn select_link(&self, link_id: i32)
pub fn clear_link_selection_of(&self, link_id: i32)
pub fn is_link_selected(&self, link_id: i32) -> bool
pub fn selected_nodes(&self) -> Vec<i32>
pub fn selected_links(&self) -> Vec<i32>
pub fn clear_selection(&self)
pub fn is_link_created(&self) -> Option<LinkCreated>
pub fn is_link_created_with_nodes(&self) -> Option<LinkCreatedEx>
pub fn is_link_destroyed(&self) -> Option<i32>
pub fn is_editor_hovered(&self) -> bool
pub fn hovered_node(&self) -> Option<i32>
pub fn hovered_link(&self) -> Option<i32>
pub fn hovered_pin(&self) -> Option<i32>
pub fn is_attribute_active(&self) -> bool
pub fn any_attribute_active(&self) -> Option<i32>
pub fn is_link_started(&self) -> Option<i32>
pub fn is_link_dropped(&self, including_detached: bool) -> Option<i32>
Auto Trait Implementations§
impl Freeze for PostEditor
impl RefUnwindSafe for PostEditor
impl Send for PostEditor
impl Sync for PostEditor
impl Unpin for PostEditor
impl UnsafeUnpin for PostEditor
impl UnwindSafe for PostEditor
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