pub struct ThemePreset {
pub name: &'static str,
pub style: StyleSpec,
pub cursor: CursorSpec,
pub control: ControlSpec,
}Expand description
Represents a full visual theme preset.
A ThemePreset bundles together style, cursor, and control settings,
each of which affects the appearance and animation behavior of the output.
Themes can be predefined or user-resolved via name matching.
Fieldsยง
ยงname: &'static strDisplay name of the theme (used for resolution and UI).
style: StyleSpecFont and color settings.
cursor: CursorSpecCursor shape and animation behavior.
control: ControlSpecTyping speed and visual effects.
Implementationsยง
Sourceยงimpl ThemePreset
impl ThemePreset
Sourcepub fn to_cursor(&self) -> CursorSpec
pub fn to_cursor(&self) -> CursorSpec
Clone the cursor component.
Sourcepub fn to_control(&self) -> ControlSpec
pub fn to_control(&self) -> ControlSpec
Clone the control component.
Auto Trait Implementationsยง
impl Freeze for ThemePreset
impl RefUnwindSafe for ThemePreset
impl Send for ThemePreset
impl Sync for ThemePreset
impl Unpin for ThemePreset
impl UnwindSafe for ThemePreset
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