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§
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 caret_height(&self) -> CaretHeight
fn caret_height(&self) -> CaretHeight
Reads block caret height.
Sourcefn set_caret_height(&mut self, height: CaretHeight)
fn set_caret_height(&mut self, height: CaretHeight)
Sets block caret height and refreshes windows. Defaults to Line.
Sourcefn inactive_caret(&self) -> InactiveCaret
fn inactive_caret(&self) -> InactiveCaret
Reads what a block caret paints as in an inactive window.
Sourcefn set_inactive_caret(&mut self, inactive: InactiveCaret)
fn set_inactive_caret(&mut self, inactive: InactiveCaret)
Sets it and refreshes windows. Defaults to Hollow.
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.
Reads the menu indent step.
Sets how far each crate::menu::Item::indented level moves a row in,
and refreshes windows. Defaults to 12px.
The compact menu height, in rows. Defaults to 12.
Reads the menu panel widths.
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".