pub struct RadiantDocumentNode<N: RadiantNode> {
pub counter: u64,
pub artboards: Vec<RadiantGroupNode<N>>,
pub active_artboard_id: u64,
pub selected_node_id: Option<u64>,
}
Fields§
§counter: u64
§artboards: Vec<RadiantGroupNode<N>>
§active_artboard_id: u64
§selected_node_id: Option<u64>
Implementations§
Source§impl<N: RadiantNode> RadiantDocumentNode<N>
impl<N: RadiantNode> RadiantDocumentNode<N>
pub fn new() -> Self
pub fn add_artboard(&mut self)
pub fn add(&mut self, node: N)
pub fn set_active_artboard(&mut self, id: u64)
pub fn get_active_artboard(&self) -> Option<&RadiantGroupNode<N>>
pub fn select(&mut self, id: Option<u64>)
pub fn get_node(&self, id: u64) -> Option<&N>
pub fn get_node_mut(&mut self, id: u64) -> Option<&mut N>
Trait Implementations§
Source§impl<N: Clone + RadiantNode> Clone for RadiantDocumentNode<N>
impl<N: Clone + RadiantNode> Clone for RadiantDocumentNode<N>
Source§fn clone(&self) -> RadiantDocumentNode<N>
fn clone(&self) -> RadiantDocumentNode<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<N: Debug + RadiantNode> Debug for RadiantDocumentNode<N>
impl<N: Debug + RadiantNode> Debug for RadiantDocumentNode<N>
Source§impl<'de, N> Deserialize<'de> for RadiantDocumentNode<N>where
N: Deserialize<'de> + RadiantNode,
impl<'de, N> Deserialize<'de> for RadiantDocumentNode<N>where
N: Deserialize<'de> + RadiantNode,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<N: RadiantNode> RadiantComponentProvider for RadiantDocumentNode<N>
impl<N: RadiantNode> RadiantComponentProvider for RadiantDocumentNode<N>
fn get_component<T: RadiantComponent + 'static>(&self) -> Option<&T>
fn get_component_mut<T: RadiantComponent + 'static>(&mut self) -> Option<&mut T>
Source§impl<N: RadiantNode> RadiantNode for RadiantDocumentNode<N>
impl<N: RadiantNode> RadiantNode for RadiantDocumentNode<N>
Source§impl<N: RadiantNode> RadiantTessellatable for RadiantDocumentNode<N>
impl<N: RadiantNode> RadiantTessellatable for RadiantDocumentNode<N>
fn attach(&mut self, screen_descriptor: &ScreenDescriptor)
fn detach(&mut self)
fn set_needs_tessellation(&mut self)
fn tessellate( &mut self, selection: bool, screen_descriptor: &ScreenDescriptor, fonts_manager: &Fonts, ) -> Vec<ClippedPrimitive>
Source§impl<N> Serialize for RadiantDocumentNode<N>where
N: Serialize + RadiantNode,
impl<N> Serialize for RadiantDocumentNode<N>where
N: Serialize + RadiantNode,
Auto Trait Implementations§
impl<N> Freeze for RadiantDocumentNode<N>
impl<N> RefUnwindSafe for RadiantDocumentNode<N>where
N: RefUnwindSafe,
impl<N> Send for RadiantDocumentNode<N>where
N: Send,
impl<N> Sync for RadiantDocumentNode<N>where
N: Sync,
impl<N> Unpin for RadiantDocumentNode<N>
impl<N> UnwindSafe for RadiantDocumentNode<N>where
N: RefUnwindSafe,
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