FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroView

    struct · ferroui-ios · v0.5.0

    struct FerroView
    

    View source

    Members

    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).

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    top_level

    fn top_level(self: &Self) -> Ref<TopLevel>
    

    The top-level of the view.

    Source

    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.

    Source

    set_content

    fn set_content(self: &Self, value: Option<Ref<Control>>)
    

    Sets the content of the view.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the top-level of the view.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ClassDefaults
    • AutoreleaseSafe
    • MainThreadOnly
    • RefEncode
    • Message
    • Deref
    • AsRef<FerroView>
    • AsRef<UIView>
    • Borrow<UIView>
    • AsRef<AnyObject>
    • Borrow<AnyObject>
    • ClassType
    • DefinedClass
    • DowncastTarget
    • NSObjectProtocol

    Availability

    Extracted for aarch64-apple-ios. Cargo features are listed in the crate index.