pub struct TextEditStyle {
pub atom_layout: AtomLayoutStyle,
pub hint_text_color: Color32,
pub prefix_suffix_color: Color32,
}Available on crate feature
egui only.Expand description
Dedicated text edit style
Fields§
§atom_layout: AtomLayoutStyleStyle of the field’s atom layout.
AtomLayoutStyle::frame surrounds the text, including its padding, and
AtomLayoutStyle::text_style is the text being edited.
hint_text_color: Color32The color of the hint text shown while the buffer is empty.
prefix_suffix_color: Color32The default color of the prefix and suffix atoms.
Trait Implementations§
Source§impl Clone for TextEditStyle
impl Clone for TextEditStyle
Source§fn clone(&self) -> TextEditStyle
fn clone(&self) -> TextEditStyle
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 moreSource§impl Debug for TextEditStyle
impl Debug for TextEditStyle
impl WidgetStyle for TextEditStyle
Auto Trait Implementations§
impl Forget for TextEditStyle
impl Freeze for TextEditStyle
impl Move for TextEditStyle
impl RefUnwindSafe for TextEditStyle
impl Send for TextEditStyle
impl Sync for TextEditStyle
impl Unpin for TextEditStyle
impl UnsafeUnpin for TextEditStyle
impl UnwindSafe for TextEditStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more