1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Efl UI clock class</summary>
13 [Efl.Ui.Clock.NativeMethods]
14 public class Clock : Efl.Ui.LayoutBase, Efl.Eo.IWrapper
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(Clock))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33 efl_ui_clock_class_get();
34 /// <summary>Initializes a new instance of the <see cref="Clock"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
37 public Clock(Efl.Object parent
38 , System.String style = null) : base(efl_ui_clock_class_get(), typeof(Clock), parent)
40 if (Efl.Eo.Globals.ParamHelperCheck(style))
42 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
45 FinishInstantiation();
48 /// <summary>Initializes a new instance of the <see cref="Clock"/> class.
49 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
50 /// <param name="raw">The native pointer to be wrapped.</param>
51 protected Clock(System.IntPtr raw) : base(raw)
55 /// <summary>Initializes a new instance of the <see cref="Clock"/> class.
56 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
57 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
58 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
59 /// <param name="parent">The Efl.Object parent of this instance.</param>
60 protected Clock(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
64 /// <summary>Verifies if the given object is equal to this one.</summary>
65 /// <param name="instance">The object to compare to.</param>
66 /// <returns>True if both objects point to the same native object.</returns>
67 public override bool Equals(object instance)
69 var other = instance as Efl.Object;
74 return this.NativeHandle == other.NativeHandle;
77 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
78 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
79 public override int GetHashCode()
81 return this.NativeHandle.ToInt32();
84 /// <summary>Turns the native pointer into a string representation.</summary>
85 /// <returns>A string with the type and the native pointer for this object.</returns>
86 public override String ToString()
88 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
91 /// <summary>Called when clock changed</summary>
92 public event EventHandler ChangedEvt
98 var wRef = new WeakReference(this);
99 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
101 var obj = wRef.Target as Efl.Eo.IWrapper;
104 EventArgs args = EventArgs.Empty;
107 value?.Invoke(obj, args);
111 Eina.Log.Error(e.ToString());
112 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
117 string key = "_EFL_UI_CLOCK_EVENT_CHANGED";
118 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
126 string key = "_EFL_UI_CLOCK_EVENT_CHANGED";
127 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
131 ///<summary>Method to raise event ChangedEvt.</summary>
132 public void OnChangedEvt(EventArgs e)
134 var key = "_EFL_UI_CLOCK_EVENT_CHANGED";
135 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
136 if (desc == IntPtr.Zero)
138 Eina.Log.Error($"Failed to get native event {key}");
142 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
144 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
145 /// Maximum allowed format length is 64 chars.
147 /// Format can include separators for each individual clock field except for AM/PM field.
149 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
151 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
153 /// Default format is taken as per the system locale settings.</summary>
154 /// <returns>The clock format.</returns>
155 virtual public System.String GetFormat() {
156 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_format_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
157 Eina.Error.RaiseIfUnhandledException();
160 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
161 /// Maximum allowed format length is 64 chars.
163 /// Format can include separators for each individual clock field except for AM/PM field.
165 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
167 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
169 /// Default format is taken as per the system locale settings.</summary>
170 /// <param name="fmt">The clock format.</param>
171 virtual public void SetFormat(System.String fmt) {
172 Efl.Ui.Clock.NativeMethods.efl_ui_clock_format_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fmt);
173 Eina.Error.RaiseIfUnhandledException();
175 /// <summary>Whether the given clock widget should be paused or not.
176 /// This function pauses or starts the clock widget.</summary>
177 /// <returns><c>true</c> to pause clock, <c>false</c> otherwise</returns>
178 virtual public bool GetPause() {
179 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_pause_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
180 Eina.Error.RaiseIfUnhandledException();
183 /// <summary>Whether the given clock widget should be paused or not.
184 /// This function pauses or starts the clock widget.</summary>
185 /// <param name="paused"><c>true</c> to pause clock, <c>false</c> otherwise</param>
186 virtual public void SetPause(bool paused) {
187 Efl.Ui.Clock.NativeMethods.efl_ui_clock_pause_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),paused);
188 Eina.Error.RaiseIfUnhandledException();
190 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
191 /// <returns><c>true</c> to set edit mode, <c>false</c> otherwise</returns>
192 virtual public bool GetEditMode() {
193 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_edit_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
194 Eina.Error.RaiseIfUnhandledException();
197 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
198 /// <param name="value"><c>true</c> to set edit mode, <c>false</c> otherwise</param>
199 virtual public void SetEditMode(bool value) {
200 Efl.Ui.Clock.NativeMethods.efl_ui_clock_edit_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value);
201 Eina.Error.RaiseIfUnhandledException();
203 /// <summary>The lower boundary of a field.
204 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
206 /// Month: default value range is from 0 to 11.
208 /// Date: default value range is from 1 to 31 according to the month value.
210 /// Hour: default value will be in terms of 24 hr format (0~23)
212 /// Minute: default value range is from 0 to 59.</summary>
213 /// <returns>Time structure containing the minimum time value.</returns>
214 virtual public Efl.Time GetTimeMin() {
215 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
216 Eina.Error.RaiseIfUnhandledException();
219 /// <summary>The lower boundary of a field.
220 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
222 /// Month: default value range is from 0 to 11.
224 /// Date: default value range is from 1 to 31 according to the month value.
226 /// Hour: default value will be in terms of 24 hr format (0~23)
228 /// Minute: default value range is from 0 to 59.</summary>
229 /// <param name="mintime">Time structure containing the minimum time value.</param>
230 virtual public void SetTimeMin(Efl.Time mintime) {
231 Efl.Time.NativeStruct _in_mintime = mintime;
232 Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_mintime);
233 Eina.Error.RaiseIfUnhandledException();
235 /// <summary>The upper boundary of a field.
236 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
238 /// Month: default value range is from 0 to 11.
240 /// Date: default value range is from 1 to 31 according to the month value.
242 /// Hour: default value will be in terms of 24 hr format (0~23)
244 /// Minute: default value range is from 0 to 59.</summary>
245 /// <returns>Time structure containing the maximum time value.</returns>
246 virtual public Efl.Time GetTimeMax() {
247 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
248 Eina.Error.RaiseIfUnhandledException();
251 /// <summary>The upper boundary of a field.
252 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
254 /// Month: default value range is from 0 to 11.
256 /// Date: default value range is from 1 to 31 according to the month value.
258 /// Hour: default value will be in terms of 24 hr format (0~23)
260 /// Minute: default value range is from 0 to 59.</summary>
261 /// <param name="maxtime">Time structure containing the maximum time value.</param>
262 virtual public void SetTimeMax(Efl.Time maxtime) {
263 Efl.Time.NativeStruct _in_maxtime = maxtime;
264 Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_maxtime);
265 Eina.Error.RaiseIfUnhandledException();
267 /// <summary>The current value of a clock object.
268 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
270 /// Month: default value range is from 0 to 11.
272 /// Date: default value range is from 1 to 31 according to the month value.
274 /// Hour: default value will be in terms of 24 hr format (0~23)
276 /// Minute: default value range is from 0 to 59.</summary>
277 /// <returns>Time structure containing the time value.</returns>
278 virtual public Efl.Time GetTime() {
279 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
280 Eina.Error.RaiseIfUnhandledException();
283 /// <summary>The current value of a clock object.
284 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
286 /// Month: default value range is from 0 to 11.
288 /// Date: default value range is from 1 to 31 according to the month value.
290 /// Hour: default value will be in terms of 24 hr format (0~23)
292 /// Minute: default value range is from 0 to 59.</summary>
293 /// <param name="curtime">Time structure containing the time value.</param>
294 virtual public void SetTime(Efl.Time curtime) {
295 Efl.Time.NativeStruct _in_curtime = curtime;
296 Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_curtime);
297 Eina.Error.RaiseIfUnhandledException();
299 /// <summary>The field to be visible/not.</summary>
300 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
301 /// <returns><c>true</c> field can be visible, <c>false</c> otherwise.</returns>
302 virtual public bool GetFieldVisible(Efl.Ui.ClockType fieldtype) {
303 var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype);
304 Eina.Error.RaiseIfUnhandledException();
307 /// <summary>The field to be visible/not.</summary>
308 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
309 /// <param name="visible"><c>true</c> field can be visible, <c>false</c> otherwise.</param>
310 virtual public void SetFieldVisible(Efl.Ui.ClockType fieldtype, bool visible) {
311 Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, visible);
312 Eina.Error.RaiseIfUnhandledException();
314 /// <summary>Get the field limits of a field.
315 /// Limits can be set to individual fields, independently, except for the AM/PM field. Any field can display the values only in between these minimum and maximum limits unless the corresponding time value is restricted from MinTime to MaxTime. That is, min/max field limits always work under the limitations of mintime/maxtime.
317 /// There is no provision to set the limits of AM/PM field.</summary>
318 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
319 /// <param name="min">Reference to field's minimum value.</param>
320 /// <param name="max">Reference to field's maximum value.</param>
321 virtual public void GetFieldLimit(Efl.Ui.ClockType fieldtype, out int min, out int max) {
322 Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, out min, out max);
323 Eina.Error.RaiseIfUnhandledException();
325 /// <summary>Set a field to be visible or not.
326 /// Setting this API to <c>true</c> in itself doen't ensure that the field is visible. The field's format also must be present in the overall clock format. If a field's visibility is set to <c>false</c> then it won't appear even though its format is present. In summary, if this API is set to true and the corresponding field's format is present in clock format, the field is visible.
328 /// By default the field visibility is set to <c>true</c>.</summary>
329 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
330 /// <param name="min">Reference to field's minimum value.</param>
331 /// <param name="max">Reference to field's maximum value.</param>
332 virtual public void SetFieldLimit(Efl.Ui.ClockType fieldtype, int min, int max) {
333 Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, min, max);
334 Eina.Error.RaiseIfUnhandledException();
336 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
337 /// Maximum allowed format length is 64 chars.
339 /// Format can include separators for each individual clock field except for AM/PM field.
341 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
343 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
345 /// Default format is taken as per the system locale settings.</summary>
346 /// <value>The clock format.</value>
347 public System.String Format {
348 get { return GetFormat(); }
349 set { SetFormat(value); }
351 /// <summary>Whether the given clock widget should be paused or not.
352 /// This function pauses or starts the clock widget.</summary>
353 /// <value><c>true</c> to pause clock, <c>false</c> otherwise</value>
355 get { return GetPause(); }
356 set { SetPause(value); }
358 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
359 /// <value><c>true</c> to set edit mode, <c>false</c> otherwise</value>
360 public bool EditMode {
361 get { return GetEditMode(); }
362 set { SetEditMode(value); }
364 /// <summary>The lower boundary of a field.
365 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
367 /// Month: default value range is from 0 to 11.
369 /// Date: default value range is from 1 to 31 according to the month value.
371 /// Hour: default value will be in terms of 24 hr format (0~23)
373 /// Minute: default value range is from 0 to 59.</summary>
374 /// <value>Time structure containing the minimum time value.</value>
375 public Efl.Time TimeMin {
376 get { return GetTimeMin(); }
377 set { SetTimeMin(value); }
379 /// <summary>The upper boundary of a field.
380 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
382 /// Month: default value range is from 0 to 11.
384 /// Date: default value range is from 1 to 31 according to the month value.
386 /// Hour: default value will be in terms of 24 hr format (0~23)
388 /// Minute: default value range is from 0 to 59.</summary>
389 /// <value>Time structure containing the maximum time value.</value>
390 public Efl.Time TimeMax {
391 get { return GetTimeMax(); }
392 set { SetTimeMax(value); }
394 /// <summary>The current value of a clock object.
395 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
397 /// Month: default value range is from 0 to 11.
399 /// Date: default value range is from 1 to 31 according to the month value.
401 /// Hour: default value will be in terms of 24 hr format (0~23)
403 /// Minute: default value range is from 0 to 59.</summary>
404 /// <value>Time structure containing the time value.</value>
405 public Efl.Time Time {
406 get { return GetTime(); }
407 set { SetTime(value); }
409 private static IntPtr GetEflClassStatic()
411 return Efl.Ui.Clock.efl_ui_clock_class_get();
413 /// <summary>Wrapper for native methods and virtual method delegates.
414 /// For internal use by generated code only.</summary>
415 public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
417 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
418 /// <summary>Gets the list of Eo operations to override.</summary>
419 /// <returns>The list of Eo operations to be overload.</returns>
420 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
422 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
423 var methods = Efl.Eo.Globals.GetUserMethods(type);
425 if (efl_ui_clock_format_get_static_delegate == null)
427 efl_ui_clock_format_get_static_delegate = new efl_ui_clock_format_get_delegate(format_get);
430 if (methods.FirstOrDefault(m => m.Name == "GetFormat") != null)
432 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_format_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_get_static_delegate) });
435 if (efl_ui_clock_format_set_static_delegate == null)
437 efl_ui_clock_format_set_static_delegate = new efl_ui_clock_format_set_delegate(format_set);
440 if (methods.FirstOrDefault(m => m.Name == "SetFormat") != null)
442 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_format_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_set_static_delegate) });
445 if (efl_ui_clock_pause_get_static_delegate == null)
447 efl_ui_clock_pause_get_static_delegate = new efl_ui_clock_pause_get_delegate(pause_get);
450 if (methods.FirstOrDefault(m => m.Name == "GetPause") != null)
452 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_pause_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_get_static_delegate) });
455 if (efl_ui_clock_pause_set_static_delegate == null)
457 efl_ui_clock_pause_set_static_delegate = new efl_ui_clock_pause_set_delegate(pause_set);
460 if (methods.FirstOrDefault(m => m.Name == "SetPause") != null)
462 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_pause_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_set_static_delegate) });
465 if (efl_ui_clock_edit_mode_get_static_delegate == null)
467 efl_ui_clock_edit_mode_get_static_delegate = new efl_ui_clock_edit_mode_get_delegate(edit_mode_get);
470 if (methods.FirstOrDefault(m => m.Name == "GetEditMode") != null)
472 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_edit_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_get_static_delegate) });
475 if (efl_ui_clock_edit_mode_set_static_delegate == null)
477 efl_ui_clock_edit_mode_set_static_delegate = new efl_ui_clock_edit_mode_set_delegate(edit_mode_set);
480 if (methods.FirstOrDefault(m => m.Name == "SetEditMode") != null)
482 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_edit_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_set_static_delegate) });
485 if (efl_ui_clock_time_min_get_static_delegate == null)
487 efl_ui_clock_time_min_get_static_delegate = new efl_ui_clock_time_min_get_delegate(time_min_get);
490 if (methods.FirstOrDefault(m => m.Name == "GetTimeMin") != null)
492 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_get_static_delegate) });
495 if (efl_ui_clock_time_min_set_static_delegate == null)
497 efl_ui_clock_time_min_set_static_delegate = new efl_ui_clock_time_min_set_delegate(time_min_set);
500 if (methods.FirstOrDefault(m => m.Name == "SetTimeMin") != null)
502 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_set_static_delegate) });
505 if (efl_ui_clock_time_max_get_static_delegate == null)
507 efl_ui_clock_time_max_get_static_delegate = new efl_ui_clock_time_max_get_delegate(time_max_get);
510 if (methods.FirstOrDefault(m => m.Name == "GetTimeMax") != null)
512 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_get_static_delegate) });
515 if (efl_ui_clock_time_max_set_static_delegate == null)
517 efl_ui_clock_time_max_set_static_delegate = new efl_ui_clock_time_max_set_delegate(time_max_set);
520 if (methods.FirstOrDefault(m => m.Name == "SetTimeMax") != null)
522 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_set_static_delegate) });
525 if (efl_ui_clock_time_get_static_delegate == null)
527 efl_ui_clock_time_get_static_delegate = new efl_ui_clock_time_get_delegate(time_get);
530 if (methods.FirstOrDefault(m => m.Name == "GetTime") != null)
532 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_get_static_delegate) });
535 if (efl_ui_clock_time_set_static_delegate == null)
537 efl_ui_clock_time_set_static_delegate = new efl_ui_clock_time_set_delegate(time_set);
540 if (methods.FirstOrDefault(m => m.Name == "SetTime") != null)
542 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_set_static_delegate) });
545 if (efl_ui_clock_field_visible_get_static_delegate == null)
547 efl_ui_clock_field_visible_get_static_delegate = new efl_ui_clock_field_visible_get_delegate(field_visible_get);
550 if (methods.FirstOrDefault(m => m.Name == "GetFieldVisible") != null)
552 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_get_static_delegate) });
555 if (efl_ui_clock_field_visible_set_static_delegate == null)
557 efl_ui_clock_field_visible_set_static_delegate = new efl_ui_clock_field_visible_set_delegate(field_visible_set);
560 if (methods.FirstOrDefault(m => m.Name == "SetFieldVisible") != null)
562 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_set_static_delegate) });
565 if (efl_ui_clock_field_limit_get_static_delegate == null)
567 efl_ui_clock_field_limit_get_static_delegate = new efl_ui_clock_field_limit_get_delegate(field_limit_get);
570 if (methods.FirstOrDefault(m => m.Name == "GetFieldLimit") != null)
572 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_get_static_delegate) });
575 if (efl_ui_clock_field_limit_set_static_delegate == null)
577 efl_ui_clock_field_limit_set_static_delegate = new efl_ui_clock_field_limit_set_delegate(field_limit_set);
580 if (methods.FirstOrDefault(m => m.Name == "SetFieldLimit") != null)
582 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_set_static_delegate) });
585 descs.AddRange(base.GetEoOps(type));
588 /// <summary>Returns the Eo class for the native methods of this class.</summary>
589 /// <returns>The native class pointer.</returns>
590 public override IntPtr GetEflClass()
592 return Efl.Ui.Clock.efl_ui_clock_class_get();
595 #pragma warning disable CA1707, SA1300, SA1600
597 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
598 private delegate System.String efl_ui_clock_format_get_delegate(System.IntPtr obj, System.IntPtr pd);
600 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
601 public delegate System.String efl_ui_clock_format_get_api_delegate(System.IntPtr obj);
603 public static Efl.Eo.FunctionWrapper<efl_ui_clock_format_get_api_delegate> efl_ui_clock_format_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_format_get_api_delegate>(Module, "efl_ui_clock_format_get");
605 private static System.String format_get(System.IntPtr obj, System.IntPtr pd)
607 Eina.Log.Debug("function efl_ui_clock_format_get was called");
608 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
611 System.String _ret_var = default(System.String);
614 _ret_var = ((Clock)wrapper).GetFormat();
618 Eina.Log.Warning($"Callback error: {e.ToString()}");
619 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
627 return efl_ui_clock_format_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
631 private static efl_ui_clock_format_get_delegate efl_ui_clock_format_get_static_delegate;
634 private delegate void efl_ui_clock_format_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt);
637 public delegate void efl_ui_clock_format_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt);
639 public static Efl.Eo.FunctionWrapper<efl_ui_clock_format_set_api_delegate> efl_ui_clock_format_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_format_set_api_delegate>(Module, "efl_ui_clock_format_set");
641 private static void format_set(System.IntPtr obj, System.IntPtr pd, System.String fmt)
643 Eina.Log.Debug("function efl_ui_clock_format_set was called");
644 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
650 ((Clock)wrapper).SetFormat(fmt);
654 Eina.Log.Warning($"Callback error: {e.ToString()}");
655 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
662 efl_ui_clock_format_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt);
666 private static efl_ui_clock_format_set_delegate efl_ui_clock_format_set_static_delegate;
668 [return: MarshalAs(UnmanagedType.U1)]
669 private delegate bool efl_ui_clock_pause_get_delegate(System.IntPtr obj, System.IntPtr pd);
671 [return: MarshalAs(UnmanagedType.U1)]
672 public delegate bool efl_ui_clock_pause_get_api_delegate(System.IntPtr obj);
674 public static Efl.Eo.FunctionWrapper<efl_ui_clock_pause_get_api_delegate> efl_ui_clock_pause_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_pause_get_api_delegate>(Module, "efl_ui_clock_pause_get");
676 private static bool pause_get(System.IntPtr obj, System.IntPtr pd)
678 Eina.Log.Debug("function efl_ui_clock_pause_get was called");
679 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
682 bool _ret_var = default(bool);
685 _ret_var = ((Clock)wrapper).GetPause();
689 Eina.Log.Warning($"Callback error: {e.ToString()}");
690 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
698 return efl_ui_clock_pause_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
702 private static efl_ui_clock_pause_get_delegate efl_ui_clock_pause_get_static_delegate;
705 private delegate void efl_ui_clock_pause_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused);
708 public delegate void efl_ui_clock_pause_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused);
710 public static Efl.Eo.FunctionWrapper<efl_ui_clock_pause_set_api_delegate> efl_ui_clock_pause_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_pause_set_api_delegate>(Module, "efl_ui_clock_pause_set");
712 private static void pause_set(System.IntPtr obj, System.IntPtr pd, bool paused)
714 Eina.Log.Debug("function efl_ui_clock_pause_set was called");
715 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
721 ((Clock)wrapper).SetPause(paused);
725 Eina.Log.Warning($"Callback error: {e.ToString()}");
726 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
733 efl_ui_clock_pause_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused);
737 private static efl_ui_clock_pause_set_delegate efl_ui_clock_pause_set_static_delegate;
739 [return: MarshalAs(UnmanagedType.U1)]
740 private delegate bool efl_ui_clock_edit_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
742 [return: MarshalAs(UnmanagedType.U1)]
743 public delegate bool efl_ui_clock_edit_mode_get_api_delegate(System.IntPtr obj);
745 public static Efl.Eo.FunctionWrapper<efl_ui_clock_edit_mode_get_api_delegate> efl_ui_clock_edit_mode_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_edit_mode_get_api_delegate>(Module, "efl_ui_clock_edit_mode_get");
747 private static bool edit_mode_get(System.IntPtr obj, System.IntPtr pd)
749 Eina.Log.Debug("function efl_ui_clock_edit_mode_get was called");
750 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
753 bool _ret_var = default(bool);
756 _ret_var = ((Clock)wrapper).GetEditMode();
760 Eina.Log.Warning($"Callback error: {e.ToString()}");
761 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
769 return efl_ui_clock_edit_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
773 private static efl_ui_clock_edit_mode_get_delegate efl_ui_clock_edit_mode_get_static_delegate;
776 private delegate void efl_ui_clock_edit_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value);
779 public delegate void efl_ui_clock_edit_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value);
781 public static Efl.Eo.FunctionWrapper<efl_ui_clock_edit_mode_set_api_delegate> efl_ui_clock_edit_mode_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_edit_mode_set_api_delegate>(Module, "efl_ui_clock_edit_mode_set");
783 private static void edit_mode_set(System.IntPtr obj, System.IntPtr pd, bool value)
785 Eina.Log.Debug("function efl_ui_clock_edit_mode_set was called");
786 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
792 ((Clock)wrapper).SetEditMode(value);
796 Eina.Log.Warning($"Callback error: {e.ToString()}");
797 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
804 efl_ui_clock_edit_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value);
808 private static efl_ui_clock_edit_mode_set_delegate efl_ui_clock_edit_mode_set_static_delegate;
811 private delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
814 public delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_api_delegate(System.IntPtr obj);
816 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_min_get_api_delegate> efl_ui_clock_time_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_min_get_api_delegate>(Module, "efl_ui_clock_time_min_get");
818 private static Efl.Time.NativeStruct time_min_get(System.IntPtr obj, System.IntPtr pd)
820 Eina.Log.Debug("function efl_ui_clock_time_min_get was called");
821 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
824 Efl.Time _ret_var = default(Efl.Time);
827 _ret_var = ((Clock)wrapper).GetTimeMin();
831 Eina.Log.Warning($"Callback error: {e.ToString()}");
832 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
840 return efl_ui_clock_time_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
844 private static efl_ui_clock_time_min_get_delegate efl_ui_clock_time_min_get_static_delegate;
847 private delegate void efl_ui_clock_time_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime);
850 public delegate void efl_ui_clock_time_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct mintime);
852 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_min_set_api_delegate> efl_ui_clock_time_min_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_min_set_api_delegate>(Module, "efl_ui_clock_time_min_set");
854 private static void time_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime)
856 Eina.Log.Debug("function efl_ui_clock_time_min_set was called");
857 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
860 Efl.Time _in_mintime = mintime;
864 ((Clock)wrapper).SetTimeMin(_in_mintime);
868 Eina.Log.Warning($"Callback error: {e.ToString()}");
869 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
876 efl_ui_clock_time_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mintime);
880 private static efl_ui_clock_time_min_set_delegate efl_ui_clock_time_min_set_static_delegate;
883 private delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
886 public delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_api_delegate(System.IntPtr obj);
888 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_max_get_api_delegate> efl_ui_clock_time_max_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_max_get_api_delegate>(Module, "efl_ui_clock_time_max_get");
890 private static Efl.Time.NativeStruct time_max_get(System.IntPtr obj, System.IntPtr pd)
892 Eina.Log.Debug("function efl_ui_clock_time_max_get was called");
893 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
896 Efl.Time _ret_var = default(Efl.Time);
899 _ret_var = ((Clock)wrapper).GetTimeMax();
903 Eina.Log.Warning($"Callback error: {e.ToString()}");
904 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
912 return efl_ui_clock_time_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
916 private static efl_ui_clock_time_max_get_delegate efl_ui_clock_time_max_get_static_delegate;
919 private delegate void efl_ui_clock_time_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime);
922 public delegate void efl_ui_clock_time_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct maxtime);
924 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_max_set_api_delegate> efl_ui_clock_time_max_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_max_set_api_delegate>(Module, "efl_ui_clock_time_max_set");
926 private static void time_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime)
928 Eina.Log.Debug("function efl_ui_clock_time_max_set was called");
929 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
932 Efl.Time _in_maxtime = maxtime;
936 ((Clock)wrapper).SetTimeMax(_in_maxtime);
940 Eina.Log.Warning($"Callback error: {e.ToString()}");
941 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
948 efl_ui_clock_time_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maxtime);
952 private static efl_ui_clock_time_max_set_delegate efl_ui_clock_time_max_set_static_delegate;
955 private delegate Efl.Time.NativeStruct efl_ui_clock_time_get_delegate(System.IntPtr obj, System.IntPtr pd);
958 public delegate Efl.Time.NativeStruct efl_ui_clock_time_get_api_delegate(System.IntPtr obj);
960 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_get_api_delegate> efl_ui_clock_time_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_get_api_delegate>(Module, "efl_ui_clock_time_get");
962 private static Efl.Time.NativeStruct time_get(System.IntPtr obj, System.IntPtr pd)
964 Eina.Log.Debug("function efl_ui_clock_time_get was called");
965 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
968 Efl.Time _ret_var = default(Efl.Time);
971 _ret_var = ((Clock)wrapper).GetTime();
975 Eina.Log.Warning($"Callback error: {e.ToString()}");
976 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
984 return efl_ui_clock_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
988 private static efl_ui_clock_time_get_delegate efl_ui_clock_time_get_static_delegate;
991 private delegate void efl_ui_clock_time_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime);
994 public delegate void efl_ui_clock_time_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct curtime);
996 public static Efl.Eo.FunctionWrapper<efl_ui_clock_time_set_api_delegate> efl_ui_clock_time_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_time_set_api_delegate>(Module, "efl_ui_clock_time_set");
998 private static void time_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime)
1000 Eina.Log.Debug("function efl_ui_clock_time_set was called");
1001 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1002 if (wrapper != null)
1004 Efl.Time _in_curtime = curtime;
1008 ((Clock)wrapper).SetTime(_in_curtime);
1012 Eina.Log.Warning($"Callback error: {e.ToString()}");
1013 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1020 efl_ui_clock_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), curtime);
1024 private static efl_ui_clock_time_set_delegate efl_ui_clock_time_set_static_delegate;
1026 [return: MarshalAs(UnmanagedType.U1)]
1027 private delegate bool efl_ui_clock_field_visible_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype);
1029 [return: MarshalAs(UnmanagedType.U1)]
1030 public delegate bool efl_ui_clock_field_visible_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype);
1032 public static Efl.Eo.FunctionWrapper<efl_ui_clock_field_visible_get_api_delegate> efl_ui_clock_field_visible_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_field_visible_get_api_delegate>(Module, "efl_ui_clock_field_visible_get");
1034 private static bool field_visible_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype)
1036 Eina.Log.Debug("function efl_ui_clock_field_visible_get was called");
1037 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1038 if (wrapper != null)
1040 bool _ret_var = default(bool);
1043 _ret_var = ((Clock)wrapper).GetFieldVisible(fieldtype);
1047 Eina.Log.Warning($"Callback error: {e.ToString()}");
1048 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1056 return efl_ui_clock_field_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype);
1060 private static efl_ui_clock_field_visible_get_delegate efl_ui_clock_field_visible_get_static_delegate;
1063 private delegate void efl_ui_clock_field_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible);
1066 public delegate void efl_ui_clock_field_visible_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible);
1068 public static Efl.Eo.FunctionWrapper<efl_ui_clock_field_visible_set_api_delegate> efl_ui_clock_field_visible_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_field_visible_set_api_delegate>(Module, "efl_ui_clock_field_visible_set");
1070 private static void field_visible_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, bool visible)
1072 Eina.Log.Debug("function efl_ui_clock_field_visible_set was called");
1073 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1074 if (wrapper != null)
1079 ((Clock)wrapper).SetFieldVisible(fieldtype, visible);
1083 Eina.Log.Warning($"Callback error: {e.ToString()}");
1084 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1091 efl_ui_clock_field_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, visible);
1095 private static efl_ui_clock_field_visible_set_delegate efl_ui_clock_field_visible_set_static_delegate;
1098 private delegate void efl_ui_clock_field_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max);
1101 public delegate void efl_ui_clock_field_limit_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, out int min, out int max);
1103 public static Efl.Eo.FunctionWrapper<efl_ui_clock_field_limit_get_api_delegate> efl_ui_clock_field_limit_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_field_limit_get_api_delegate>(Module, "efl_ui_clock_field_limit_get");
1105 private static void field_limit_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max)
1107 Eina.Log.Debug("function efl_ui_clock_field_limit_get was called");
1108 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1109 if (wrapper != null)
1111 min = default(int); max = default(int);
1114 ((Clock)wrapper).GetFieldLimit(fieldtype, out min, out max);
1118 Eina.Log.Warning($"Callback error: {e.ToString()}");
1119 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1126 efl_ui_clock_field_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, out min, out max);
1130 private static efl_ui_clock_field_limit_get_delegate efl_ui_clock_field_limit_get_static_delegate;
1133 private delegate void efl_ui_clock_field_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max);
1136 public delegate void efl_ui_clock_field_limit_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, int min, int max);
1138 public static Efl.Eo.FunctionWrapper<efl_ui_clock_field_limit_set_api_delegate> efl_ui_clock_field_limit_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clock_field_limit_set_api_delegate>(Module, "efl_ui_clock_field_limit_set");
1140 private static void field_limit_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max)
1142 Eina.Log.Debug("function efl_ui_clock_field_limit_set was called");
1143 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1144 if (wrapper != null)
1149 ((Clock)wrapper).SetFieldLimit(fieldtype, min, max);
1153 Eina.Log.Warning($"Callback error: {e.ToString()}");
1154 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1161 efl_ui_clock_field_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, min, max);
1165 private static efl_ui_clock_field_limit_set_delegate efl_ui_clock_field_limit_set_static_delegate;
1167 #pragma warning restore CA1707, SA1300, SA1600
1179 /// <summary>Identifies a clock field, The widget supports 6 fields : Year, month, Date, Hour, Minute, AM/PM</summary>
1180 public enum ClockType
1182 /// <summary>Indicates Year field.</summary>
1184 /// <summary>Indicates Month field.</summary>
1186 /// <summary>Indicates Date field.</summary>
1188 /// <summary>Indicates Hour field.</summary>
1190 /// <summary>Indicates Minute field.</summary>
1192 /// <summary>Indicates Second field.</summary>
1194 /// <summary>Indicated Day field.</summary>
1196 /// <summary>Indicates AM/PM field .</summary>