ferroui_controls/calendar_date_picker/calendar_date_picker_format.rs
1// (c) Copyright Microsoft Corporation.
2// This source is subject to the Microsoft Public License (Ms-PL).
3// Please see https://go.microsoft.com/fwlink/?LinkID=131993 for details.
4// All other rights reserved.
5//
6// Ported from the Silverlight Toolkit sources as adapted by the upstream
7// project; the license text is in the `NOTICE.md` of this crate.
8
9/// Describes the available formatting options for the date of a
10/// [`CalendarDatePicker`](super::CalendarDatePicker).
11#[repr(i32)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
13pub enum CalendarDatePickerFormat {
14 /// Specifies that the date should be displayed using unabbreviated
15 /// days of the week and month names.
16 Long = 0,
17
18 /// Specifies that the date should be displayed using abbreviated days
19 /// of the week and month names.
20 Short = 1,
21
22 /// Specifies that the date should be displayed using a custom format
23 /// string.
24 Custom = 2,
25}