FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextSelectorLayer

    struct · ferroui-controls · v0.5.0

    struct TextSelectorLayer
    

    The surface that hosts the text selection handles.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TextSelectorLayer>
    

    Returns a strong reference to this object.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    available_size

    fn available_size(self: &Self) -> Size
    

    The size the layer was last arranged with.

    Source

    get_text_selector_layer

    fn get_text_selector_layer(visual: &Visual) -> Option<Ref<TextSelectorLayer>>
    

    Retrieves the text selector layer associated with the specified visual, if any.

    Source

    add

    fn add(self: &Self, control: impl IntoRef<Control>)
    

    Adds a control to the layer.

    Source

    remove

    fn remove(self: &Self, control: impl IntoRef<Control>)
    

    Removes a control from the layer.

    Source

    Trait implementations

    Availability

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