FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBoxAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct TextBoxAutomationPeer
    

    An automation peer which represents a TextBox.

    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<TextBoxAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    owner_property_changed

    fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
    

    Called when a property of the owning text box has changed.

    Source

    construct

    fn construct(owner: &TextBox) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &TextBox) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<TextBox>
    

    Gets the owning text box.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Whether the text box is read-only (the value provider contract).

    Source

    value

    fn value(self: &Self) -> Option<String>
    

    The text of an ordinary text box; password fields never disclose a value. This guard also covers provider handles retained before entering password mode.

    Source

    set_value

    fn set_value(self: &Self, value: Option<&str>) -> Result<(), ElementNotEnabledError>
    

    Sets the text of the text box (the value provider contract).

    Source

    Trait implementations

    Availability

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