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>Efl UI clock class</summary>
10 public class Clock : Efl.Ui.LayoutBase, Efl.Eo.IWrapper
12 ///<summary>Pointer to the native class description.</summary>
13 public override System.IntPtr NativeClass {
15 if (((object)this).GetType() == typeof (Clock))
16 return Efl.Ui.ClockNativeInherit.GetEflClassStatic();
18 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
22 efl_ui_clock_class_get();
23 ///<summary>Creates a new instance.</summary>
24 ///<param name="parent">Parent instance.</param>
25 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
26 public Clock(Efl.Object parent
27 , System.String style = null) :
28 base(efl_ui_clock_class_get(), typeof(Clock), parent)
30 if (Efl.Eo.Globals.ParamHelperCheck(style))
31 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
32 FinishInstantiation();
34 ///<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>
35 protected Clock(System.IntPtr raw) : base(raw)
37 RegisterEventProxies();
39 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
40 protected Clock(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
41 ///<summary>Verifies if the given object is equal to this one.</summary>
42 public override bool Equals(object obj)
44 var other = obj as Efl.Object;
47 return this.NativeHandle == other.NativeHandle;
49 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
50 public override int GetHashCode()
52 return this.NativeHandle.ToInt32();
54 ///<summary>Turns the native pointer into a string representation.</summary>
55 public override String ToString()
57 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
59 private static object ChangedEvtKey = new object();
60 /// <summary>Called when clock changed</summary>
61 public event EventHandler ChangedEvt
65 string key = "_EFL_UI_CLOCK_EVENT_CHANGED";
66 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) {
67 eventHandlers.AddHandler(ChangedEvtKey , value);
69 Eina.Log.Error($"Error adding proxy for event {key}");
74 string key = "_EFL_UI_CLOCK_EVENT_CHANGED";
75 if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) {
76 eventHandlers.RemoveHandler(ChangedEvtKey , value);
78 Eina.Log.Error($"Error removing proxy for event {key}");
82 ///<summary>Method to raise event ChangedEvt.</summary>
83 public void On_ChangedEvt(EventArgs e)
87 evt = (EventHandler)eventHandlers[ChangedEvtKey];
91 Efl.EventCb evt_ChangedEvt_delegate;
92 private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
94 EventArgs args = EventArgs.Empty;
97 } catch (Exception e) {
98 Eina.Log.Error(e.ToString());
99 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
103 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
104 protected override void RegisterEventProxies()
106 base.RegisterEventProxies();
107 evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback);
109 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
110 /// Maximum allowed format length is 64 chars.
112 /// Format can include separators for each individual clock field except for AM/PM field.
114 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
116 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
118 /// Default format is taken as per the system locale settings.</summary>
119 /// <returns>The clock format.</returns>
120 virtual public System.String GetFormat() {
121 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_format_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
122 Eina.Error.RaiseIfUnhandledException();
125 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
126 /// Maximum allowed format length is 64 chars.
128 /// Format can include separators for each individual clock field except for AM/PM field.
130 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
132 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
134 /// Default format is taken as per the system locale settings.</summary>
135 /// <param name="fmt">The clock format.</param>
136 /// <returns></returns>
137 virtual public void SetFormat( System.String fmt) {
138 Efl.Ui.ClockNativeInherit.efl_ui_clock_format_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fmt);
139 Eina.Error.RaiseIfUnhandledException();
141 /// <summary>Whether the given clock widget should be paused or not.
142 /// This function pauses or starts the clock widget.</summary>
143 /// <returns><c>true</c> to pause clock, <c>false</c> otherwise</returns>
144 virtual public bool GetPause() {
145 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_pause_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
146 Eina.Error.RaiseIfUnhandledException();
149 /// <summary>Whether the given clock widget should be paused or not.
150 /// This function pauses or starts the clock widget.</summary>
151 /// <param name="paused"><c>true</c> to pause clock, <c>false</c> otherwise</param>
152 /// <returns></returns>
153 virtual public void SetPause( bool paused) {
154 Efl.Ui.ClockNativeInherit.efl_ui_clock_pause_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), paused);
155 Eina.Error.RaiseIfUnhandledException();
157 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
158 /// <returns><c>true</c> to set edit mode, <c>false</c> otherwise</returns>
159 virtual public bool GetEditMode() {
160 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_edit_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
161 Eina.Error.RaiseIfUnhandledException();
164 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
165 /// <param name="value"><c>true</c> to set edit mode, <c>false</c> otherwise</param>
166 /// <returns></returns>
167 virtual public void SetEditMode( bool value) {
168 Efl.Ui.ClockNativeInherit.efl_ui_clock_edit_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value);
169 Eina.Error.RaiseIfUnhandledException();
171 /// <summary>The lower boundary of a field.
172 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
174 /// Month: default value range is from 0 to 11.
176 /// Date: default value range is from 1 to 31 according to the month value.
178 /// Hour: default value will be in terms of 24 hr format (0~23)
180 /// Minute: default value range is from 0 to 59.</summary>
181 /// <returns>Time structure containing the minimum time value.</returns>
182 virtual public Efl.Time GetTimeMin() {
183 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
184 Eina.Error.RaiseIfUnhandledException();
187 /// <summary>The lower boundary of a field.
188 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
190 /// Month: default value range is from 0 to 11.
192 /// Date: default value range is from 1 to 31 according to the month value.
194 /// Hour: default value will be in terms of 24 hr format (0~23)
196 /// Minute: default value range is from 0 to 59.</summary>
197 /// <param name="mintime">Time structure containing the minimum time value.</param>
198 /// <returns></returns>
199 virtual public void SetTimeMin( Efl.Time mintime) {
200 Efl.Time.NativeStruct _in_mintime = mintime;
201 Efl.Ui.ClockNativeInherit.efl_ui_clock_time_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_mintime);
202 Eina.Error.RaiseIfUnhandledException();
204 /// <summary>The upper boundary of a field.
205 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
207 /// Month: default value range is from 0 to 11.
209 /// Date: default value range is from 1 to 31 according to the month value.
211 /// Hour: default value will be in terms of 24 hr format (0~23)
213 /// Minute: default value range is from 0 to 59.</summary>
214 /// <returns>Time structure containing the maximum time value.</returns>
215 virtual public Efl.Time GetTimeMax() {
216 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
217 Eina.Error.RaiseIfUnhandledException();
220 /// <summary>The upper boundary of a field.
221 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
223 /// Month: default value range is from 0 to 11.
225 /// Date: default value range is from 1 to 31 according to the month value.
227 /// Hour: default value will be in terms of 24 hr format (0~23)
229 /// Minute: default value range is from 0 to 59.</summary>
230 /// <param name="maxtime">Time structure containing the maximum time value.</param>
231 /// <returns></returns>
232 virtual public void SetTimeMax( Efl.Time maxtime) {
233 Efl.Time.NativeStruct _in_maxtime = maxtime;
234 Efl.Ui.ClockNativeInherit.efl_ui_clock_time_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_maxtime);
235 Eina.Error.RaiseIfUnhandledException();
237 /// <summary>The current value of a clock object.
238 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
240 /// Month: default value range is from 0 to 11.
242 /// Date: default value range is from 1 to 31 according to the month value.
244 /// Hour: default value will be in terms of 24 hr format (0~23)
246 /// Minute: default value range is from 0 to 59.</summary>
247 /// <returns>Time structure containing the time value.</returns>
248 virtual public Efl.Time GetTime() {
249 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
250 Eina.Error.RaiseIfUnhandledException();
253 /// <summary>The current value of a clock object.
254 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
256 /// Month: default value range is from 0 to 11.
258 /// Date: default value range is from 1 to 31 according to the month value.
260 /// Hour: default value will be in terms of 24 hr format (0~23)
262 /// Minute: default value range is from 0 to 59.</summary>
263 /// <param name="curtime">Time structure containing the time value.</param>
264 /// <returns></returns>
265 virtual public void SetTime( Efl.Time curtime) {
266 Efl.Time.NativeStruct _in_curtime = curtime;
267 Efl.Ui.ClockNativeInherit.efl_ui_clock_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_curtime);
268 Eina.Error.RaiseIfUnhandledException();
270 /// <summary>The field to be visible/not.</summary>
271 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
272 /// <returns><c>true</c> field can be visible, <c>false</c> otherwise.</returns>
273 virtual public bool GetFieldVisible( Efl.Ui.ClockType fieldtype) {
274 var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_field_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype);
275 Eina.Error.RaiseIfUnhandledException();
278 /// <summary>The field to be visible/not.</summary>
279 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
280 /// <param name="visible"><c>true</c> field can be visible, <c>false</c> otherwise.</param>
281 /// <returns></returns>
282 virtual public void SetFieldVisible( Efl.Ui.ClockType fieldtype, bool visible) {
283 Efl.Ui.ClockNativeInherit.efl_ui_clock_field_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype, visible);
284 Eina.Error.RaiseIfUnhandledException();
286 /// <summary>Get the field limits of a field.
287 /// 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.
289 /// There is no provision to set the limits of AM/PM field.</summary>
290 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
291 /// <param name="min">Reference to field's minimum value.</param>
292 /// <param name="max">Reference to field's maximum value.</param>
293 /// <returns></returns>
294 virtual public void GetFieldLimit( Efl.Ui.ClockType fieldtype, out int min, out int max) {
295 Efl.Ui.ClockNativeInherit.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);
296 Eina.Error.RaiseIfUnhandledException();
298 /// <summary>Set a field to be visible or not.
299 /// 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.
301 /// By default the field visibility is set to <c>true</c>.</summary>
302 /// <param name="fieldtype">Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc.</param>
303 /// <param name="min">Reference to field's minimum value.</param>
304 /// <param name="max">Reference to field's maximum value.</param>
305 /// <returns></returns>
306 virtual public void SetFieldLimit( Efl.Ui.ClockType fieldtype, int min, int max) {
307 Efl.Ui.ClockNativeInherit.efl_ui_clock_field_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype, min, max);
308 Eina.Error.RaiseIfUnhandledException();
310 /// <summary>The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p".
311 /// Maximum allowed format length is 64 chars.
313 /// Format can include separators for each individual clock field except for AM/PM field.
315 /// Each separator can be a maximum of 6 UTF-8 bytes. Space is also taken as a separator.
317 /// These specifiers can be arranged in any order and the widget will display the fields accordingly.
319 /// Default format is taken as per the system locale settings.</summary>
320 /// <value>The clock format.</value>
321 public System.String Format {
322 get { return GetFormat(); }
323 set { SetFormat( value); }
325 /// <summary>Whether the given clock widget should be paused or not.
326 /// This function pauses or starts the clock widget.</summary>
327 /// <value><c>true</c> to pause clock, <c>false</c> otherwise</value>
329 get { return GetPause(); }
330 set { SetPause( value); }
332 /// <summary>Digits of the given clock widget should be editable when in editing mode.</summary>
333 /// <value><c>true</c> to set edit mode, <c>false</c> otherwise</value>
334 public bool EditMode {
335 get { return GetEditMode(); }
336 set { SetEditMode( value); }
338 /// <summary>The lower boundary of a field.
339 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
341 /// Month: default value range is from 0 to 11.
343 /// Date: default value range is from 1 to 31 according to the month value.
345 /// Hour: default value will be in terms of 24 hr format (0~23)
347 /// Minute: default value range is from 0 to 59.</summary>
348 /// <value>Time structure containing the minimum time value.</value>
349 public Efl.Time TimeMin {
350 get { return GetTimeMin(); }
351 set { SetTimeMin( value); }
353 /// <summary>The upper boundary of a field.
354 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
356 /// Month: default value range is from 0 to 11.
358 /// Date: default value range is from 1 to 31 according to the month value.
360 /// Hour: default value will be in terms of 24 hr format (0~23)
362 /// Minute: default value range is from 0 to 59.</summary>
363 /// <value>Time structure containing the maximum time value.</value>
364 public Efl.Time TimeMax {
365 get { return GetTimeMax(); }
366 set { SetTimeMax( value); }
368 /// <summary>The current value of a clock object.
369 /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137.
371 /// Month: default value range is from 0 to 11.
373 /// Date: default value range is from 1 to 31 according to the month value.
375 /// Hour: default value will be in terms of 24 hr format (0~23)
377 /// Minute: default value range is from 0 to 59.</summary>
378 /// <value>Time structure containing the time value.</value>
379 public Efl.Time Time {
380 get { return GetTime(); }
381 set { SetTime( value); }
383 private static IntPtr GetEflClassStatic()
385 return Efl.Ui.Clock.efl_ui_clock_class_get();
388 public class ClockNativeInherit : Efl.Ui.LayoutBaseNativeInherit{
389 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
390 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
392 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
393 var methods = Efl.Eo.Globals.GetUserMethods(type);
394 if (efl_ui_clock_format_get_static_delegate == null)
395 efl_ui_clock_format_get_static_delegate = new efl_ui_clock_format_get_delegate(format_get);
396 if (methods.FirstOrDefault(m => m.Name == "GetFormat") != null)
397 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)});
398 if (efl_ui_clock_format_set_static_delegate == null)
399 efl_ui_clock_format_set_static_delegate = new efl_ui_clock_format_set_delegate(format_set);
400 if (methods.FirstOrDefault(m => m.Name == "SetFormat") != null)
401 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)});
402 if (efl_ui_clock_pause_get_static_delegate == null)
403 efl_ui_clock_pause_get_static_delegate = new efl_ui_clock_pause_get_delegate(pause_get);
404 if (methods.FirstOrDefault(m => m.Name == "GetPause") != null)
405 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)});
406 if (efl_ui_clock_pause_set_static_delegate == null)
407 efl_ui_clock_pause_set_static_delegate = new efl_ui_clock_pause_set_delegate(pause_set);
408 if (methods.FirstOrDefault(m => m.Name == "SetPause") != null)
409 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)});
410 if (efl_ui_clock_edit_mode_get_static_delegate == null)
411 efl_ui_clock_edit_mode_get_static_delegate = new efl_ui_clock_edit_mode_get_delegate(edit_mode_get);
412 if (methods.FirstOrDefault(m => m.Name == "GetEditMode") != null)
413 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)});
414 if (efl_ui_clock_edit_mode_set_static_delegate == null)
415 efl_ui_clock_edit_mode_set_static_delegate = new efl_ui_clock_edit_mode_set_delegate(edit_mode_set);
416 if (methods.FirstOrDefault(m => m.Name == "SetEditMode") != null)
417 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)});
418 if (efl_ui_clock_time_min_get_static_delegate == null)
419 efl_ui_clock_time_min_get_static_delegate = new efl_ui_clock_time_min_get_delegate(time_min_get);
420 if (methods.FirstOrDefault(m => m.Name == "GetTimeMin") != null)
421 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)});
422 if (efl_ui_clock_time_min_set_static_delegate == null)
423 efl_ui_clock_time_min_set_static_delegate = new efl_ui_clock_time_min_set_delegate(time_min_set);
424 if (methods.FirstOrDefault(m => m.Name == "SetTimeMin") != null)
425 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)});
426 if (efl_ui_clock_time_max_get_static_delegate == null)
427 efl_ui_clock_time_max_get_static_delegate = new efl_ui_clock_time_max_get_delegate(time_max_get);
428 if (methods.FirstOrDefault(m => m.Name == "GetTimeMax") != null)
429 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)});
430 if (efl_ui_clock_time_max_set_static_delegate == null)
431 efl_ui_clock_time_max_set_static_delegate = new efl_ui_clock_time_max_set_delegate(time_max_set);
432 if (methods.FirstOrDefault(m => m.Name == "SetTimeMax") != null)
433 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)});
434 if (efl_ui_clock_time_get_static_delegate == null)
435 efl_ui_clock_time_get_static_delegate = new efl_ui_clock_time_get_delegate(time_get);
436 if (methods.FirstOrDefault(m => m.Name == "GetTime") != null)
437 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)});
438 if (efl_ui_clock_time_set_static_delegate == null)
439 efl_ui_clock_time_set_static_delegate = new efl_ui_clock_time_set_delegate(time_set);
440 if (methods.FirstOrDefault(m => m.Name == "SetTime") != null)
441 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)});
442 if (efl_ui_clock_field_visible_get_static_delegate == null)
443 efl_ui_clock_field_visible_get_static_delegate = new efl_ui_clock_field_visible_get_delegate(field_visible_get);
444 if (methods.FirstOrDefault(m => m.Name == "GetFieldVisible") != null)
445 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)});
446 if (efl_ui_clock_field_visible_set_static_delegate == null)
447 efl_ui_clock_field_visible_set_static_delegate = new efl_ui_clock_field_visible_set_delegate(field_visible_set);
448 if (methods.FirstOrDefault(m => m.Name == "SetFieldVisible") != null)
449 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)});
450 if (efl_ui_clock_field_limit_get_static_delegate == null)
451 efl_ui_clock_field_limit_get_static_delegate = new efl_ui_clock_field_limit_get_delegate(field_limit_get);
452 if (methods.FirstOrDefault(m => m.Name == "GetFieldLimit") != null)
453 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)});
454 if (efl_ui_clock_field_limit_set_static_delegate == null)
455 efl_ui_clock_field_limit_set_static_delegate = new efl_ui_clock_field_limit_set_delegate(field_limit_set);
456 if (methods.FirstOrDefault(m => m.Name == "SetFieldLimit") != null)
457 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)});
458 descs.AddRange(base.GetEoOps(type));
461 public override IntPtr GetEflClass()
463 return Efl.Ui.Clock.efl_ui_clock_class_get();
465 public static new IntPtr GetEflClassStatic()
467 return Efl.Ui.Clock.efl_ui_clock_class_get();
471 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_clock_format_get_delegate(System.IntPtr obj, System.IntPtr pd);
474 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_clock_format_get_api_delegate(System.IntPtr obj);
475 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");
476 private static System.String format_get(System.IntPtr obj, System.IntPtr pd)
478 Eina.Log.Debug("function efl_ui_clock_format_get was called");
479 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
480 if(wrapper != null) {
481 System.String _ret_var = default(System.String);
483 _ret_var = ((Clock)wrapper).GetFormat();
484 } catch (Exception e) {
485 Eina.Log.Warning($"Callback error: {e.ToString()}");
486 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
490 return efl_ui_clock_format_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
493 private static efl_ui_clock_format_get_delegate efl_ui_clock_format_get_static_delegate;
496 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);
499 public delegate void efl_ui_clock_format_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt);
500 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");
501 private static void format_set(System.IntPtr obj, System.IntPtr pd, System.String fmt)
503 Eina.Log.Debug("function efl_ui_clock_format_set was called");
504 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
505 if(wrapper != null) {
508 ((Clock)wrapper).SetFormat( fmt);
509 } catch (Exception e) {
510 Eina.Log.Warning($"Callback error: {e.ToString()}");
511 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
514 efl_ui_clock_format_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt);
517 private static efl_ui_clock_format_set_delegate efl_ui_clock_format_set_static_delegate;
520 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_pause_get_delegate(System.IntPtr obj, System.IntPtr pd);
523 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_pause_get_api_delegate(System.IntPtr obj);
524 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");
525 private static bool pause_get(System.IntPtr obj, System.IntPtr pd)
527 Eina.Log.Debug("function efl_ui_clock_pause_get was called");
528 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
529 if(wrapper != null) {
530 bool _ret_var = default(bool);
532 _ret_var = ((Clock)wrapper).GetPause();
533 } catch (Exception e) {
534 Eina.Log.Warning($"Callback error: {e.ToString()}");
535 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
539 return efl_ui_clock_pause_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
542 private static efl_ui_clock_pause_get_delegate efl_ui_clock_pause_get_static_delegate;
545 private delegate void efl_ui_clock_pause_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused);
548 public delegate void efl_ui_clock_pause_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused);
549 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");
550 private static void pause_set(System.IntPtr obj, System.IntPtr pd, bool paused)
552 Eina.Log.Debug("function efl_ui_clock_pause_set was called");
553 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
554 if(wrapper != null) {
557 ((Clock)wrapper).SetPause( paused);
558 } catch (Exception e) {
559 Eina.Log.Warning($"Callback error: {e.ToString()}");
560 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
563 efl_ui_clock_pause_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused);
566 private static efl_ui_clock_pause_set_delegate efl_ui_clock_pause_set_static_delegate;
569 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_edit_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
572 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_edit_mode_get_api_delegate(System.IntPtr obj);
573 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");
574 private static bool edit_mode_get(System.IntPtr obj, System.IntPtr pd)
576 Eina.Log.Debug("function efl_ui_clock_edit_mode_get was called");
577 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
578 if(wrapper != null) {
579 bool _ret_var = default(bool);
581 _ret_var = ((Clock)wrapper).GetEditMode();
582 } catch (Exception e) {
583 Eina.Log.Warning($"Callback error: {e.ToString()}");
584 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
588 return efl_ui_clock_edit_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
591 private static efl_ui_clock_edit_mode_get_delegate efl_ui_clock_edit_mode_get_static_delegate;
594 private delegate void efl_ui_clock_edit_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value);
597 public delegate void efl_ui_clock_edit_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value);
598 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");
599 private static void edit_mode_set(System.IntPtr obj, System.IntPtr pd, bool value)
601 Eina.Log.Debug("function efl_ui_clock_edit_mode_set was called");
602 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
603 if(wrapper != null) {
606 ((Clock)wrapper).SetEditMode( value);
607 } catch (Exception e) {
608 Eina.Log.Warning($"Callback error: {e.ToString()}");
609 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
612 efl_ui_clock_edit_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value);
615 private static efl_ui_clock_edit_mode_set_delegate efl_ui_clock_edit_mode_set_static_delegate;
618 private delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
621 public delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_api_delegate(System.IntPtr obj);
622 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");
623 private static Efl.Time.NativeStruct time_min_get(System.IntPtr obj, System.IntPtr pd)
625 Eina.Log.Debug("function efl_ui_clock_time_min_get was called");
626 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
627 if(wrapper != null) {
628 Efl.Time _ret_var = default(Efl.Time);
630 _ret_var = ((Clock)wrapper).GetTimeMin();
631 } catch (Exception e) {
632 Eina.Log.Warning($"Callback error: {e.ToString()}");
633 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
637 return efl_ui_clock_time_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
640 private static efl_ui_clock_time_min_get_delegate efl_ui_clock_time_min_get_static_delegate;
643 private delegate void efl_ui_clock_time_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime);
646 public delegate void efl_ui_clock_time_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct mintime);
647 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");
648 private static void time_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime)
650 Eina.Log.Debug("function efl_ui_clock_time_min_set was called");
651 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
652 if(wrapper != null) {
653 Efl.Time _in_mintime = mintime;
656 ((Clock)wrapper).SetTimeMin( _in_mintime);
657 } catch (Exception e) {
658 Eina.Log.Warning($"Callback error: {e.ToString()}");
659 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
662 efl_ui_clock_time_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mintime);
665 private static efl_ui_clock_time_min_set_delegate efl_ui_clock_time_min_set_static_delegate;
668 private delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
671 public delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_api_delegate(System.IntPtr obj);
672 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");
673 private static Efl.Time.NativeStruct time_max_get(System.IntPtr obj, System.IntPtr pd)
675 Eina.Log.Debug("function efl_ui_clock_time_max_get was called");
676 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
677 if(wrapper != null) {
678 Efl.Time _ret_var = default(Efl.Time);
680 _ret_var = ((Clock)wrapper).GetTimeMax();
681 } catch (Exception e) {
682 Eina.Log.Warning($"Callback error: {e.ToString()}");
683 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
687 return efl_ui_clock_time_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
690 private static efl_ui_clock_time_max_get_delegate efl_ui_clock_time_max_get_static_delegate;
693 private delegate void efl_ui_clock_time_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime);
696 public delegate void efl_ui_clock_time_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct maxtime);
697 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");
698 private static void time_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime)
700 Eina.Log.Debug("function efl_ui_clock_time_max_set was called");
701 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
702 if(wrapper != null) {
703 Efl.Time _in_maxtime = maxtime;
706 ((Clock)wrapper).SetTimeMax( _in_maxtime);
707 } catch (Exception e) {
708 Eina.Log.Warning($"Callback error: {e.ToString()}");
709 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
712 efl_ui_clock_time_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maxtime);
715 private static efl_ui_clock_time_max_set_delegate efl_ui_clock_time_max_set_static_delegate;
718 private delegate Efl.Time.NativeStruct efl_ui_clock_time_get_delegate(System.IntPtr obj, System.IntPtr pd);
721 public delegate Efl.Time.NativeStruct efl_ui_clock_time_get_api_delegate(System.IntPtr obj);
722 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");
723 private static Efl.Time.NativeStruct time_get(System.IntPtr obj, System.IntPtr pd)
725 Eina.Log.Debug("function efl_ui_clock_time_get was called");
726 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
727 if(wrapper != null) {
728 Efl.Time _ret_var = default(Efl.Time);
730 _ret_var = ((Clock)wrapper).GetTime();
731 } catch (Exception e) {
732 Eina.Log.Warning($"Callback error: {e.ToString()}");
733 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
737 return efl_ui_clock_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
740 private static efl_ui_clock_time_get_delegate efl_ui_clock_time_get_static_delegate;
743 private delegate void efl_ui_clock_time_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime);
746 public delegate void efl_ui_clock_time_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct curtime);
747 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");
748 private static void time_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime)
750 Eina.Log.Debug("function efl_ui_clock_time_set was called");
751 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
752 if(wrapper != null) {
753 Efl.Time _in_curtime = curtime;
756 ((Clock)wrapper).SetTime( _in_curtime);
757 } catch (Exception e) {
758 Eina.Log.Warning($"Callback error: {e.ToString()}");
759 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
762 efl_ui_clock_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), curtime);
765 private static efl_ui_clock_time_set_delegate efl_ui_clock_time_set_static_delegate;
768 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_field_visible_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype);
771 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_field_visible_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype);
772 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");
773 private static bool field_visible_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype)
775 Eina.Log.Debug("function efl_ui_clock_field_visible_get was called");
776 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
777 if(wrapper != null) {
778 bool _ret_var = default(bool);
780 _ret_var = ((Clock)wrapper).GetFieldVisible( fieldtype);
781 } catch (Exception e) {
782 Eina.Log.Warning($"Callback error: {e.ToString()}");
783 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
787 return efl_ui_clock_field_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype);
790 private static efl_ui_clock_field_visible_get_delegate efl_ui_clock_field_visible_get_static_delegate;
793 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);
796 public delegate void efl_ui_clock_field_visible_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible);
797 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");
798 private static void field_visible_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, bool visible)
800 Eina.Log.Debug("function efl_ui_clock_field_visible_set was called");
801 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
802 if(wrapper != null) {
805 ((Clock)wrapper).SetFieldVisible( fieldtype, visible);
806 } catch (Exception e) {
807 Eina.Log.Warning($"Callback error: {e.ToString()}");
808 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
811 efl_ui_clock_field_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, visible);
814 private static efl_ui_clock_field_visible_set_delegate efl_ui_clock_field_visible_set_static_delegate;
817 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);
820 public delegate void efl_ui_clock_field_limit_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, out int min, out int max);
821 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");
822 private static void field_limit_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max)
824 Eina.Log.Debug("function efl_ui_clock_field_limit_get was called");
825 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
826 if(wrapper != null) {
827 min = default(int); max = default(int);
829 ((Clock)wrapper).GetFieldLimit( fieldtype, out min, out max);
830 } catch (Exception e) {
831 Eina.Log.Warning($"Callback error: {e.ToString()}");
832 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
835 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);
838 private static efl_ui_clock_field_limit_get_delegate efl_ui_clock_field_limit_get_static_delegate;
841 private delegate void efl_ui_clock_field_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max);
844 public delegate void efl_ui_clock_field_limit_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, int min, int max);
845 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");
846 private static void field_limit_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max)
848 Eina.Log.Debug("function efl_ui_clock_field_limit_set was called");
849 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
850 if(wrapper != null) {
853 ((Clock)wrapper).SetFieldLimit( fieldtype, min, max);
854 } catch (Exception e) {
855 Eina.Log.Warning($"Callback error: {e.ToString()}");
856 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
859 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);
862 private static efl_ui_clock_field_limit_set_delegate efl_ui_clock_field_limit_set_static_delegate;
865 namespace Efl { namespace Ui {
866 /// <summary>Identifies a clock field, The widget supports 6 fields : Year, month, Date, Hour, Minute, AM/PM</summary>
867 public enum ClockType
869 /// <summary>Indicates Year field.</summary>
871 /// <summary>Indicates Month field.</summary>
873 /// <summary>Indicates Date field.</summary>
875 /// <summary>Indicates Hour field.</summary>
877 /// <summary>Indicates Minute field.</summary>
879 /// <summary>Indicates Second field.</summary>
881 /// <summary>Indicated Day field.</summary>
883 /// <summary>Indicates AM/PM field .</summary>