ComboBoxAutomationPeer
struct · ferroui-controls · v0.5.0
struct ComboBoxAutomationPeer
An automation peer which represents a ComboBox.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ComboBoxAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &ComboBox) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &ComboBox) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<ComboBox>
Gets the owning combo box.
expand_collapse_state
fn expand_collapse_state(self: &Self) -> ExpandCollapseState
Gets the state, expanded or collapsed, of the drop-down of the combo box (the expand/collapse provider contract).
shows_menu
fn shows_menu(self: &Self) -> bool
Gets a value indicating whether expanding the combo box shows a menu of items (the expand/collapse provider contract).
collapse
fn collapse(self: &Self) -> Result<(), AutomationError>
Closes the drop-down (the expand/collapse provider contract).
expand
fn expand(self: &Self) -> Result<(), AutomationError>
Opens the drop-down (the expand/collapse provider contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtItemsControlAutomationPeerImplExtSelectingItemsControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ComboBoxAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplItemsControlAutomationPeerImplAutomationPeerImplSelectingItemsControlAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.