pub struct TextAreaStyle {
pub text: Option<Color>,
pub placeholder: Option<Color>,
pub background: Option<Color>,
pub border: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<f32>,
pub font_size: Option<f32>,
pub font_weight: Option<u16>,
pub line_height: Option<f32>,
pub current_line: Option<Color>,
}Fields§
§text: Option<Color>§placeholder: Option<Color>§background: Option<Color>§border: Option<Color>§border_width: Option<f32>§radius: Option<f32>§font_size: Option<f32>§font_weight: Option<u16>§line_height: Option<f32>§current_line: Option<Color>Implementations§
Source§impl TextAreaStyle
impl TextAreaStyle
pub const fn new() -> Self
pub const fn text(self, color: Color) -> Self
pub const fn placeholder(self, color: Color) -> Self
pub const fn background(self, color: Color) -> Self
pub const fn border(self, color: Color) -> Self
pub const fn border_width(self, width: f32) -> Self
pub const fn radius(self, radius: f32) -> Self
pub const fn font_size(self, size: f32) -> Self
pub const fn font_weight(self, weight: u16) -> Self
pub const fn line_height(self, factor: f32) -> Self
pub const fn current_line(self, color: Color) -> Self
Trait Implementations§
Source§impl Clone for TextAreaStyle
impl Clone for TextAreaStyle
impl Copy for TextAreaStyle
Source§impl Debug for TextAreaStyle
impl Debug for TextAreaStyle
Source§impl Default for TextAreaStyle
impl Default for TextAreaStyle
Source§impl PartialEq for TextAreaStyle
impl PartialEq for TextAreaStyle
impl StructuralPartialEq for TextAreaStyle
Auto Trait Implementations§
impl Freeze for TextAreaStyle
impl RefUnwindSafe for TextAreaStyle
impl Send for TextAreaStyle
impl Sync for TextAreaStyle
impl Unpin for TextAreaStyle
impl UnsafeUnpin for TextAreaStyle
impl UnwindSafe for TextAreaStyle
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