pub enum TextboxStyle {
Note,
Guide,
}Expand description
What a text box is for.
Semantic rather than typographic on purpose. A client says what kind of thing it is writing, and the renderer decides what that looks like, the same split that keeps colour out of clients’ hands. Raw font sizes on the wire would make every client a typographer and every renderer a chance to drift.
Variants§
Note
An explanation read alongside something else. Quiet, the default.
Guide
An instruction read at a glance by somebody about to act. Larger and centred, because it competes with everything else on a screen mid-action.
Trait Implementations§
Source§impl Clone for TextboxStyle
impl Clone for TextboxStyle
impl Copy for TextboxStyle
Source§impl Debug for TextboxStyle
impl Debug for TextboxStyle
Source§impl Default for TextboxStyle
impl Default for TextboxStyle
Source§impl<'de> Deserialize<'de> for TextboxStyle
impl<'de> Deserialize<'de> for TextboxStyle
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextboxStyle
Source§impl PartialEq for TextboxStyle
impl PartialEq for TextboxStyle
Source§impl Serialize for TextboxStyle
impl Serialize for TextboxStyle
impl StructuralPartialEq for TextboxStyle
Auto Trait Implementations§
impl Freeze for TextboxStyle
impl RefUnwindSafe for TextboxStyle
impl Send for TextboxStyle
impl Sync for TextboxStyle
impl Unpin for TextboxStyle
impl UnsafeUnpin for TextboxStyle
impl UnwindSafe for TextboxStyle
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