TextBoxAutomationPeer
struct · ferroui-controls · v0.5.0
struct TextBoxAutomationPeer
An automation peer which represents a TextBox.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TextBoxAutomationPeer>
Returns a strong reference to this object.
owner_property_changed
fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
Called when a property of the owning text box has changed.
construct
fn construct(owner: &TextBox) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &TextBox) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<TextBox>
Gets the owning text box.
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the text box is read-only (the value provider contract).
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.
set_value
fn set_value(self: &Self, value: Option<&str>) -> Result<(), ElementNotEnabledError>
Sets the text of the text box (the value provider contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtTextBoxAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<TextBoxAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImplTextBoxAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.