pub struct ViewControllerState { /* private fields */ }Expand description
The state of the default view controller: what the view of the port holds of it. The view controller object of UIKit forwards to it.
Implementations§
Source§impl ViewControllerState
impl ViewControllerState
Sourcepub fn new(needs_status_bar_appearance_update: Box<dyn Fn()>) -> Rc<Self>
pub fn new(needs_status_bar_appearance_update: Box<dyn Fn()>) -> Rc<Self>
Creates the state; needs_status_bar_appearance_update is called
when a property of the status bar was set.
Sourcepub fn preferred_status_bar_style_override(&self) -> Option<StatusBarStyle>
pub fn preferred_status_bar_style_override(&self) -> Option<StatusBarStyle>
The style that was set, if one was.
Whether the status bar is hidden; the first call takes the answer of
the system (base) and keeps it.
Sourcepub fn view_did_layout_subviews(&self, size: Size, frame: Rect)
pub fn view_did_layout_subviews(&self, size: Size, frame: Rect)
Called when the view was laid out, with its size and the frame of its safe area layout guide.
Trait Implementations§
Source§impl IFerroViewController for ViewControllerState
impl IFerroViewController for ViewControllerState
Source§fn preferred_status_bar_style(&self) -> StatusBarStyle
fn preferred_status_bar_style(&self) -> StatusBarStyle
The preferred style of the status bar.
Source§fn set_preferred_status_bar_style(&self, value: StatusBarStyle)
fn set_preferred_status_bar_style(&self, value: StatusBarStyle)
Sets the preferred style of the status bar.
Whether the status bar is hidden.
Hides or shows the status bar.
Source§fn safe_area_padding(&self) -> Thickness
fn safe_area_padding(&self) -> Thickness
The padding that keeps content out of the areas the system covers.
Source§fn safe_area_padding_changed(
&self,
handler: Rc<dyn Fn()>,
) -> Rc<dyn IDisposable>
fn safe_area_padding_changed( &self, handler: Rc<dyn Fn()>, ) -> Rc<dyn IDisposable>
The safe area padding changed.
Auto Trait Implementations§
impl !Freeze for ViewControllerState
impl !RefUnwindSafe for ViewControllerState
impl !Send for ViewControllerState
impl !Sync for ViewControllerState
impl !UnwindSafe for ViewControllerState
impl Unpin for ViewControllerState
impl UnsafeUnpin for ViewControllerState
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more