Skip to main content

AppExt

Trait AppExt 

Source
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§

Source

fn caption_style(&self) -> CaptionStyle

Reads the caption button style. Defaults to Rectangular.

Source

fn set_caption_style(&mut self, style: CaptionStyle)

Sets the caption button style and refreshes windows.

Reads caret blink.

Enables blinking or holds carets solid, then refreshes windows.

Source

fn caret_shape(&self) -> CaretShape

Reads caret shape.

Source

fn set_caret_shape(&mut self, shape: CaretShape)

Sets text caret shape and refreshes windows. Defaults to Bar.

Source

fn scrollbar_visibility(&self) -> Visibility

Reads scrollbar visibility.

Source

fn set_scrollbar_visibility(&mut self, value: Visibility)

Sets default scrollbar visibility and refreshes windows.

Source

fn color_swatches(&self) -> Rc<[Swatch]>

Reads the preset color set pickers offer.

Source

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".

Implementations on Foreign Types§

Source§

impl AppExt for App

Implementors§