Skip to main content

AppExt

Trait AppExt 

Source
pub trait AppExt {
Show 20 methods // 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 caret_height(&self) -> CaretHeight; fn set_caret_height(&mut self, height: CaretHeight); fn inactive_caret(&self) -> InactiveCaret; fn set_inactive_caret(&mut self, inactive: InactiveCaret); 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]>>); fn menu_indent(&self) -> MenuIndent; fn set_menu_indent(&mut self, indent: MenuIndent); fn menu_height(&self) -> MenuHeight; fn set_menu_height(&mut self, height: MenuHeight); fn menu_width(&self) -> MenuWidth; fn set_menu_width(&mut self, width: MenuWidth);
}
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 caret_height(&self) -> CaretHeight

Reads block caret height.

Source

fn set_caret_height(&mut self, height: CaretHeight)

Sets block caret height and refreshes windows. Defaults to Line.

Source

fn inactive_caret(&self) -> InactiveCaret

Reads what a block caret paints as in an inactive window.

Source

fn set_inactive_caret(&mut self, inactive: InactiveCaret)

Sets it and refreshes windows. Defaults to Hollow.

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.

Source

fn menu_indent(&self) -> MenuIndent

Reads the menu indent step.

Source

fn set_menu_indent(&mut self, indent: MenuIndent)

Sets how far each crate::menu::Item::indented level moves a row in, and refreshes windows. Defaults to 12px.

Source

fn menu_height(&self) -> MenuHeight

The compact menu height, in rows. Defaults to 12.

Source

fn set_menu_height(&mut self, height: MenuHeight)

Source

fn menu_width(&self) -> MenuWidth

Reads the menu panel widths.

Source

fn set_menu_width(&mut self, width: MenuWidth)

Sets how wide menu panels sit, and refreshes windows. Defaults to 180px at least, and exactly 280px for a panel with a described row.

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§