FerroView
struct · ferroui-ios · v0.5.0
struct FerroView
Members
newis_driving_texttext_input_respondermarked_texttop_levelcontentset_contentdisposeframes_presentedframes_begunpending_layout
new
fn new(mtm: MainThreadMarker) -> Retained<Self>
Creates a view with a top-level of its own, ready for content.
Panics
Panics when the platform was not initialized (use_ios).
is_driving_text
fn is_driving_text(self: &Self) -> bool
Whether a text input responder of this view is the first responder: whether the keyboard writes into a client of this view.
text_input_responder
fn text_input_responder(self: &Self) -> Option<Retained<UIResponder>>
The responder UIKit sends the text of the keyboard to, while a
client of this view has the text input: an object that implements
UITextInput. An addition of the port, for an application that
tests itself.
marked_text
fn marked_text(self: &Self) -> Option<String>
The marked text of the text input responder of this view. An addition of the port, for an application that tests itself.
top_level
fn top_level(self: &Self) -> Ref<TopLevel>
The top-level of the view.
content
fn content(self: &Self) -> Option<Ref<Control>>
The content of the view.
Panics
Panics when the content of the top-level is not a control.
set_content
fn set_content(self: &Self, value: Option<Ref<Control>>)
Sets the content of the view.
dispose
fn dispose(self: &Self)
Releases the top-level of the view.
frames_presented
fn frames_presented(self: &Self) -> u64
The number of frames that were presented on the layer of the view. An addition of the port, for an application that tests itself.
frames_begun
fn frames_begun(self: &Self) -> u64
The number of frames that were begun on the layer of the view (a frame that was begun and not presented was not finished by the renderer). An addition of the port, for diagnostics.
pending_layout
fn pending_layout(self: &Self) -> (PixelSize, f64)
The layout the next frame is drawn for: the size in pixels and the scaling. An addition of the port, for diagnostics.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyClassDefaultsAutoreleaseSafeMainThreadOnlyRefEncodeMessageDerefAsRef<FerroView>AsRef<UIView>Borrow<UIView>AsRef<AnyObject>Borrow<AnyObject>ClassTypeDefinedClassDowncastTargetNSObjectProtocol
Availability
Extracted for aarch64-apple-ios. Cargo features are listed in the crate index.