pub struct InspectNode {Show 15 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,
pub shader: Option<&'static str>,
pub params: Vec<(String, f64)>,
}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.
shader: Option<&'static str>Preset of a Shader node: "waves", "lens_drops" or "custom".
params: Vec<(String, f64)>Numeric shader parameters (amp, wetness, …), the strength and
speed of an effect on the node (effect.strength), how much of it is
drawn (start above 0, end below 1) and its glow or shadow
(shadow: blur times opacity). Empty otherwise.