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() -> TextAreaStyle
pub const fn text(self, color: Color) -> TextAreaStyle
pub const fn placeholder(self, color: Color) -> TextAreaStyle
pub const fn background(self, color: Color) -> TextAreaStyle
pub const fn border(self, color: Color) -> TextAreaStyle
pub const fn border_width(self, width: f32) -> TextAreaStyle
pub const fn radius(self, radius: f32) -> TextAreaStyle
pub const fn font_size(self, size: f32) -> TextAreaStyle
pub const fn font_weight(self, weight: u16) -> TextAreaStyle
pub const fn line_height(self, factor: f32) -> TextAreaStyle
pub const fn current_line(self, color: Color) -> TextAreaStyle
Trait Implementations§
Source§impl Clone for TextAreaStyle
impl Clone for TextAreaStyle
Source§fn clone(&self) -> TextAreaStyle
fn clone(&self) -> TextAreaStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextAreaStyle
Source§impl Debug for TextAreaStyle
impl Debug for TextAreaStyle
Source§impl Default for TextAreaStyle
impl Default for TextAreaStyle
Source§fn default() -> TextAreaStyle
fn default() -> TextAreaStyle
Returns the “default value” for a type. Read more
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