CalendarAutomationPeer
struct · ferroui-controls · v0.5.0
struct CalendarAutomationPeer
An automation peer which represents a Calendar.
Members
TYPEto_refconstructnewownercan_select_multipleis_selection_requiredget_selectionis_read_onlyvalueset_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CalendarAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &Calendar) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &Calendar) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<Calendar>
Gets the owning calendar.
can_select_multiple
fn can_select_multiple(self: &Self) -> bool
Gets a value that indicates whether more than one day can be selected at a time (the selection provider contract).
is_selection_required
fn is_selection_required(self: &Self) -> bool
Gets a value that indicates whether a day has to be selected (the selection provider contract).
get_selection
fn get_selection(self: &Self) -> Vec<Ref<AutomationPeer>>
Gets the peers of the buttons of the selected days that are displayed (the selection 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 selected dates, formatted with the current culture and joined with its list separator (the value provider contract).
set_value
fn set_value(self: &Self, _value: Option<&str>) -> Result<(), AutomationError>
Not supported: the value of a calendar is read-only (the value provider contract).
Errors
Always AutomationError::NotSupported.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<CalendarAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.