pub enum DevToolWidget {
Text {
content: String,
color: [f32; 4],
},
Graph {
data: Vec<f32>,
label: String,
},
Inspector {
properties: Vec<(String, String)>,
},
Button {
label: String,
clicked: bool,
},
}Expand description
Widget primitives rendered by the DevTools dashboard.
Each variant represents a distinct UI element that can be drawn by the rendering backend.
Variants§
Text
A text label with RGBA color.
Fields
Graph
A line graph plotting the given data points.
Inspector
A key-value property inspector.
Button
A clickable button.
Trait Implementations§
Source§impl Clone for DevToolWidget
impl Clone for DevToolWidget
Source§fn clone(&self) -> DevToolWidget
fn clone(&self) -> DevToolWidget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DevToolWidget
impl RefUnwindSafe for DevToolWidget
impl Send for DevToolWidget
impl Sync for DevToolWidget
impl Unpin for DevToolWidget
impl UnsafeUnpin for DevToolWidget
impl UnwindSafe for DevToolWidget
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