pub struct InspectNode {Show 13 fields
pub id: u32,
pub parent: Option<u32>,
pub kind: &'static str,
pub name: String,
pub source: Option<String>,
pub bounds: [f64; 4],
pub opacity: f64,
pub order: u32,
pub text: Option<String>,
pub fill: Color,
pub text_overflow: f64,
pub parent_kind: Option<&'static str>,
pub in_camera: bool,
}Expand description
A node as oxframe inspect and the visual linter see it.
Fields§
§id: u32Node index.
parent: Option<u32>Parent index; None for the root.
kind: &'static strNode type, e.g. "Rect".
name: String.name(..), or the add call site, or Kind#id.
source: Option<String>file:line of the add call, when it was recorded.
bounds: [f64; 4]Axis-aligned bounds in scene coordinates: min x, min y, max x, max y. The origin is the center of the frame, y points down.
opacity: f640 (invisible) to 1.
order: u32Paint order among drawn nodes; u32::MAX if the node is not drawn.
text: Option<String>Text of a Txt or Code node.
fill: ColorFill color.
text_overflow: f64How many pixels the text is wider than its max_width (0 if it fits
or max_width is unset).
parent_kind: Option<&'static str>Type of the parent, if any.
in_camera: boolSeen through a Camera: leaving the frame is then
usually the camera’s framing, not a layout mistake.
Trait Implementations§
Source§impl Clone for InspectNode
impl Clone for InspectNode
Source§impl Debug for InspectNode
impl Debug for InspectNode
Source§impl PartialEq for InspectNode
impl PartialEq for InspectNode
impl StructuralPartialEq for InspectNode
Auto Trait Implementations§
impl Freeze for InspectNode
impl RefUnwindSafe for InspectNode
impl Send for InspectNode
impl Sync for InspectNode
impl Unpin for InspectNode
impl UnsafeUnpin for InspectNode
impl UnwindSafe for InspectNode
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