pub struct DesignerData {
pub pending_revision: bool,
pub root: LiveId,
pub node_map: HashMap<LiveId, OutlineNode>,
pub selected: Option<LiveId>,
pub to_widget: DesignerDataToWidget,
}
Fields§
§pending_revision: bool
§root: LiveId
§node_map: HashMap<LiveId, OutlineNode>
§selected: Option<LiveId>
§to_widget: DesignerDataToWidget
Implementations§
Source§impl DesignerData
impl DesignerData
pub fn get_node_by_path(&self, root: LiveId, path: &str) -> Option<LiveId>
pub fn update_from_live_registry(&mut self, cx: &mut Cx)
pub fn swap_child_refs( &mut self, parent: &WidgetRef, index: usize, index2: usize, )
pub fn find_component_by_ptr(&mut self, find_ptr: LivePtr) -> Option<LiveId>
pub fn find_component_by_widget_ref( &mut self, wref: &WidgetRef, ) -> Option<LiveId>
pub fn construct_path_ids(&self, find_node: LiveId) -> Vec<LiveId>
pub fn path_ids_to_string(&self, path: &[LiveId]) -> String
pub fn path_str_to_path_ids(path: &str) -> Vec<LiveId>
pub fn find_parent(&self, find_node: LiveId) -> Option<LiveId>
pub fn find_file_parent(&mut self, find_node: LiveId) -> Option<LiveId>
pub fn _remove_child(&mut self, find_node: LiveId)
pub fn _find_component_by_path(&self, path: &[LiveId]) -> Option<LiveId>
Trait Implementations§
Source§impl Default for DesignerData
impl Default for DesignerData
Source§fn default() -> DesignerData
fn default() -> DesignerData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DesignerData
impl !RefUnwindSafe for DesignerData
impl !Send for DesignerData
impl !Sync for DesignerData
impl Unpin for DesignerData
impl !UnwindSafe for DesignerData
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