summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_calendar.eo
blob: f1afa05f045bb6c5954897bb5f718c6772b2776d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import efl_types;

type Efl_Ui_Calendar_Format_Cb: __undefined_type; [[Elementary calendar format callback type]]

enum Efl.Ui.Calendar.Weekday
{
   [[A weekday

   See also @Efl.Ui.Calendar.first_day_of_week.set.
   ]]
   sunday, [[Sunday weekday]]
   monday, [[Monday weekday]]
   tuesday, [[Tusday weekday]]
   wednesday, [[Wednesday weekday]]
   thursday, [[Thursday weekday]]
   friday, [[Friday weekday]]
   saturday, [[Saturday weekday]]
   last  [[Sentinel value to indicate last enum field during iteration]]
}

class Efl.Ui.Calendar (Efl.Ui.Layout, Efl.Ui.Focus.Composition, Elm.Interface.Atspi_Widget_Action, Efl.Ui.Format)
{
   [[Calendar widget

   It helps applications to flexibly display a calendar with day of the week,
   date, year and month. Applications are able to set specific dates to be
   reported back, when selected, in the smart callbacks of the calendar widget.
   ]]
   methods {
      @property first_day_of_week {
         [[The first day of week to use on calendar widgets'.]]
         set {
         }
         get {
         }
         values {
            day: Efl.Ui.Calendar.Weekday(Efl.Ui.Calendar.Weekday.sunday); [[Weekday enum value, see @Elm.Calendar.Weekday]]
         }
      }
      @property date_min {
         [[Minimum date on calendar.]]
         set {
            [[Set the minimum date on calendar.

              Set the minimum date, changing the displayed month or year if needed.
              Displayed day also to be disabled if it is smaller than minimum date.
              If the minimum date is greater than current maximum date, the minimum
              date would be changed to the maximum date with returning $false.
            ]]
            return: bool; [[$true, on success, $false otherwise]]
         }
         get {
            [[Get the minimum date.

              Default value is 1 JAN,1902.
            ]]
         }
         values {
            min: Efl.Time; [[Time structure containing the minmum date.]]
         }
      }
      @property date_max {
         [[Maximum date on calendar.]]
         set {
            [[Set the maximum date on calendar.

              Set the maximum date, changing the displayed month or year if needed.
              Displayed day also to be disabled if it is bigger than maximum date.
              If the maximum date is less than current minimum date, the maximum date
              would be changed to the minimum date with returning $false.
            ]]
            return: bool; [[$true, on success, $false otherwise]]
         }
         get {
            [[Get the maximum date.

              Default maximum year is -1.
              Default maximum day and month are 31 and DEC.

              If the maximum year is a negative value, it will be limited depending
              on the platform architecture (year 2037 for 32 bits);
            ]]
         }
         values {
            max: Efl.Time; [[Time structure containing the maximum date.]]
         }
      }
      @property date {
         [[The selected date on calendar.]]
         set {
            [[Set the selected date. If the date is greater than the maximum date,
              the date would be changed to the maximum date with returning $false.
              In the opposite case with the minimum date,
              this would give the same result.
            ]]
            return: bool; [[$true, on success, $false otherwise]]
         }
         get {
         }
         values {
            date: Efl.Time; [[Time structure containing the selected date.]]
         }
      }
   }
   implements {
      class.constructor;
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Canvas.Group.group_calculate;
      Elm.Widget.theme_apply;
      Elm.Widget.on_access_update;
      Elm.Widget.on_focus_update;
      Elm.Widget.widget_event;
      Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
      Efl.Ui.Format.format_cb { set; }
   }
   events {
      changed; [[Emitted when the selected date in the calendar is changed]]
   }
}