struct
ItemMeta
pub struct ItemMeta {
pub child_index: usize,
pub path: Vec<usize>,
pub label: Option<String>,
pub events: Vec<EventHandler>,
}Per-item metadata kept alongside shapes/objects (same order).
Fields
child_index
pub child_index: usizeIndex of the item's element within the surface's children (for nested 3D groups, the top-level group's index).
path
pub path: Vec<usize>Path from the surface to the item's element ([child_index] unless it sits inside groups).
Methods
new
pub fn new(child_index: usize) -> ItemMetaMetadata for the scene item made from child child_index of its surface, with no label, events or bounds yet.
interactive
pub fn interactive(&self) -> boolWhether the item responds to clicks (and so should be focusable).