pub struct StyleState {
pub base: Style,
pub text: Style,
pub line_number: Style,
pub cursor_line_number: Style,
pub cursor_line: Style,
pub end_of_buffer: Style,
pub placeholder: Style,
pub prompt: Style,
}Expand description
StyleState that will be applied to the text area.
StyleState can be applied to focused and unfocused states to change the styles depending on the focus state.
Fields§
§base: StyleThe base style.
text: StyleThe text style.
line_number: StyleThe line number style.
cursor_line_number: StyleThe cursor line number style.
cursor_line: StyleThe cursor line style.
end_of_buffer: StyleThe end-of-buffer style.
placeholder: StyleThe placeholder style.
prompt: StyleThe prompt style.
Trait Implementations§
Source§impl Clone for StyleState
impl Clone for StyleState
Source§fn clone(&self) -> StyleState
fn clone(&self) -> StyleState
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 moreAuto Trait Implementations§
impl Freeze for StyleState
impl RefUnwindSafe for StyleState
impl Send for StyleState
impl Sync for StyleState
impl Unpin for StyleState
impl UnsafeUnpin for StyleState
impl UnwindSafe for StyleState
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