e124d2ab2c30adaedd828fdc9c9ea3fec94a74a9
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_calendar.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui { 
8 /// <summary>Calendar widget
9 /// 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.</summary>
10 [CalendarNativeInherit]
11 public class Calendar : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IFormat,Efl.Ui.Focus.IComposition
12 {
13     ///<summary>Pointer to the native class description.</summary>
14     public override System.IntPtr NativeClass {
15         get {
16             if (((object)this).GetType() == typeof (Calendar))
17                 return Efl.Ui.CalendarNativeInherit.GetEflClassStatic();
18             else
19                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
20         }
21     }
22     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
23         efl_ui_calendar_class_get();
24     ///<summary>Creates a new instance.</summary>
25     ///<param name="parent">Parent instance.</param>
26     ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
27     public Calendar(Efl.Object parent
28             , System.String style = null) :
29         base(efl_ui_calendar_class_get(), typeof(Calendar), parent)
30     {
31         if (Efl.Eo.Globals.ParamHelperCheck(style))
32             SetStyle(Efl.Eo.Globals.GetParamHelper(style));
33         FinishInstantiation();
34     }
35     ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
36     protected Calendar(System.IntPtr raw) : base(raw)
37     {
38                 RegisterEventProxies();
39     }
40     ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
41     protected Calendar(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
42     ///<summary>Verifies if the given object is equal to this one.</summary>
43     public override bool Equals(object obj)
44     {
45         var other = obj as Efl.Object;
46         if (other == null)
47             return false;
48         return this.NativeHandle == other.NativeHandle;
49     }
50     ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
51     public override int GetHashCode()
52     {
53         return this.NativeHandle.ToInt32();
54     }
55     ///<summary>Turns the native pointer into a string representation.</summary>
56     public override String ToString()
57     {
58         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
59     }
60 private static object ChangedEvtKey = new object();
61     /// <summary>Emitted when the selected date in the calendar is changed</summary>
62     public event EventHandler ChangedEvt
63     {
64         add {
65             lock (eventLock) {
66                 string key = "_EFL_UI_CALENDAR_EVENT_CHANGED";
67                 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) {
68                     eventHandlers.AddHandler(ChangedEvtKey , value);
69                 } else
70                     Eina.Log.Error($"Error adding proxy for event {key}");
71             }
72         }
73         remove {
74             lock (eventLock) {
75                 string key = "_EFL_UI_CALENDAR_EVENT_CHANGED";
76                 if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { 
77                     eventHandlers.RemoveHandler(ChangedEvtKey , value);
78                 } else
79                     Eina.Log.Error($"Error removing proxy for event {key}");
80             }
81         }
82     }
83     ///<summary>Method to raise event ChangedEvt.</summary>
84     public void On_ChangedEvt(EventArgs e)
85     {
86         EventHandler evt;
87         lock (eventLock) {
88         evt = (EventHandler)eventHandlers[ChangedEvtKey];
89         }
90         evt?.Invoke(this, e);
91     }
92     Efl.EventCb evt_ChangedEvt_delegate;
93     private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
94     {
95         EventArgs args = EventArgs.Empty;
96         try {
97             On_ChangedEvt(args);
98         } catch (Exception e) {
99             Eina.Log.Error(e.ToString());
100             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
101         }
102     }
103
104     ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
105     protected override void RegisterEventProxies()
106     {
107         base.RegisterEventProxies();
108         evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback);
109     }
110     /// <summary>The first day of week to use on calendar widgets.
111     /// This is the day that will appear in the left-most column (eg. Monday in France or Sunday in the US).</summary>
112     /// <returns>The first day of the week.</returns>
113     virtual public Efl.Ui.CalendarWeekday GetFirstDayOfWeek() {
114          var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
115         Eina.Error.RaiseIfUnhandledException();
116         return _ret_var;
117  }
118     /// <summary>The first day of week to use on calendar widgets.
119     /// This is the day that will appear in the left-most column (eg. Monday in France or Sunday in the US).</summary>
120     /// <param name="day">The first day of the week.</param>
121     /// <returns></returns>
122     virtual public void SetFirstDayOfWeek( Efl.Ui.CalendarWeekday day) {
123                                  Efl.Ui.CalendarNativeInherit.efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), day);
124         Eina.Error.RaiseIfUnhandledException();
125                          }
126     /// <summary>Get the minimum date.
127     /// Default value is 1 JAN,1902.</summary>
128     /// <returns>Time structure containing the minimum date.</returns>
129     virtual public Efl.Time GetDateMin() {
130          var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
131         Eina.Error.RaiseIfUnhandledException();
132         return _ret_var;
133  }
134     /// <summary>Set the minimum date on calendar.
135     /// 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 <c>false</c>.</summary>
136     /// <param name="min">Time structure containing the minimum date.</param>
137     /// <returns><c>true</c>, on success, <c>false</c> otherwise</returns>
138     virtual public bool SetDateMin( Efl.Time min) {
139          Efl.Time.NativeStruct _in_min = min;
140                         var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_min);
141         Eina.Error.RaiseIfUnhandledException();
142                         return _ret_var;
143  }
144     /// <summary>Get the maximum date.
145     /// Default maximum year is -1. Default maximum day and month are 31 and DEC.
146     /// 
147     /// If the maximum year is a negative value, it will be limited depending on the platform architecture (year 2037 for 32 bits);</summary>
148     /// <returns>Time structure containing the maximum date.</returns>
149     virtual public Efl.Time GetDateMax() {
150          var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
151         Eina.Error.RaiseIfUnhandledException();
152         return _ret_var;
153  }
154     /// <summary>Set the maximum date on calendar.
155     /// 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 <c>false</c>.</summary>
156     /// <param name="max">Time structure containing the maximum date.</param>
157     /// <returns><c>true</c>, on success, <c>false</c> otherwise</returns>
158     virtual public bool SetDateMax( Efl.Time max) {
159          Efl.Time.NativeStruct _in_max = max;
160                         var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_max);
161         Eina.Error.RaiseIfUnhandledException();
162                         return _ret_var;
163  }
164     /// <summary>The selected date on calendar.</summary>
165     /// <returns>Time structure containing the selected date.</returns>
166     virtual public Efl.Time GetDate() {
167          var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
168         Eina.Error.RaiseIfUnhandledException();
169         return _ret_var;
170  }
171     /// <summary>Set the selected date. If the date is greater than the maximum date, the date would be changed to the maximum date with returning <c>false</c>. In the opposite case with the minimum date, this would give the same result.</summary>
172     /// <param name="date">Time structure containing the selected date.</param>
173     /// <returns><c>true</c>, on success, <c>false</c> otherwise</returns>
174     virtual public bool SetDate( Efl.Time date) {
175          Efl.Time.NativeStruct _in_date = date;
176                         var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_date);
177         Eina.Error.RaiseIfUnhandledException();
178                         return _ret_var;
179  }
180     /// <summary>Set the format function pointer to format the string.</summary>
181     /// <param name="func">The format function callback</param>
182     /// <returns></returns>
183     virtual public void SetFormatCb( Efl.Ui.FormatFuncCb func) {
184                          GCHandle func_handle = GCHandle.Alloc(func);
185         Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle);
186         Eina.Error.RaiseIfUnhandledException();
187                          }
188     /// <summary>Control the format string for a given units label
189     /// If <c>NULL</c> is passed to <c>format</c>, it will hide <c>obj</c>&apos;s units area completely. If not, it&apos;ll set the &lt;b&gt;format string&lt;/b&gt; for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as &quot;%1.2f meters&quot; for example.
190     /// 
191     /// Note: The default format string is an integer percentage, as in $&quot;%.0f %%&quot;.</summary>
192     /// <returns>The format string for <c>obj</c>&apos;s units label.</returns>
193     virtual public System.String GetFormatString() {
194          var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
195         Eina.Error.RaiseIfUnhandledException();
196         return _ret_var;
197  }
198     /// <summary>Control the format string for a given units label
199     /// If <c>NULL</c> is passed to <c>format</c>, it will hide <c>obj</c>&apos;s units area completely. If not, it&apos;ll set the &lt;b&gt;format string&lt;/b&gt; for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as &quot;%1.2f meters&quot; for example.
200     /// 
201     /// Note: The default format string is an integer percentage, as in $&quot;%.0f %%&quot;.</summary>
202     /// <param name="units">The format string for <c>obj</c>&apos;s units label.</param>
203     /// <returns></returns>
204     virtual public void SetFormatString( System.String units) {
205                                  Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), units);
206         Eina.Error.RaiseIfUnhandledException();
207                          }
208     /// <summary>Set the order of elements that will be used for composition
209     /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
210     /// 
211     /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
212     /// 
213     /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
214     /// 
215     /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
216     /// <returns>The order to use</returns>
217     virtual public Eina.List<Efl.Gfx.IEntity> GetCompositionElements() {
218          var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
219         Eina.Error.RaiseIfUnhandledException();
220         return new Eina.List<Efl.Gfx.IEntity>(_ret_var, true, false);
221  }
222     /// <summary>Set the order of elements that will be used for composition
223     /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
224     /// 
225     /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
226     /// 
227     /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
228     /// 
229     /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
230     /// <param name="logical_order">The order to use</param>
231     /// <returns></returns>
232     virtual public void SetCompositionElements( Eina.List<Efl.Gfx.IEntity> logical_order) {
233          var _in_logical_order = logical_order.Handle;
234 logical_order.Own = false;
235                         Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_logical_order);
236         Eina.Error.RaiseIfUnhandledException();
237                          }
238     /// <summary>Set to true if all children should be registered as logicals</summary>
239     /// <returns><c>true</c> or <c>false</c></returns>
240     virtual public bool GetLogicalMode() {
241          var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
242         Eina.Error.RaiseIfUnhandledException();
243         return _ret_var;
244  }
245     /// <summary>Set to true if all children should be registered as logicals</summary>
246     /// <param name="logical_mode"><c>true</c> or <c>false</c></param>
247     /// <returns></returns>
248     virtual public void SetLogicalMode( bool logical_mode) {
249                                  Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), logical_mode);
250         Eina.Error.RaiseIfUnhandledException();
251                          }
252     /// <summary>Mark this widget as dirty, the children can be considered to be changed after that call</summary>
253     /// <returns></returns>
254     virtual public void Dirty() {
255          Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
256         Eina.Error.RaiseIfUnhandledException();
257          }
258     /// <summary>A call to prepare the children of this element, called if marked as dirty
259     /// You can use this function to call composition_elements.</summary>
260     /// <returns></returns>
261     virtual public void Prepare() {
262          Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
263         Eina.Error.RaiseIfUnhandledException();
264          }
265     /// <summary>The first day of week to use on calendar widgets.
266 /// This is the day that will appear in the left-most column (eg. Monday in France or Sunday in the US).</summary>
267 /// <value>The first day of the week.</value>
268     public Efl.Ui.CalendarWeekday FirstDayOfWeek {
269         get { return GetFirstDayOfWeek(); }
270         set { SetFirstDayOfWeek( value); }
271     }
272     /// <summary>Minimum date on calendar.</summary>
273 /// <value>Time structure containing the minimum date.</value>
274     public Efl.Time DateMin {
275         get { return GetDateMin(); }
276         set { SetDateMin( value); }
277     }
278     /// <summary>Maximum date on calendar.</summary>
279 /// <value>Time structure containing the maximum date.</value>
280     public Efl.Time DateMax {
281         get { return GetDateMax(); }
282         set { SetDateMax( value); }
283     }
284     /// <summary>The selected date on calendar.</summary>
285 /// <value>Time structure containing the selected date.</value>
286     public Efl.Time Date {
287         get { return GetDate(); }
288         set { SetDate( value); }
289     }
290     /// <summary>Set the format function pointer to format the string.</summary>
291 /// <value>The format function callback</value>
292     public Efl.Ui.FormatFuncCb FormatCb {
293         set { SetFormatCb( value); }
294     }
295     /// <summary>Control the format string for a given units label
296 /// If <c>NULL</c> is passed to <c>format</c>, it will hide <c>obj</c>&apos;s units area completely. If not, it&apos;ll set the &lt;b&gt;format string&lt;/b&gt; for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as &quot;%1.2f meters&quot; for example.
297 /// 
298 /// Note: The default format string is an integer percentage, as in $&quot;%.0f %%&quot;.</summary>
299 /// <value>The format string for <c>obj</c>&apos;s units label.</value>
300     public System.String FormatString {
301         get { return GetFormatString(); }
302         set { SetFormatString( value); }
303     }
304     /// <summary>Set the order of elements that will be used for composition
305 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
306 /// 
307 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
308 /// 
309 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
310 /// 
311 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
312 /// <value>The order to use</value>
313     public Eina.List<Efl.Gfx.IEntity> CompositionElements {
314         get { return GetCompositionElements(); }
315         set { SetCompositionElements( value); }
316     }
317     /// <summary>Set to true if all children should be registered as logicals</summary>
318 /// <value><c>true</c> or <c>false</c></value>
319     public bool LogicalMode {
320         get { return GetLogicalMode(); }
321         set { SetLogicalMode( value); }
322     }
323     private static IntPtr GetEflClassStatic()
324     {
325         return Efl.Ui.Calendar.efl_ui_calendar_class_get();
326     }
327 }
328 public class CalendarNativeInherit : Efl.Ui.LayoutBaseNativeInherit{
329     public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
330     public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
331     {
332         var descs = new System.Collections.Generic.List<Efl_Op_Description>();
333         var methods = Efl.Eo.Globals.GetUserMethods(type);
334         if (efl_ui_calendar_first_day_of_week_get_static_delegate == null)
335             efl_ui_calendar_first_day_of_week_get_static_delegate = new efl_ui_calendar_first_day_of_week_get_delegate(first_day_of_week_get);
336         if (methods.FirstOrDefault(m => m.Name == "GetFirstDayOfWeek") != null)
337             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_first_day_of_week_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_get_static_delegate)});
338         if (efl_ui_calendar_first_day_of_week_set_static_delegate == null)
339             efl_ui_calendar_first_day_of_week_set_static_delegate = new efl_ui_calendar_first_day_of_week_set_delegate(first_day_of_week_set);
340         if (methods.FirstOrDefault(m => m.Name == "SetFirstDayOfWeek") != null)
341             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_first_day_of_week_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_set_static_delegate)});
342         if (efl_ui_calendar_date_min_get_static_delegate == null)
343             efl_ui_calendar_date_min_get_static_delegate = new efl_ui_calendar_date_min_get_delegate(date_min_get);
344         if (methods.FirstOrDefault(m => m.Name == "GetDateMin") != null)
345             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_get_static_delegate)});
346         if (efl_ui_calendar_date_min_set_static_delegate == null)
347             efl_ui_calendar_date_min_set_static_delegate = new efl_ui_calendar_date_min_set_delegate(date_min_set);
348         if (methods.FirstOrDefault(m => m.Name == "SetDateMin") != null)
349             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_set_static_delegate)});
350         if (efl_ui_calendar_date_max_get_static_delegate == null)
351             efl_ui_calendar_date_max_get_static_delegate = new efl_ui_calendar_date_max_get_delegate(date_max_get);
352         if (methods.FirstOrDefault(m => m.Name == "GetDateMax") != null)
353             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_get_static_delegate)});
354         if (efl_ui_calendar_date_max_set_static_delegate == null)
355             efl_ui_calendar_date_max_set_static_delegate = new efl_ui_calendar_date_max_set_delegate(date_max_set);
356         if (methods.FirstOrDefault(m => m.Name == "SetDateMax") != null)
357             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_set_static_delegate)});
358         if (efl_ui_calendar_date_get_static_delegate == null)
359             efl_ui_calendar_date_get_static_delegate = new efl_ui_calendar_date_get_delegate(date_get);
360         if (methods.FirstOrDefault(m => m.Name == "GetDate") != null)
361             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_get_static_delegate)});
362         if (efl_ui_calendar_date_set_static_delegate == null)
363             efl_ui_calendar_date_set_static_delegate = new efl_ui_calendar_date_set_delegate(date_set);
364         if (methods.FirstOrDefault(m => m.Name == "SetDate") != null)
365             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_set_static_delegate)});
366         if (efl_ui_format_cb_set_static_delegate == null)
367             efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set);
368         if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null)
369             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)});
370         if (efl_ui_format_string_get_static_delegate == null)
371             efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get);
372         if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null)
373             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)});
374         if (efl_ui_format_string_set_static_delegate == null)
375             efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set);
376         if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null)
377             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)});
378         if (efl_ui_focus_composition_elements_get_static_delegate == null)
379             efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get);
380         if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null)
381             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate)});
382         if (efl_ui_focus_composition_elements_set_static_delegate == null)
383             efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set);
384         if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null)
385             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate)});
386         if (efl_ui_focus_composition_logical_mode_get_static_delegate == null)
387             efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get);
388         if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null)
389             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate)});
390         if (efl_ui_focus_composition_logical_mode_set_static_delegate == null)
391             efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set);
392         if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null)
393             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate)});
394         if (efl_ui_focus_composition_dirty_static_delegate == null)
395             efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty);
396         if (methods.FirstOrDefault(m => m.Name == "Dirty") != null)
397             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate)});
398         if (efl_ui_focus_composition_prepare_static_delegate == null)
399             efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare);
400         if (methods.FirstOrDefault(m => m.Name == "Prepare") != null)
401             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate)});
402         descs.AddRange(base.GetEoOps(type));
403         return descs;
404     }
405     public override IntPtr GetEflClass()
406     {
407         return Efl.Ui.Calendar.efl_ui_calendar_class_get();
408     }
409     public static new  IntPtr GetEflClassStatic()
410     {
411         return Efl.Ui.Calendar.efl_ui_calendar_class_get();
412     }
413
414
415      private delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_delegate(System.IntPtr obj, System.IntPtr pd);
416
417
418      public delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_api_delegate(System.IntPtr obj);
419      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_first_day_of_week_get_api_delegate> efl_ui_calendar_first_day_of_week_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_first_day_of_week_get_api_delegate>(_Module, "efl_ui_calendar_first_day_of_week_get");
420      private static Efl.Ui.CalendarWeekday first_day_of_week_get(System.IntPtr obj, System.IntPtr pd)
421     {
422         Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_get was called");
423         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
424         if(wrapper != null) {
425                         Efl.Ui.CalendarWeekday _ret_var = default(Efl.Ui.CalendarWeekday);
426             try {
427                 _ret_var = ((Calendar)wrapper).GetFirstDayOfWeek();
428             } catch (Exception e) {
429                 Eina.Log.Warning($"Callback error: {e.ToString()}");
430                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
431             }
432         return _ret_var;
433         } else {
434             return efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
435         }
436     }
437     private static efl_ui_calendar_first_day_of_week_get_delegate efl_ui_calendar_first_day_of_week_get_static_delegate;
438
439
440      private delegate void efl_ui_calendar_first_day_of_week_set_delegate(System.IntPtr obj, System.IntPtr pd,   Efl.Ui.CalendarWeekday day);
441
442
443      public delegate void efl_ui_calendar_first_day_of_week_set_api_delegate(System.IntPtr obj,   Efl.Ui.CalendarWeekday day);
444      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_first_day_of_week_set_api_delegate> efl_ui_calendar_first_day_of_week_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_first_day_of_week_set_api_delegate>(_Module, "efl_ui_calendar_first_day_of_week_set");
445      private static void first_day_of_week_set(System.IntPtr obj, System.IntPtr pd,  Efl.Ui.CalendarWeekday day)
446     {
447         Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_set was called");
448         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
449         if(wrapper != null) {
450                                                 
451             try {
452                 ((Calendar)wrapper).SetFirstDayOfWeek( day);
453             } catch (Exception e) {
454                 Eina.Log.Warning($"Callback error: {e.ToString()}");
455                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
456             }
457                                 } else {
458             efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  day);
459         }
460     }
461     private static efl_ui_calendar_first_day_of_week_set_delegate efl_ui_calendar_first_day_of_week_set_static_delegate;
462
463
464      private delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
465
466
467      public delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_api_delegate(System.IntPtr obj);
468      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_min_get_api_delegate> efl_ui_calendar_date_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_min_get_api_delegate>(_Module, "efl_ui_calendar_date_min_get");
469      private static Efl.Time.NativeStruct date_min_get(System.IntPtr obj, System.IntPtr pd)
470     {
471         Eina.Log.Debug("function efl_ui_calendar_date_min_get was called");
472         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
473         if(wrapper != null) {
474                         Efl.Time _ret_var = default(Efl.Time);
475             try {
476                 _ret_var = ((Calendar)wrapper).GetDateMin();
477             } catch (Exception e) {
478                 Eina.Log.Warning($"Callback error: {e.ToString()}");
479                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
480             }
481         return _ret_var;
482         } else {
483             return efl_ui_calendar_date_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
484         }
485     }
486     private static efl_ui_calendar_date_min_get_delegate efl_ui_calendar_date_min_get_static_delegate;
487
488
489      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_min_set_delegate(System.IntPtr obj, System.IntPtr pd,   Efl.Time.NativeStruct min);
490
491
492      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_min_set_api_delegate(System.IntPtr obj,   Efl.Time.NativeStruct min);
493      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_min_set_api_delegate> efl_ui_calendar_date_min_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_min_set_api_delegate>(_Module, "efl_ui_calendar_date_min_set");
494      private static bool date_min_set(System.IntPtr obj, System.IntPtr pd,  Efl.Time.NativeStruct min)
495     {
496         Eina.Log.Debug("function efl_ui_calendar_date_min_set was called");
497         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
498         if(wrapper != null) {
499                     Efl.Time _in_min = min;
500                             bool _ret_var = default(bool);
501             try {
502                 _ret_var = ((Calendar)wrapper).SetDateMin( _in_min);
503             } catch (Exception e) {
504                 Eina.Log.Warning($"Callback error: {e.ToString()}");
505                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
506             }
507                         return _ret_var;
508         } else {
509             return efl_ui_calendar_date_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  min);
510         }
511     }
512     private static efl_ui_calendar_date_min_set_delegate efl_ui_calendar_date_min_set_static_delegate;
513
514
515      private delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
516
517
518      public delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_api_delegate(System.IntPtr obj);
519      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_max_get_api_delegate> efl_ui_calendar_date_max_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_max_get_api_delegate>(_Module, "efl_ui_calendar_date_max_get");
520      private static Efl.Time.NativeStruct date_max_get(System.IntPtr obj, System.IntPtr pd)
521     {
522         Eina.Log.Debug("function efl_ui_calendar_date_max_get was called");
523         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
524         if(wrapper != null) {
525                         Efl.Time _ret_var = default(Efl.Time);
526             try {
527                 _ret_var = ((Calendar)wrapper).GetDateMax();
528             } catch (Exception e) {
529                 Eina.Log.Warning($"Callback error: {e.ToString()}");
530                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
531             }
532         return _ret_var;
533         } else {
534             return efl_ui_calendar_date_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
535         }
536     }
537     private static efl_ui_calendar_date_max_get_delegate efl_ui_calendar_date_max_get_static_delegate;
538
539
540      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_max_set_delegate(System.IntPtr obj, System.IntPtr pd,   Efl.Time.NativeStruct max);
541
542
543      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_max_set_api_delegate(System.IntPtr obj,   Efl.Time.NativeStruct max);
544      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_max_set_api_delegate> efl_ui_calendar_date_max_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_max_set_api_delegate>(_Module, "efl_ui_calendar_date_max_set");
545      private static bool date_max_set(System.IntPtr obj, System.IntPtr pd,  Efl.Time.NativeStruct max)
546     {
547         Eina.Log.Debug("function efl_ui_calendar_date_max_set was called");
548         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
549         if(wrapper != null) {
550                     Efl.Time _in_max = max;
551                             bool _ret_var = default(bool);
552             try {
553                 _ret_var = ((Calendar)wrapper).SetDateMax( _in_max);
554             } catch (Exception e) {
555                 Eina.Log.Warning($"Callback error: {e.ToString()}");
556                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
557             }
558                         return _ret_var;
559         } else {
560             return efl_ui_calendar_date_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  max);
561         }
562     }
563     private static efl_ui_calendar_date_max_set_delegate efl_ui_calendar_date_max_set_static_delegate;
564
565
566      private delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_delegate(System.IntPtr obj, System.IntPtr pd);
567
568
569      public delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_api_delegate(System.IntPtr obj);
570      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_get_api_delegate> efl_ui_calendar_date_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_get_api_delegate>(_Module, "efl_ui_calendar_date_get");
571      private static Efl.Time.NativeStruct date_get(System.IntPtr obj, System.IntPtr pd)
572     {
573         Eina.Log.Debug("function efl_ui_calendar_date_get was called");
574         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
575         if(wrapper != null) {
576                         Efl.Time _ret_var = default(Efl.Time);
577             try {
578                 _ret_var = ((Calendar)wrapper).GetDate();
579             } catch (Exception e) {
580                 Eina.Log.Warning($"Callback error: {e.ToString()}");
581                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
582             }
583         return _ret_var;
584         } else {
585             return efl_ui_calendar_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
586         }
587     }
588     private static efl_ui_calendar_date_get_delegate efl_ui_calendar_date_get_static_delegate;
589
590
591      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_set_delegate(System.IntPtr obj, System.IntPtr pd,   Efl.Time.NativeStruct date);
592
593
594      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_set_api_delegate(System.IntPtr obj,   Efl.Time.NativeStruct date);
595      public static Efl.Eo.FunctionWrapper<efl_ui_calendar_date_set_api_delegate> efl_ui_calendar_date_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_date_set_api_delegate>(_Module, "efl_ui_calendar_date_set");
596      private static bool date_set(System.IntPtr obj, System.IntPtr pd,  Efl.Time.NativeStruct date)
597     {
598         Eina.Log.Debug("function efl_ui_calendar_date_set was called");
599         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
600         if(wrapper != null) {
601                     Efl.Time _in_date = date;
602                             bool _ret_var = default(bool);
603             try {
604                 _ret_var = ((Calendar)wrapper).SetDate( _in_date);
605             } catch (Exception e) {
606                 Eina.Log.Warning($"Callback error: {e.ToString()}");
607                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
608             }
609                         return _ret_var;
610         } else {
611             return efl_ui_calendar_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  date);
612         }
613     }
614     private static efl_ui_calendar_date_set_delegate efl_ui_calendar_date_set_static_delegate;
615
616
617      private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd,  IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb);
618
619
620      public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj,  IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb);
621      public static Efl.Eo.FunctionWrapper<efl_ui_format_cb_set_api_delegate> efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_format_cb_set_api_delegate>(_Module, "efl_ui_format_cb_set");
622      private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb)
623     {
624         Eina.Log.Debug("function efl_ui_format_cb_set was called");
625         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
626         if(wrapper != null) {
627                                         Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb);
628             
629             try {
630                 ((Calendar)wrapper).SetFormatCb( func_wrapper.ManagedCb);
631             } catch (Exception e) {
632                 Eina.Log.Warning($"Callback error: {e.ToString()}");
633                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
634             }
635                                 } else {
636             efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb);
637         }
638     }
639     private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate;
640
641
642      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd);
643
644
645      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj);
646      public static Efl.Eo.FunctionWrapper<efl_ui_format_string_get_api_delegate> efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_format_string_get_api_delegate>(_Module, "efl_ui_format_string_get");
647      private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd)
648     {
649         Eina.Log.Debug("function efl_ui_format_string_get was called");
650         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
651         if(wrapper != null) {
652                         System.String _ret_var = default(System.String);
653             try {
654                 _ret_var = ((Calendar)wrapper).GetFormatString();
655             } catch (Exception e) {
656                 Eina.Log.Warning($"Callback error: {e.ToString()}");
657                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
658             }
659         return _ret_var;
660         } else {
661             return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
662         }
663     }
664     private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate;
665
666
667      private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String units);
668
669
670      public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String units);
671      public static Efl.Eo.FunctionWrapper<efl_ui_format_string_set_api_delegate> efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_format_string_set_api_delegate>(_Module, "efl_ui_format_string_set");
672      private static void format_string_set(System.IntPtr obj, System.IntPtr pd,  System.String units)
673     {
674         Eina.Log.Debug("function efl_ui_format_string_set was called");
675         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
676         if(wrapper != null) {
677                                                 
678             try {
679                 ((Calendar)wrapper).SetFormatString( units);
680             } catch (Exception e) {
681                 Eina.Log.Warning($"Callback error: {e.ToString()}");
682                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
683             }
684                                 } else {
685             efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  units);
686         }
687     }
688     private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate;
689
690
691      private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
692
693
694      public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj);
695      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_get_api_delegate> efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_get_api_delegate>(_Module, "efl_ui_focus_composition_elements_get");
696      private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd)
697     {
698         Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called");
699         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
700         if(wrapper != null) {
701                         Eina.List<Efl.Gfx.IEntity> _ret_var = default(Eina.List<Efl.Gfx.IEntity>);
702             try {
703                 _ret_var = ((Calendar)wrapper).GetCompositionElements();
704             } catch (Exception e) {
705                 Eina.Log.Warning($"Callback error: {e.ToString()}");
706                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
707             }
708         _ret_var.Own = false; return _ret_var.Handle;
709         } else {
710             return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
711         }
712     }
713     private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate;
714
715
716      private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd,   System.IntPtr logical_order);
717
718
719      public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj,   System.IntPtr logical_order);
720      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_set_api_delegate> efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_set_api_delegate>(_Module, "efl_ui_focus_composition_elements_set");
721      private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd,  System.IntPtr logical_order)
722     {
723         Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called");
724         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
725         if(wrapper != null) {
726                     var _in_logical_order = new Eina.List<Efl.Gfx.IEntity>(logical_order, true, false);
727                             
728             try {
729                 ((Calendar)wrapper).SetCompositionElements( _in_logical_order);
730             } catch (Exception e) {
731                 Eina.Log.Warning($"Callback error: {e.ToString()}");
732                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
733             }
734                                 } else {
735             efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  logical_order);
736         }
737     }
738     private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate;
739
740
741      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
742
743
744      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj);
745      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_get_api_delegate> efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_get_api_delegate>(_Module, "efl_ui_focus_composition_logical_mode_get");
746      private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd)
747     {
748         Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called");
749         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
750         if(wrapper != null) {
751                         bool _ret_var = default(bool);
752             try {
753                 _ret_var = ((Calendar)wrapper).GetLogicalMode();
754             } catch (Exception e) {
755                 Eina.Log.Warning($"Callback error: {e.ToString()}");
756                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
757             }
758         return _ret_var;
759         } else {
760             return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
761         }
762     }
763     private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate;
764
765
766      private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.U1)]  bool logical_mode);
767
768
769      public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.U1)]  bool logical_mode);
770      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_set_api_delegate> efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_set_api_delegate>(_Module, "efl_ui_focus_composition_logical_mode_set");
771      private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd,  bool logical_mode)
772     {
773         Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called");
774         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
775         if(wrapper != null) {
776                                                 
777             try {
778                 ((Calendar)wrapper).SetLogicalMode( logical_mode);
779             } catch (Exception e) {
780                 Eina.Log.Warning($"Callback error: {e.ToString()}");
781                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
782             }
783                                 } else {
784             efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  logical_mode);
785         }
786     }
787     private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate;
788
789
790      private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd);
791
792
793      public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj);
794      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_dirty_api_delegate> efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_dirty_api_delegate>(_Module, "efl_ui_focus_composition_dirty");
795      private static void dirty(System.IntPtr obj, System.IntPtr pd)
796     {
797         Eina.Log.Debug("function efl_ui_focus_composition_dirty was called");
798         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
799         if(wrapper != null) {
800                         
801             try {
802                 ((Calendar)wrapper).Dirty();
803             } catch (Exception e) {
804                 Eina.Log.Warning($"Callback error: {e.ToString()}");
805                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
806             }
807                 } else {
808             efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
809         }
810     }
811     private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate;
812
813
814      private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd);
815
816
817      public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj);
818      public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_prepare_api_delegate> efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_prepare_api_delegate>(_Module, "efl_ui_focus_composition_prepare");
819      private static void prepare(System.IntPtr obj, System.IntPtr pd)
820     {
821         Eina.Log.Debug("function efl_ui_focus_composition_prepare was called");
822         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
823         if(wrapper != null) {
824                         
825             try {
826                 ((Calendar)wrapper).Prepare();
827             } catch (Exception e) {
828                 Eina.Log.Warning($"Callback error: {e.ToString()}");
829                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
830             }
831                 } else {
832             efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
833         }
834     }
835     private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate;
836 }
837 } } 
838 namespace Efl { namespace Ui { 
839 /// <summary>A weekday
840 /// See also <see cref="Efl.Ui.Calendar.SetFirstDayOfWeek"/>.</summary>
841 public enum CalendarWeekday
842 {
843 /// <summary>Sunday weekday</summary>
844 Sunday = 0,
845 /// <summary>Monday weekday</summary>
846 Monday = 1,
847 /// <summary>Tuesday weekday</summary>
848 Tuesday = 2,
849 /// <summary>Wednesday weekday</summary>
850 Wednesday = 3,
851 /// <summary>Thursday weekday</summary>
852 Thursday = 4,
853 /// <summary>Friday weekday</summary>
854 Friday = 5,
855 /// <summary>Saturday weekday</summary>
856 Saturday = 6,
857 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
858 Last = 7,
859 }
860 } }