Skip to main content

Frame

Struct Frame 

Source
pub struct Frame {
Show 18 fields pub hud: Hud, pub status: Status, pub task: Option<Task>, pub panel: Vec<Widget>, pub editing: Option<String>, pub locks_view: bool, pub numeric_input: bool, pub toggled: Vec<String>, pub disabled: Vec<String>, pub lines: Vec<Polyline>, pub marks: Vec<Mark>, pub labels: Vec<Label>, pub meshes: Vec<Mesh>, pub kept: Vec<KeptMesh>, pub regions: Vec<Region>, pub transport: Vec<Widget>, pub card: Option<FloatingCard>, pub animating: bool,
}
Expand description

Everything a bench shows. The host keeps it and asks again only after an event reached the bench, the document changed, the selection changed, or the bench asked (redraw); world-space drawing is projected by the host every frame, so the view moves freely without asking.

Fields§

§hud: Hud§status: Status§task: Option<Task>

An open task: the right panel shows panel under it.

§panel: Vec<Widget>§editing: Option<String>

The feature whose edit session is open.

§locks_view: bool

While editing, the view stays square to its plane.

§numeric_input: bool

Bare digits go to the bench (a length being typed).

§toggled: Vec<String>

Check and action tools that draw pressed.

§disabled: Vec<String>

Tools that draw disabled.

§lines: Vec<Polyline>§marks: Vec<Mark>§labels: Vec<Label>§meshes: Vec<Mesh>§kept: Vec<KeptMesh>

Meshes the package keeps (host::mesh_create), drawn by handle: a large mesh crosses once and is then updated in part.

§regions: Vec<Region>

Flat regions the host fills, and hatches where asked.

§transport: Vec<Widget>

A strip under the view, its widgets in a row, while the bench is active: a transport bar’s timeline, buttons and clock. Its events come with PanelSlot::Transport.

§card: Option<FloatingCard>

A card over the view beside what it edits, while the bench is active: a quick edit of a value or two. Its events come with PanelSlot::Card.

§animating: bool

Something in it moves: while set and the bench is active, the host asks for the frame again every frame, at the display’s rate, rather than waiting for an event.

Trait Implementations§

Source§

impl Clone for Frame

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 Frame

Source§

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

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

impl Default for Frame

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Frame

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Frame

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 Serialize for Frame

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Frame

Auto Trait Implementations§

§

impl Forget for Frame

§

impl Freeze for Frame

§

impl Move for Frame

§

impl RefUnwindSafe for Frame

§

impl Send for Frame

§

impl Sync for Frame

§

impl Unpin for Frame

§

impl UnsafeUnpin for Frame

§

impl UnwindSafe for Frame

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<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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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