1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
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
13 ///<summary>Pointer to the native class description.</summary>
14 public override System.IntPtr NativeClass {
16 if (((object)this).GetType() == typeof (Calendar))
17 return Efl.Ui.CalendarNativeInherit.GetEflClassStatic();
19 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
31 if (Efl.Eo.Globals.ParamHelperCheck(style))
32 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
33 FinishInstantiation();
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)
38 RegisterEventProxies();
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)
45 var other = obj as Efl.Object;
48 return this.NativeHandle == other.NativeHandle;
50 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
51 public override int GetHashCode()
53 return this.NativeHandle.ToInt32();
55 ///<summary>Turns the native pointer into a string representation.</summary>
56 public override String ToString()
58 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
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
66 string key = "_EFL_UI_CALENDAR_EVENT_CHANGED";
67 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) {
68 eventHandlers.AddHandler(ChangedEvtKey , value);
70 Eina.Log.Error($"Error adding proxy for event {key}");
75 string key = "_EFL_UI_CALENDAR_EVENT_CHANGED";
76 if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) {
77 eventHandlers.RemoveHandler(ChangedEvtKey , value);
79 Eina.Log.Error($"Error removing proxy for event {key}");
83 ///<summary>Method to raise event ChangedEvt.</summary>
84 public void On_ChangedEvt(EventArgs e)
88 evt = (EventHandler)eventHandlers[ChangedEvtKey];
92 Efl.EventCb evt_ChangedEvt_delegate;
93 private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
95 EventArgs args = EventArgs.Empty;
98 } catch (Exception e) {
99 Eina.Log.Error(e.ToString());
100 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
104 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
105 protected override void RegisterEventProxies()
107 base.RegisterEventProxies();
108 evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback);
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();
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();
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();
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();
144 /// <summary>Get the maximum date.
145 /// Default maximum year is -1. Default maximum day and month are 31 and DEC.
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();
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();
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();
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();
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();
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>'s units area completely. If not, it'll set the <b>format string</b> 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 "%1.2f meters" for example.
191 /// Note: The default format string is an integer percentage, as in $"%.0f %%".</summary>
192 /// <returns>The format string for <c>obj</c>'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();
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>'s units area completely. If not, it'll set the <b>format string</b> 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 "%1.2f meters" for example.
201 /// Note: The default format string is an integer percentage, as in $"%.0f %%".</summary>
202 /// <param name="units">The format string for <c>obj</c>'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();
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.
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.
213 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
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);
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.
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.
227 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
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();
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();
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();
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();
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();
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); }
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); }
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); }
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); }
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); }
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>'s units area completely. If not, it'll set the <b>format string</b> 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 "%1.2f meters" for example.
298 /// Note: The default format string is an integer percentage, as in $"%.0f %%".</summary>
299 /// <value>The format string for <c>obj</c>'s units label.</value>
300 public System.String FormatString {
301 get { return GetFormatString(); }
302 set { SetFormatString( value); }
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.
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.
309 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
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); }
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); }
323 private static IntPtr GetEflClassStatic()
325 return Efl.Ui.Calendar.efl_ui_calendar_class_get();
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)
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));
405 public override IntPtr GetEflClass()
407 return Efl.Ui.Calendar.efl_ui_calendar_class_get();
409 public static new IntPtr GetEflClassStatic()
411 return Efl.Ui.Calendar.efl_ui_calendar_class_get();
415 private delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
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)));
437 private static efl_ui_calendar_first_day_of_week_get_delegate efl_ui_calendar_first_day_of_week_get_static_delegate;
440 private delegate void efl_ui_calendar_first_day_of_week_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.CalendarWeekday day);
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)
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) {
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);
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);
461 private static efl_ui_calendar_first_day_of_week_set_delegate efl_ui_calendar_first_day_of_week_set_static_delegate;
464 private delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
483 return efl_ui_calendar_date_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
486 private static efl_ui_calendar_date_min_get_delegate efl_ui_calendar_date_min_get_static_delegate;
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);
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)
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);
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);
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);
512 private static efl_ui_calendar_date_min_set_delegate efl_ui_calendar_date_min_set_static_delegate;
515 private delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
534 return efl_ui_calendar_date_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
537 private static efl_ui_calendar_date_max_get_delegate efl_ui_calendar_date_max_get_static_delegate;
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);
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)
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);
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);
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);
563 private static efl_ui_calendar_date_max_set_delegate efl_ui_calendar_date_max_set_static_delegate;
566 private delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
585 return efl_ui_calendar_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
588 private static efl_ui_calendar_date_get_delegate efl_ui_calendar_date_get_static_delegate;
591 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct date);
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)
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);
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);
611 return efl_ui_calendar_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), date);
614 private static efl_ui_calendar_date_set_delegate efl_ui_calendar_date_set_static_delegate;
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);
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)
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);
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);
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);
639 private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate;
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);
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)
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);
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);
661 return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
664 private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate;
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);
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)
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) {
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);
685 efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units);
688 private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate;
691 private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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>);
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);
708 _ret_var.Own = false; return _ret_var.Handle;
710 return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
713 private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate;
716 private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order);
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)
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);
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);
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);
738 private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate;
741 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
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)));
763 private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate;
766 private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode);
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)
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) {
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);
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);
787 private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate;
790 private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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) {
802 ((Calendar)wrapper).Dirty();
803 } catch (Exception e) {
804 Eina.Log.Warning($"Callback error: {e.ToString()}");
805 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
808 efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
811 private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate;
814 private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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) {
826 ((Calendar)wrapper).Prepare();
827 } catch (Exception e) {
828 Eina.Log.Warning($"Callback error: {e.ToString()}");
829 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
832 efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
835 private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate;
838 namespace Efl { namespace Ui {
839 /// <summary>A weekday
840 /// See also <see cref="Efl.Ui.Calendar.SetFirstDayOfWeek"/>.</summary>
841 public enum CalendarWeekday
843 /// <summary>Sunday weekday</summary>
845 /// <summary>Monday weekday</summary>
847 /// <summary>Tuesday weekday</summary>
849 /// <summary>Wednesday weekday</summary>
851 /// <summary>Thursday weekday</summary>
853 /// <summary>Friday weekday</summary>
855 /// <summary>Saturday weekday</summary>
857 /// <summary>Sentinel value to indicate last enum field during iteration</summary>