#[non_exhaustive]pub struct ResolvedInputTheme {Show 13 fields
pub background_color: Rgba,
pub placeholder_color: Rgba,
pub caret_color: Rgba,
pub selection_background: Rgba,
pub selection_text_color: Rgba,
pub min_height: f32,
pub disabled_opacity: f32,
pub disabled_text_color: Rgba,
pub hover_border_color: Option<Rgba>,
pub focus_border_color: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedBorderSpec,
}Expand description
Single-line and multi-line text input fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background_color: RgbaInput field background fill.
placeholder_color: RgbaPlaceholder text color.
caret_color: RgbaText cursor (caret) color.
selection_background: RgbaText selection highlight color.
selection_text_color: RgbaText color inside the selection highlight.
min_height: f32Minimum field height in logical pixels.
disabled_opacity: f32Opacity multiplier when disabled (0.0-1.0).
disabled_text_color: RgbaInput text color when disabled.
hover_border_color: Option<Rgba>Border color when the input is hovered.
focus_border_color: Option<Rgba>Border color when the input has focus.
disabled_background: Option<Rgba>Input background when disabled.
font: ResolvedFontSpecInput text font specification.
border: ResolvedBorderSpecInput border specification.
Trait Implementations§
Source§impl Clone for ResolvedInputTheme
impl Clone for ResolvedInputTheme
Source§fn clone(&self) -> ResolvedInputTheme
fn clone(&self) -> ResolvedInputTheme
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 ResolvedInputTheme
impl Debug for ResolvedInputTheme
Source§impl<'de> Deserialize<'de> for ResolvedInputTheme
impl<'de> Deserialize<'de> for ResolvedInputTheme
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 ResolvedInputTheme
impl PartialEq for ResolvedInputTheme
Source§impl Serialize for ResolvedInputTheme
impl Serialize for ResolvedInputTheme
impl StructuralPartialEq for ResolvedInputTheme
Auto Trait Implementations§
impl Freeze for ResolvedInputTheme
impl RefUnwindSafe for ResolvedInputTheme
impl Send for ResolvedInputTheme
impl Sync for ResolvedInputTheme
impl Unpin for ResolvedInputTheme
impl UnsafeUnpin for ResolvedInputTheme
impl UnwindSafe for ResolvedInputTheme
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