FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CalendarAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct CalendarAutomationPeer
    

    An automation peer which represents a Calendar.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<CalendarAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &Calendar) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &Calendar) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<Calendar>
    

    Gets the owning calendar.

    Source

    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).

    Source

    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).

    Source

    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).

    Source

    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).

    Source

    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).

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.