pub struct ElementInfo {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub kind: String,
pub node_type: String,
pub style: ElementStyleInfo,
pub children: Vec<ElementInfo>,
pub source_location: Option<SourceLocation>,
pub text_content: Option<String>,
pub href: Option<String>,
pub bookmark: Option<String>,
}Expand description
Layout metadata for a single positioned element (hierarchical).
Fields§
§x: f64§y: f64§width: f64§height: f64§kind: StringDrawCommand-based kind (Rect, Text, Image, etc.) for backward compat.
node_type: StringLogical node type (View, Text, Image, TableRow, etc.).
style: ElementStyleInfoResolved style snapshot for the inspector panel.
children: Vec<ElementInfo>Child elements (preserves hierarchy).
source_location: Option<SourceLocation>Source code location for click-to-source.
text_content: Option<String>Text content extracted from TextLine draw commands (for component tree).
href: Option<String>Optional hyperlink URL.
bookmark: Option<String>Optional bookmark title.
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
Source§fn clone(&self) -> ElementInfo
fn clone(&self) -> ElementInfo
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 Debug for ElementInfo
impl Debug for ElementInfo
Auto Trait Implementations§
impl Freeze for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnsafeUnpin for ElementInfo
impl UnwindSafe for ElementInfo
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