pub struct InputTheme {Show 13 fields
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub border: Option<Rgba>,
pub placeholder: Option<Rgba>,
pub caret: Option<Rgba>,
pub selection: Option<Rgba>,
pub selection_foreground: Option<Rgba>,
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
pub radius: Option<f32>,
pub border_width: Option<f32>,
pub font: Option<FontSpec>,
}Expand description
Single-line and multi-line text input fields.
Fields§
§background: Option<Rgba>Input field background fill.
foreground: Option<Rgba>Typed text color.
border: Option<Rgba>Input field border color.
placeholder: Option<Rgba>Placeholder text color.
caret: Option<Rgba>Text cursor (caret) color.
selection: Option<Rgba>Text selection highlight color.
selection_foreground: Option<Rgba>Text color inside the selection highlight.
min_height: Option<f32>Minimum field height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside the field.
padding_vertical: Option<f32>Vertical padding inside the field.
radius: Option<f32>Corner radius in logical pixels.
border_width: Option<f32>Border stroke width in logical pixels.
font: Option<FontSpec>Input text font specification.
Implementations§
Source§impl InputTheme
impl InputTheme
Trait Implementations§
Source§impl Clone for InputTheme
impl Clone for InputTheme
Source§fn clone(&self) -> InputTheme
fn clone(&self) -> InputTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputTheme
impl Debug for InputTheme
Source§impl Default for InputTheme
impl Default for InputTheme
Source§fn default() -> InputTheme
fn default() -> InputTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputThemewhere
InputTheme: Default,
impl<'de> Deserialize<'de> for InputThemewhere
InputTheme: Default,
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
Source§impl PartialEq for InputTheme
impl PartialEq for InputTheme
Source§impl Serialize for InputTheme
impl Serialize for InputTheme
impl StructuralPartialEq for InputTheme
Auto Trait Implementations§
impl Freeze for InputTheme
impl RefUnwindSafe for InputTheme
impl Send for InputTheme
impl Sync for InputTheme
impl Unpin for InputTheme
impl UnsafeUnpin for InputTheme
impl UnwindSafe for InputTheme
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