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