pub trait AppExt {
// Required methods
fn caption_style(&self) -> CaptionStyle;
fn set_caption_style(&mut self, style: CaptionStyle);
fn caret_blink(&self) -> bool;
fn set_caret_blink(&mut self, blink: bool);
fn caret_shape(&self) -> CaretShape;
fn set_caret_shape(&mut self, shape: CaretShape);
fn scrollbar_visibility(&self) -> Visibility;
fn set_scrollbar_visibility(&mut self, value: Visibility);
fn color_swatches(&self) -> Rc<[Swatch]>;
fn set_color_swatches(&mut self, set: impl Into<Rc<[Swatch]>>);
}Expand description
Configuration carried by the application. Import as use ui::AppExt as _;.
Required Methods§
Sourcefn caption_style(&self) -> CaptionStyle
fn caption_style(&self) -> CaptionStyle
Reads the caption button style. Defaults to Rectangular.
Sourcefn set_caption_style(&mut self, style: CaptionStyle)
fn set_caption_style(&mut self, style: CaptionStyle)
Sets the caption button style and refreshes windows.
Sourcefn caret_blink(&self) -> bool
fn caret_blink(&self) -> bool
Reads caret blink.
Sourcefn set_caret_blink(&mut self, blink: bool)
fn set_caret_blink(&mut self, blink: bool)
Enables blinking or holds carets solid, then refreshes windows.
Sourcefn caret_shape(&self) -> CaretShape
fn caret_shape(&self) -> CaretShape
Reads caret shape.
Sourcefn set_caret_shape(&mut self, shape: CaretShape)
fn set_caret_shape(&mut self, shape: CaretShape)
Sets text caret shape and refreshes windows. Defaults to Bar.
Sourcefn scrollbar_visibility(&self) -> Visibility
fn scrollbar_visibility(&self) -> Visibility
Reads scrollbar visibility.
Sourcefn set_scrollbar_visibility(&mut self, value: Visibility)
fn set_scrollbar_visibility(&mut self, value: Visibility)
Sets default scrollbar visibility and refreshes windows.
Sourcefn color_swatches(&self) -> Rc<[Swatch]>
fn color_swatches(&self) -> Rc<[Swatch]>
Reads the preset color set pickers offer.
Sourcefn set_color_swatches(&mut self, set: impl Into<Rc<[Swatch]>>)
fn set_color_swatches(&mut self, set: impl Into<Rc<[Swatch]>>)
Replaces the preset color set and refreshes windows. Defaults to
crate::color::default_swatches.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".