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>Push-button widget
9 /// Press it and run some function. It can contain a simple label and icon object and it also has an autorepeat feature.</summary>
11 public class Button : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.Ui.IAutorepeat,Efl.Ui.IClickable
13 ///<summary>Pointer to the native class description.</summary>
14 public override System.IntPtr NativeClass {
16 if (((object)this).GetType() == typeof (Button))
17 return Efl.Ui.ButtonNativeInherit.GetEflClassStatic();
19 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
22 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
23 efl_ui_button_class_get();
24 ///<summary>Creates a new instance.</summary>
25 ///<param name="parent">Parent instance.</param>
26 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
27 public Button(Efl.Object parent
28 , System.String style = null) :
29 base(efl_ui_button_class_get(), typeof(Button), parent)
31 if (Efl.Eo.Globals.ParamHelperCheck(style))
32 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
33 FinishInstantiation();
35 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
36 protected Button(System.IntPtr raw) : base(raw)
38 RegisterEventProxies();
40 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
41 protected Button(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
42 ///<summary>Verifies if the given object is equal to this one.</summary>
43 public override bool Equals(object obj)
45 var other = obj as Efl.Object;
48 return this.NativeHandle == other.NativeHandle;
50 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
51 public override int GetHashCode()
53 return this.NativeHandle.ToInt32();
55 ///<summary>Turns the native pointer into a string representation.</summary>
56 public override String ToString()
58 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
60 private static object ContentChangedEvtKey = new object();
61 /// <summary>Sent after the content is set or unset using the current content object.
62 /// (Since EFL 1.22)</summary>
63 public event EventHandler<Efl.IContentContentChangedEvt_Args> ContentChangedEvt
67 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
68 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) {
69 eventHandlers.AddHandler(ContentChangedEvtKey , value);
71 Eina.Log.Error($"Error adding proxy for event {key}");
76 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
77 if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) {
78 eventHandlers.RemoveHandler(ContentChangedEvtKey , value);
80 Eina.Log.Error($"Error removing proxy for event {key}");
84 ///<summary>Method to raise event ContentChangedEvt.</summary>
85 public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
87 EventHandler<Efl.IContentContentChangedEvt_Args> evt;
89 evt = (EventHandler<Efl.IContentContentChangedEvt_Args>)eventHandlers[ContentChangedEvtKey];
93 Efl.EventCb evt_ContentChangedEvt_delegate;
94 private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
96 Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
97 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
99 On_ContentChangedEvt(args);
100 } catch (Exception e) {
101 Eina.Log.Error(e.ToString());
102 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
106 private static object ClickedEvtKey = new object();
107 /// <summary>Called when object is clicked</summary>
108 public event EventHandler ClickedEvt
112 string key = "_EFL_UI_EVENT_CLICKED";
113 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) {
114 eventHandlers.AddHandler(ClickedEvtKey , value);
116 Eina.Log.Error($"Error adding proxy for event {key}");
121 string key = "_EFL_UI_EVENT_CLICKED";
122 if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) {
123 eventHandlers.RemoveHandler(ClickedEvtKey , value);
125 Eina.Log.Error($"Error removing proxy for event {key}");
129 ///<summary>Method to raise event ClickedEvt.</summary>
130 public void On_ClickedEvt(EventArgs e)
134 evt = (EventHandler)eventHandlers[ClickedEvtKey];
136 evt?.Invoke(this, e);
138 Efl.EventCb evt_ClickedEvt_delegate;
139 private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
141 EventArgs args = EventArgs.Empty;
144 } catch (Exception e) {
145 Eina.Log.Error(e.ToString());
146 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
150 private static object ClickedDoubleEvtKey = new object();
151 /// <summary>Called when object receives a double click</summary>
152 public event EventHandler ClickedDoubleEvt
156 string key = "_EFL_UI_EVENT_CLICKED_DOUBLE";
157 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) {
158 eventHandlers.AddHandler(ClickedDoubleEvtKey , value);
160 Eina.Log.Error($"Error adding proxy for event {key}");
165 string key = "_EFL_UI_EVENT_CLICKED_DOUBLE";
166 if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) {
167 eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value);
169 Eina.Log.Error($"Error removing proxy for event {key}");
173 ///<summary>Method to raise event ClickedDoubleEvt.</summary>
174 public void On_ClickedDoubleEvt(EventArgs e)
178 evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey];
180 evt?.Invoke(this, e);
182 Efl.EventCb evt_ClickedDoubleEvt_delegate;
183 private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
185 EventArgs args = EventArgs.Empty;
187 On_ClickedDoubleEvt(args);
188 } catch (Exception e) {
189 Eina.Log.Error(e.ToString());
190 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
194 private static object ClickedTripleEvtKey = new object();
195 /// <summary>Called when object receives a triple click</summary>
196 public event EventHandler ClickedTripleEvt
200 string key = "_EFL_UI_EVENT_CLICKED_TRIPLE";
201 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) {
202 eventHandlers.AddHandler(ClickedTripleEvtKey , value);
204 Eina.Log.Error($"Error adding proxy for event {key}");
209 string key = "_EFL_UI_EVENT_CLICKED_TRIPLE";
210 if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) {
211 eventHandlers.RemoveHandler(ClickedTripleEvtKey , value);
213 Eina.Log.Error($"Error removing proxy for event {key}");
217 ///<summary>Method to raise event ClickedTripleEvt.</summary>
218 public void On_ClickedTripleEvt(EventArgs e)
222 evt = (EventHandler)eventHandlers[ClickedTripleEvtKey];
224 evt?.Invoke(this, e);
226 Efl.EventCb evt_ClickedTripleEvt_delegate;
227 private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
229 EventArgs args = EventArgs.Empty;
231 On_ClickedTripleEvt(args);
232 } catch (Exception e) {
233 Eina.Log.Error(e.ToString());
234 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
238 private static object ClickedRightEvtKey = new object();
239 /// <summary>Called when object receives a right click</summary>
240 public event EventHandler<Efl.Ui.IClickableClickedRightEvt_Args> ClickedRightEvt
244 string key = "_EFL_UI_EVENT_CLICKED_RIGHT";
245 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) {
246 eventHandlers.AddHandler(ClickedRightEvtKey , value);
248 Eina.Log.Error($"Error adding proxy for event {key}");
253 string key = "_EFL_UI_EVENT_CLICKED_RIGHT";
254 if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) {
255 eventHandlers.RemoveHandler(ClickedRightEvtKey , value);
257 Eina.Log.Error($"Error removing proxy for event {key}");
261 ///<summary>Method to raise event ClickedRightEvt.</summary>
262 public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e)
264 EventHandler<Efl.Ui.IClickableClickedRightEvt_Args> evt;
266 evt = (EventHandler<Efl.Ui.IClickableClickedRightEvt_Args>)eventHandlers[ClickedRightEvtKey];
268 evt?.Invoke(this, e);
270 Efl.EventCb evt_ClickedRightEvt_delegate;
271 private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
273 Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args();
274 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
276 On_ClickedRightEvt(args);
277 } catch (Exception e) {
278 Eina.Log.Error(e.ToString());
279 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
283 private static object PressedEvtKey = new object();
284 /// <summary>Called when the object is pressed</summary>
285 public event EventHandler<Efl.Ui.IClickablePressedEvt_Args> PressedEvt
289 string key = "_EFL_UI_EVENT_PRESSED";
290 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) {
291 eventHandlers.AddHandler(PressedEvtKey , value);
293 Eina.Log.Error($"Error adding proxy for event {key}");
298 string key = "_EFL_UI_EVENT_PRESSED";
299 if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) {
300 eventHandlers.RemoveHandler(PressedEvtKey , value);
302 Eina.Log.Error($"Error removing proxy for event {key}");
306 ///<summary>Method to raise event PressedEvt.</summary>
307 public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e)
309 EventHandler<Efl.Ui.IClickablePressedEvt_Args> evt;
311 evt = (EventHandler<Efl.Ui.IClickablePressedEvt_Args>)eventHandlers[PressedEvtKey];
313 evt?.Invoke(this, e);
315 Efl.EventCb evt_PressedEvt_delegate;
316 private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
318 Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args();
319 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
322 } catch (Exception e) {
323 Eina.Log.Error(e.ToString());
324 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
328 private static object UnpressedEvtKey = new object();
329 /// <summary>Called when the object is no longer pressed</summary>
330 public event EventHandler<Efl.Ui.IClickableUnpressedEvt_Args> UnpressedEvt
334 string key = "_EFL_UI_EVENT_UNPRESSED";
335 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) {
336 eventHandlers.AddHandler(UnpressedEvtKey , value);
338 Eina.Log.Error($"Error adding proxy for event {key}");
343 string key = "_EFL_UI_EVENT_UNPRESSED";
344 if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) {
345 eventHandlers.RemoveHandler(UnpressedEvtKey , value);
347 Eina.Log.Error($"Error removing proxy for event {key}");
351 ///<summary>Method to raise event UnpressedEvt.</summary>
352 public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e)
354 EventHandler<Efl.Ui.IClickableUnpressedEvt_Args> evt;
356 evt = (EventHandler<Efl.Ui.IClickableUnpressedEvt_Args>)eventHandlers[UnpressedEvtKey];
358 evt?.Invoke(this, e);
360 Efl.EventCb evt_UnpressedEvt_delegate;
361 private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
363 Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args();
364 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
366 On_UnpressedEvt(args);
367 } catch (Exception e) {
368 Eina.Log.Error(e.ToString());
369 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
373 private static object LongpressedEvtKey = new object();
374 /// <summary>Called when the object receives a long press</summary>
375 public event EventHandler<Efl.Ui.IClickableLongpressedEvt_Args> LongpressedEvt
379 string key = "_EFL_UI_EVENT_LONGPRESSED";
380 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) {
381 eventHandlers.AddHandler(LongpressedEvtKey , value);
383 Eina.Log.Error($"Error adding proxy for event {key}");
388 string key = "_EFL_UI_EVENT_LONGPRESSED";
389 if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) {
390 eventHandlers.RemoveHandler(LongpressedEvtKey , value);
392 Eina.Log.Error($"Error removing proxy for event {key}");
396 ///<summary>Method to raise event LongpressedEvt.</summary>
397 public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e)
399 EventHandler<Efl.Ui.IClickableLongpressedEvt_Args> evt;
401 evt = (EventHandler<Efl.Ui.IClickableLongpressedEvt_Args>)eventHandlers[LongpressedEvtKey];
403 evt?.Invoke(this, e);
405 Efl.EventCb evt_LongpressedEvt_delegate;
406 private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
408 Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args();
409 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
411 On_LongpressedEvt(args);
412 } catch (Exception e) {
413 Eina.Log.Error(e.ToString());
414 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
418 private static object RepeatedEvtKey = new object();
419 /// <summary>Called when the object receives repeated presses/clicks</summary>
420 public event EventHandler RepeatedEvt
424 string key = "_EFL_UI_EVENT_REPEATED";
425 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) {
426 eventHandlers.AddHandler(RepeatedEvtKey , value);
428 Eina.Log.Error($"Error adding proxy for event {key}");
433 string key = "_EFL_UI_EVENT_REPEATED";
434 if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) {
435 eventHandlers.RemoveHandler(RepeatedEvtKey , value);
437 Eina.Log.Error($"Error removing proxy for event {key}");
441 ///<summary>Method to raise event RepeatedEvt.</summary>
442 public void On_RepeatedEvt(EventArgs e)
446 evt = (EventHandler)eventHandlers[RepeatedEvtKey];
448 evt?.Invoke(this, e);
450 Efl.EventCb evt_RepeatedEvt_delegate;
451 private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
453 EventArgs args = EventArgs.Empty;
455 On_RepeatedEvt(args);
456 } catch (Exception e) {
457 Eina.Log.Error(e.ToString());
458 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
462 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
463 protected override void RegisterEventProxies()
465 base.RegisterEventProxies();
466 evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback);
467 evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback);
468 evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback);
469 evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback);
470 evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback);
471 evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback);
472 evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback);
473 evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback);
474 evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback);
476 /// <summary>Swallowed sub-object contained in this object.
477 /// (Since EFL 1.22)</summary>
478 /// <returns>The object to swallow.</returns>
479 virtual public Efl.Gfx.IEntity GetContent() {
480 var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
481 Eina.Error.RaiseIfUnhandledException();
484 /// <summary>Swallowed sub-object contained in this object.
485 /// (Since EFL 1.22)</summary>
486 /// <param name="content">The object to swallow.</param>
487 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
488 virtual public bool SetContent( Efl.Gfx.IEntity content) {
489 var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content);
490 Eina.Error.RaiseIfUnhandledException();
493 /// <summary>Unswallow the object in the current container and return it.
494 /// (Since EFL 1.22)</summary>
495 /// <returns>Unswallowed object</returns>
496 virtual public Efl.Gfx.IEntity UnsetContent() {
497 var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
498 Eina.Error.RaiseIfUnhandledException();
501 /// <summary>Retrieves the text string currently being displayed by the given text object.
502 /// Do not free() the return value.
504 /// See also <see cref="Efl.IText.GetText"/>.
505 /// (Since EFL 1.22)</summary>
506 /// <returns>Text string to display on it.</returns>
507 virtual public System.String GetText() {
508 var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
509 Eina.Error.RaiseIfUnhandledException();
512 /// <summary>Sets the text string to be displayed by the given text object.
513 /// See also <see cref="Efl.IText.GetText"/>.
514 /// (Since EFL 1.22)</summary>
515 /// <param name="text">Text string to display on it.</param>
516 /// <returns></returns>
517 virtual public void SetText( System.String text) {
518 Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text);
519 Eina.Error.RaiseIfUnhandledException();
521 /// <summary>The initial timeout before the autorepeat event is generated
522 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
524 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatEnabled"/>, <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
525 /// <returns>Timeout in seconds</returns>
526 virtual public double GetAutorepeatInitialTimeout() {
527 var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
528 Eina.Error.RaiseIfUnhandledException();
531 /// <summary>The initial timeout before the autorepeat event is generated
532 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
534 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatEnabled"/>, <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
535 /// <param name="t">Timeout in seconds</param>
536 /// <returns></returns>
537 virtual public void SetAutorepeatInitialTimeout( double t) {
538 Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), t);
539 Eina.Error.RaiseIfUnhandledException();
541 /// <summary>The interval between each generated autorepeat event
542 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
544 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>.</summary>
545 /// <returns>Interval in seconds</returns>
546 virtual public double GetAutorepeatGapTimeout() {
547 var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
548 Eina.Error.RaiseIfUnhandledException();
551 /// <summary>The interval between each generated autorepeat event
552 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
554 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>.</summary>
555 /// <param name="t">Interval in seconds</param>
556 /// <returns></returns>
557 virtual public void SetAutorepeatGapTimeout( double t) {
558 Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), t);
559 Eina.Error.RaiseIfUnhandledException();
561 /// <summary>Turn on/off the autorepeat event generated when the button is kept pressed
562 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> signal when they are clicked.
564 /// When on, keeping a button pressed will continuously emit a <c>repeated</c> signal until the button is released. The time it takes until it starts emitting the signal is given by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>, and the time between each new emission by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
565 /// <returns>A bool to turn on/off the event</returns>
566 virtual public bool GetAutorepeatEnabled() {
567 var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
568 Eina.Error.RaiseIfUnhandledException();
571 /// <summary>Turn on/off the autorepeat event generated when the button is kept pressed
572 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> signal when they are clicked.
574 /// When on, keeping a button pressed will continuously emit a <c>repeated</c> signal until the button is released. The time it takes until it starts emitting the signal is given by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>, and the time between each new emission by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
575 /// <param name="on">A bool to turn on/off the event</param>
576 /// <returns></returns>
577 virtual public void SetAutorepeatEnabled( bool on) {
578 Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), on);
579 Eina.Error.RaiseIfUnhandledException();
581 /// <summary>Whether the button supports autorepeat.</summary>
582 /// <returns><c>true</c> if autorepeat is supported, <c>false</c> otherwise</returns>
583 virtual public bool GetAutorepeatSupported() {
584 var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_supported_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
585 Eina.Error.RaiseIfUnhandledException();
588 /// <summary>Swallowed sub-object contained in this object.
589 /// (Since EFL 1.22)</summary>
590 /// <value>The object to swallow.</value>
591 public Efl.Gfx.IEntity Content {
592 get { return GetContent(); }
593 set { SetContent( value); }
595 /// <summary>The initial timeout before the autorepeat event is generated
596 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
598 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatEnabled"/>, <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
599 /// <value>Timeout in seconds</value>
600 public double AutorepeatInitialTimeout {
601 get { return GetAutorepeatInitialTimeout(); }
602 set { SetAutorepeatInitialTimeout( value); }
604 /// <summary>The interval between each generated autorepeat event
605 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
607 /// See also <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>.</summary>
608 /// <value>Interval in seconds</value>
609 public double AutorepeatGapTimeout {
610 get { return GetAutorepeatGapTimeout(); }
611 set { SetAutorepeatGapTimeout( value); }
613 /// <summary>Turn on/off the autorepeat event generated when the button is kept pressed
614 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> signal when they are clicked.
616 /// When on, keeping a button pressed will continuously emit a <c>repeated</c> signal until the button is released. The time it takes until it starts emitting the signal is given by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatInitialTimeout"/>, and the time between each new emission by <see cref="Efl.Ui.IAutorepeat.SetAutorepeatGapTimeout"/>.</summary>
617 /// <value>A bool to turn on/off the event</value>
618 public bool AutorepeatEnabled {
619 get { return GetAutorepeatEnabled(); }
620 set { SetAutorepeatEnabled( value); }
622 /// <summary>Whether the button supports autorepeat.</summary>
623 /// <value><c>true</c> if autorepeat is supported, <c>false</c> otherwise</value>
624 public bool AutorepeatSupported {
625 get { return GetAutorepeatSupported(); }
627 private static IntPtr GetEflClassStatic()
629 return Efl.Ui.Button.efl_ui_button_class_get();
632 public class ButtonNativeInherit : Efl.Ui.LayoutBaseNativeInherit{
633 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
634 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
636 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
637 var methods = Efl.Eo.Globals.GetUserMethods(type);
638 if (efl_content_get_static_delegate == null)
639 efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
640 if (methods.FirstOrDefault(m => m.Name == "GetContent") != null)
641 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)});
642 if (efl_content_set_static_delegate == null)
643 efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
644 if (methods.FirstOrDefault(m => m.Name == "SetContent") != null)
645 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)});
646 if (efl_content_unset_static_delegate == null)
647 efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
648 if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null)
649 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)});
650 if (efl_text_get_static_delegate == null)
651 efl_text_get_static_delegate = new efl_text_get_delegate(text_get);
652 if (methods.FirstOrDefault(m => m.Name == "GetText") != null)
653 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)});
654 if (efl_text_set_static_delegate == null)
655 efl_text_set_static_delegate = new efl_text_set_delegate(text_set);
656 if (methods.FirstOrDefault(m => m.Name == "SetText") != null)
657 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)});
658 if (efl_ui_autorepeat_initial_timeout_get_static_delegate == null)
659 efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get);
660 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null)
661 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate)});
662 if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null)
663 efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set);
664 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null)
665 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate)});
666 if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null)
667 efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get);
668 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null)
669 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate)});
670 if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null)
671 efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set);
672 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null)
673 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate)});
674 if (efl_ui_autorepeat_enabled_get_static_delegate == null)
675 efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get);
676 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null)
677 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate)});
678 if (efl_ui_autorepeat_enabled_set_static_delegate == null)
679 efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set);
680 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null)
681 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate)});
682 if (efl_ui_autorepeat_supported_get_static_delegate == null)
683 efl_ui_autorepeat_supported_get_static_delegate = new efl_ui_autorepeat_supported_get_delegate(autorepeat_supported_get);
684 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatSupported") != null)
685 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_supported_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_supported_get_static_delegate)});
686 descs.AddRange(base.GetEoOps(type));
689 public override IntPtr GetEflClass()
691 return Efl.Ui.Button.efl_ui_button_class_get();
693 public static new IntPtr GetEflClassStatic()
695 return Efl.Ui.Button.efl_ui_button_class_get();
699 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd);
702 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj);
703 public static Efl.Eo.FunctionWrapper<efl_content_get_api_delegate> efl_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_content_get_api_delegate>(_Module, "efl_content_get");
704 private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd)
706 Eina.Log.Debug("function efl_content_get was called");
707 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
708 if(wrapper != null) {
709 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
711 _ret_var = ((Button)wrapper).GetContent();
712 } catch (Exception e) {
713 Eina.Log.Warning($"Callback error: {e.ToString()}");
714 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
718 return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
721 private static efl_content_get_delegate efl_content_get_static_delegate;
724 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
727 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
728 public static Efl.Eo.FunctionWrapper<efl_content_set_api_delegate> efl_content_set_ptr = new Efl.Eo.FunctionWrapper<efl_content_set_api_delegate>(_Module, "efl_content_set");
729 private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
731 Eina.Log.Debug("function efl_content_set was called");
732 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
733 if(wrapper != null) {
734 bool _ret_var = default(bool);
736 _ret_var = ((Button)wrapper).SetContent( content);
737 } catch (Exception e) {
738 Eina.Log.Warning($"Callback error: {e.ToString()}");
739 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
743 return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content);
746 private static efl_content_set_delegate efl_content_set_static_delegate;
749 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd);
752 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj);
753 public static Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate> efl_content_unset_ptr = new Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate>(_Module, "efl_content_unset");
754 private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
756 Eina.Log.Debug("function efl_content_unset was called");
757 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
758 if(wrapper != null) {
759 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
761 _ret_var = ((Button)wrapper).UnsetContent();
762 } catch (Exception e) {
763 Eina.Log.Warning($"Callback error: {e.ToString()}");
764 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
768 return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
771 private static efl_content_unset_delegate efl_content_unset_static_delegate;
774 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd);
777 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj);
778 public static Efl.Eo.FunctionWrapper<efl_text_get_api_delegate> efl_text_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_get_api_delegate>(_Module, "efl_text_get");
779 private static System.String text_get(System.IntPtr obj, System.IntPtr pd)
781 Eina.Log.Debug("function efl_text_get was called");
782 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
783 if(wrapper != null) {
784 System.String _ret_var = default(System.String);
786 _ret_var = ((Button)wrapper).GetText();
787 } catch (Exception e) {
788 Eina.Log.Warning($"Callback error: {e.ToString()}");
789 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
793 return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
796 private static efl_text_get_delegate efl_text_get_static_delegate;
799 private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
802 public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text);
803 public static Efl.Eo.FunctionWrapper<efl_text_set_api_delegate> efl_text_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_set_api_delegate>(_Module, "efl_text_set");
804 private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text)
806 Eina.Log.Debug("function efl_text_set was called");
807 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
808 if(wrapper != null) {
811 ((Button)wrapper).SetText( text);
812 } catch (Exception e) {
813 Eina.Log.Warning($"Callback error: {e.ToString()}");
814 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
817 efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text);
820 private static efl_text_set_delegate efl_text_set_static_delegate;
823 private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
826 public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj);
827 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_get_api_delegate> efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_get_api_delegate>(_Module, "efl_ui_autorepeat_initial_timeout_get");
828 private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd)
830 Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called");
831 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
832 if(wrapper != null) {
833 double _ret_var = default(double);
835 _ret_var = ((Button)wrapper).GetAutorepeatInitialTimeout();
836 } catch (Exception e) {
837 Eina.Log.Warning($"Callback error: {e.ToString()}");
838 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
842 return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
845 private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate;
848 private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t);
851 public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t);
852 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_set_api_delegate> efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_set_api_delegate>(_Module, "efl_ui_autorepeat_initial_timeout_set");
853 private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t)
855 Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called");
856 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
857 if(wrapper != null) {
860 ((Button)wrapper).SetAutorepeatInitialTimeout( t);
861 } catch (Exception e) {
862 Eina.Log.Warning($"Callback error: {e.ToString()}");
863 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
866 efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t);
869 private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate;
872 private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
875 public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj);
876 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_get_api_delegate> efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_get_api_delegate>(_Module, "efl_ui_autorepeat_gap_timeout_get");
877 private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd)
879 Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called");
880 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
881 if(wrapper != null) {
882 double _ret_var = default(double);
884 _ret_var = ((Button)wrapper).GetAutorepeatGapTimeout();
885 } catch (Exception e) {
886 Eina.Log.Warning($"Callback error: {e.ToString()}");
887 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
891 return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
894 private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate;
897 private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t);
900 public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t);
901 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_set_api_delegate> efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_set_api_delegate>(_Module, "efl_ui_autorepeat_gap_timeout_set");
902 private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t)
904 Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called");
905 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
906 if(wrapper != null) {
909 ((Button)wrapper).SetAutorepeatGapTimeout( t);
910 } catch (Exception e) {
911 Eina.Log.Warning($"Callback error: {e.ToString()}");
912 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
915 efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t);
918 private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate;
921 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd);
924 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj);
925 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_get_api_delegate> efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_get_api_delegate>(_Module, "efl_ui_autorepeat_enabled_get");
926 private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd)
928 Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called");
929 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
930 if(wrapper != null) {
931 bool _ret_var = default(bool);
933 _ret_var = ((Button)wrapper).GetAutorepeatEnabled();
934 } catch (Exception e) {
935 Eina.Log.Warning($"Callback error: {e.ToString()}");
936 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
940 return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
943 private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate;
946 private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on);
949 public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on);
950 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_set_api_delegate> efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_set_api_delegate>(_Module, "efl_ui_autorepeat_enabled_set");
951 private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on)
953 Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called");
954 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
955 if(wrapper != null) {
958 ((Button)wrapper).SetAutorepeatEnabled( on);
959 } catch (Exception e) {
960 Eina.Log.Warning($"Callback error: {e.ToString()}");
961 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
964 efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on);
967 private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate;
970 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd);
973 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_supported_get_api_delegate(System.IntPtr obj);
974 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_supported_get_api_delegate> efl_ui_autorepeat_supported_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_supported_get_api_delegate>(_Module, "efl_ui_autorepeat_supported_get");
975 private static bool autorepeat_supported_get(System.IntPtr obj, System.IntPtr pd)
977 Eina.Log.Debug("function efl_ui_autorepeat_supported_get was called");
978 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
979 if(wrapper != null) {
980 bool _ret_var = default(bool);
982 _ret_var = ((Button)wrapper).GetAutorepeatSupported();
983 } catch (Exception e) {
984 Eina.Log.Warning($"Callback error: {e.ToString()}");
985 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
989 return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
992 private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate;