Enum gazpatcho::config::Widget [−][src]
Widgets are input dialogs shown on a node.
Each widget must have a unique key
within the node it’s registered to.
This key
is then used to read values recorded by the user.
Variants
Please use TextBox instead
Multiline input provides text box for the user to type into and record a
String
.
Fields of MultilineInput
key: String
Please use TextBox instead
capacity: usize
Please use TextBox instead
Maximum capacity that the widget will allow.
size: [f32; 2]
Please use TextBox instead
Width and height of the widget shown in a node. The width will be treated as a minimal weight that may be increased in case there is another widget that is wider.
TextBox provides text input for the user to type into and record a
String
.
Fields of TextBox
key: String
capacity: usize
Maximum capacity that the widget will allow.
size: [f32; 2]
Width and height of the widget shown in a node. The width will be treated as a minimal weight that may be increased in case there is another widget that is wider.
read_only: bool
Select whether the content of the textbox can be edited through the UI.
Slider is a drag and drop dialog allowing users to dial-in a f32
value
within given borders.
Fields of Slider
Trigger is nothing but a simple button. When clicked, it sets value of
given key
to true
. When released, it turns back to false
.
Switch is nothing but a simple button. When clicked, it sets value of
given key
to true
. When clicked again, it turns back to false
.
Drop down menu allows user to select one of the available values.
Fields of DropDown
Canvas is a visualization widget that can be fed with coordinates of to-be-enabled pixels.
Fields of Canvas
Auto Trait Implementations
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl UnwindSafe for Widget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,