Skip to main content

InspectNode

Struct InspectNode 

Source
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: u32

Node index.

§parent: Option<u32>

Parent index; None for the root.

§kind: &'static str

Node 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: f64

0 (invisible) to 1.

§order: u32

Paint order among drawn nodes; u32::MAX if the node is not drawn.

§text: Option<String>

Text of a Txt or Code node.

§fill: Color

Fill color.

§text_overflow: f64

How 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: bool

Seen 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.

Trait Implementations§

Source§

impl Clone for InspectNode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InspectNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for InspectNode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InspectNode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V