IInsetsManager
trait · ferroui-controls · v0.5.0
trait IInsetsManager
Manages the system bars and the safe area of a top-level.
Members
is_system_bar_visibleset_is_system_bar_visibledisplay_edge_to_edge_preferenceset_display_edge_to_edge_preferencedisplays_edge_to_edgesafe_area_paddingsystem_bar_colorset_system_bar_colorsafe_area_changed
is_system_bar_visible
fn is_system_bar_visible(self: &Self) -> Option<bool>
Gets whether the system bars are visible.
set_is_system_bar_visible
fn set_is_system_bar_visible(self: &Self, value: Option<bool>)
Sets whether the system bars are visible.
display_edge_to_edge_preference
fn display_edge_to_edge_preference(self: &Self) -> bool
Gets whether the window draws edge to edge, behind any visible system bars.
set_display_edge_to_edge_preference
fn set_display_edge_to_edge_preference(self: &Self, value: bool)
Sets whether the window draws edge to edge, behind any visible system bars.
displays_edge_to_edge
fn displays_edge_to_edge(self: &Self) -> bool
Gets whether the window is currently displayed edge to edge.
safe_area_padding
fn safe_area_padding(self: &Self) -> Thickness
Gets the current safe area padding.
system_bar_color
fn system_bar_color(self: &Self) -> Option<Color>
Gets the system bar color.
set_system_bar_color
fn set_system_bar_color(self: &Self, value: Option<Color>)
Sets the system bar color.
safe_area_changed
fn safe_area_changed(self: &Self, handler: Rc<dyn Fn(&SafeAreaChangedArgs) -> ()>) -> Rc<dyn IDisposable>
Occurs when the safe area for the current window changes.
Disposing the returned value removes the handler.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.