AutoCompleteBoxAutomationPeer
struct · ferroui-controls · v0.5.0
struct AutoCompleteBoxAutomationPeer
An automation peer which represents an AutoCompleteBox.
Members
TYPEto_refconstructnewownerexpand_collapse_stateshows_menucollapseexpandis_read_onlyvalueset_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AutoCompleteBoxAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &AutoCompleteBox) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &AutoCompleteBox) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<AutoCompleteBox>
Gets the owning auto-complete box.
expand_collapse_state
fn expand_collapse_state(self: &Self) -> ExpandCollapseState
The state, expanded or collapsed, of the drop-down (the expand and collapse provider contract).
shows_menu
fn shows_menu(self: &Self) -> bool
Whether expanding the element shows a menu (the expand and collapse provider contract).
collapse
fn collapse(self: &Self) -> Result<(), AutomationError>
Closes the drop-down (the expand and collapse provider contract).
expand
fn expand(self: &Self) -> Result<(), AutomationError>
Opens the drop-down (the expand and collapse provider contract).
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the value is read-only (the value provider contract).
value
fn value(self: &Self) -> Option<String>
The text of the auto-complete box.
set_value
fn set_value(self: &Self, value: Option<&str>)
Sets the text of the auto-complete box unless it is the text already.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<AutoCompleteBoxAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.