pub struct CanvasNode {
pub main_id: i64,
pub kind: i64,
pub next: i64,
pub first_child: i64,
pub selected: i64,
pub spread: bool,
pub link_path: Option<String>,
}Expand description
One CanvasNode row.
Fields§
§main_id: i64MainId of the row.
kind: i64§next: i64MainId of the next page (NextIndex, 0 ends the list).
first_child: i64MainId of the first page (FirstChildIndex, root node only).
selected: i64MainId of the page selected in CSP (SelectedIndex, root node only).
spread: boolThe page is a two-page spread (PageFlag bit 0).
link_path: Option<String>LinkPath as stored (“.:page0001.clip”); see CanvasNode::relative_path.
Implementations§
Source§impl CanvasNode
impl CanvasNode
Sourcepub fn relative_path(&self) -> Option<PathBuf>
pub fn relative_path(&self) -> Option<PathBuf>
The page file path relative to the .cmc folder (“page0001.clip”).
Trait Implementations§
Source§impl Clone for CanvasNode
impl Clone for CanvasNode
Source§impl Debug for CanvasNode
impl Debug for CanvasNode
Source§impl PartialEq for CanvasNode
impl PartialEq for CanvasNode
Source§impl Serialize for CanvasNode
impl Serialize for CanvasNode
impl StructuralPartialEq for CanvasNode
Auto Trait Implementations§
impl Freeze for CanvasNode
impl RefUnwindSafe for CanvasNode
impl Send for CanvasNode
impl Sync for CanvasNode
impl Unpin for CanvasNode
impl UnsafeUnpin for CanvasNode
impl UnwindSafe for CanvasNode
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