pub enum WidgetRole {
Tabs,
Dropdown,
Menu,
DatePicker,
TimePicker,
Tooltip,
}Expand description
A widget tag that the parser replaces with plain boxes - see
Attributes::widget.
These seven tags never reach the IR under their own name: the parser expands each into the rows, buttons and gates that draw it, because the runtime has no widget layer below the box layer. The expansion is lossy in one direction only, and this is what records the loss, so a surface with a widget of its own to offer can rebuild the authored one instead of drawing the boxes.
Variants§
Tabs
<tabs> - a strip of buttons over one panel per tab.
Dropdown
<dropdown> - a header button over a panel of options.
Menu
<menu> - a panel of items shown while its signal is set.
DatePicker
<date-picker> - a text entry holding a date.
TimePicker
<time-picker> - a text entry holding a time of day.
Tooltip
<tooltip> - text shown beside whatever it wraps. The marker lands
on the wrapped element, which is what survives the expansion.
Trait Implementations§
Source§impl Clone for WidgetRole
impl Clone for WidgetRole
Source§fn clone(&self) -> WidgetRole
fn clone(&self) -> WidgetRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WidgetRole
impl Debug for WidgetRole
Source§impl<'de> Deserialize<'de> for WidgetRole
impl<'de> Deserialize<'de> for WidgetRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WidgetRole
impl PartialEq for WidgetRole
Source§fn eq(&self, other: &WidgetRole) -> bool
fn eq(&self, other: &WidgetRole) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WidgetRole
impl Serialize for WidgetRole
impl Copy for WidgetRole
impl Eq for WidgetRole
impl StructuralPartialEq for WidgetRole
Auto Trait Implementations§
impl Freeze for WidgetRole
impl RefUnwindSafe for WidgetRole
impl Send for WidgetRole
impl Sync for WidgetRole
impl Unpin for WidgetRole
impl UnsafeUnpin for WidgetRole
impl UnwindSafe for WidgetRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.