2ffe604c7e475eb0536fe540440ea92a9b088867
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_button.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui { 
8 /// <summary>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>
10 [ButtonNativeInherit]
11 public class Button : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.Ui.IAutorepeat,Efl.Ui.IClickable
12 {
13     ///<summary>Pointer to the native class description.</summary>
14     public override System.IntPtr NativeClass {
15         get {
16             if (((object)this).GetType() == typeof (Button))
17                 return Efl.Ui.ButtonNativeInherit.GetEflClassStatic();
18             else
19                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
20         }
21     }
22     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
23         efl_ui_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)
30     {
31         if (Efl.Eo.Globals.ParamHelperCheck(style))
32             SetStyle(Efl.Eo.Globals.GetParamHelper(style));
33         FinishInstantiation();
34     }
35     ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
36     protected Button(System.IntPtr raw) : base(raw)
37     {
38                 RegisterEventProxies();
39     }
40     ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
41     protected 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)
44     {
45         var other = obj as Efl.Object;
46         if (other == null)
47             return false;
48         return this.NativeHandle == other.NativeHandle;
49     }
50     ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
51     public override int GetHashCode()
52     {
53         return this.NativeHandle.ToInt32();
54     }
55     ///<summary>Turns the native pointer into a string representation.</summary>
56     public override String ToString()
57     {
58         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
59     }
60 private static object 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
64     {
65         add {
66             lock (eventLock) {
67                 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
68                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) {
69                     eventHandlers.AddHandler(ContentChangedEvtKey , value);
70                 } else
71                     Eina.Log.Error($"Error adding proxy for event {key}");
72             }
73         }
74         remove {
75             lock (eventLock) {
76                 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
77                 if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { 
78                     eventHandlers.RemoveHandler(ContentChangedEvtKey , value);
79                 } else
80                     Eina.Log.Error($"Error removing proxy for event {key}");
81             }
82         }
83     }
84     ///<summary>Method to raise event ContentChangedEvt.</summary>
85     public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
86     {
87         EventHandler<Efl.IContentContentChangedEvt_Args> evt;
88         lock (eventLock) {
89         evt = (EventHandler<Efl.IContentContentChangedEvt_Args>)eventHandlers[ContentChangedEvtKey];
90         }
91         evt?.Invoke(this, e);
92     }
93     Efl.EventCb evt_ContentChangedEvt_delegate;
94     private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
95     {
96         Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
97       args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
98         try {
99             On_ContentChangedEvt(args);
100         } catch (Exception e) {
101             Eina.Log.Error(e.ToString());
102             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
103         }
104     }
105
106 private static object ClickedEvtKey = new object();
107     /// <summary>Called when object is clicked</summary>
108     public event EventHandler ClickedEvt
109     {
110         add {
111             lock (eventLock) {
112                 string key = "_EFL_UI_EVENT_CLICKED";
113                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) {
114                     eventHandlers.AddHandler(ClickedEvtKey , value);
115                 } else
116                     Eina.Log.Error($"Error adding proxy for event {key}");
117             }
118         }
119         remove {
120             lock (eventLock) {
121                 string key = "_EFL_UI_EVENT_CLICKED";
122                 if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { 
123                     eventHandlers.RemoveHandler(ClickedEvtKey , value);
124                 } else
125                     Eina.Log.Error($"Error removing proxy for event {key}");
126             }
127         }
128     }
129     ///<summary>Method to raise event ClickedEvt.</summary>
130     public void On_ClickedEvt(EventArgs e)
131     {
132         EventHandler evt;
133         lock (eventLock) {
134         evt = (EventHandler)eventHandlers[ClickedEvtKey];
135         }
136         evt?.Invoke(this, e);
137     }
138     Efl.EventCb evt_ClickedEvt_delegate;
139     private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
140     {
141         EventArgs args = EventArgs.Empty;
142         try {
143             On_ClickedEvt(args);
144         } catch (Exception e) {
145             Eina.Log.Error(e.ToString());
146             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
147         }
148     }
149
150 private static object ClickedDoubleEvtKey = new object();
151     /// <summary>Called when object receives a double click</summary>
152     public event EventHandler ClickedDoubleEvt
153     {
154         add {
155             lock (eventLock) {
156                 string key = "_EFL_UI_EVENT_CLICKED_DOUBLE";
157                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) {
158                     eventHandlers.AddHandler(ClickedDoubleEvtKey , value);
159                 } else
160                     Eina.Log.Error($"Error adding proxy for event {key}");
161             }
162         }
163         remove {
164             lock (eventLock) {
165                 string key = "_EFL_UI_EVENT_CLICKED_DOUBLE";
166                 if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { 
167                     eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value);
168                 } else
169                     Eina.Log.Error($"Error removing proxy for event {key}");
170             }
171         }
172     }
173     ///<summary>Method to raise event ClickedDoubleEvt.</summary>
174     public void On_ClickedDoubleEvt(EventArgs e)
175     {
176         EventHandler evt;
177         lock (eventLock) {
178         evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey];
179         }
180         evt?.Invoke(this, e);
181     }
182     Efl.EventCb evt_ClickedDoubleEvt_delegate;
183     private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
184     {
185         EventArgs args = EventArgs.Empty;
186         try {
187             On_ClickedDoubleEvt(args);
188         } catch (Exception e) {
189             Eina.Log.Error(e.ToString());
190             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
191         }
192     }
193
194 private static object ClickedTripleEvtKey = new object();
195     /// <summary>Called when object receives a triple click</summary>
196     public event EventHandler ClickedTripleEvt
197     {
198         add {
199             lock (eventLock) {
200                 string key = "_EFL_UI_EVENT_CLICKED_TRIPLE";
201                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) {
202                     eventHandlers.AddHandler(ClickedTripleEvtKey , value);
203                 } else
204                     Eina.Log.Error($"Error adding proxy for event {key}");
205             }
206         }
207         remove {
208             lock (eventLock) {
209                 string key = "_EFL_UI_EVENT_CLICKED_TRIPLE";
210                 if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { 
211                     eventHandlers.RemoveHandler(ClickedTripleEvtKey , value);
212                 } else
213                     Eina.Log.Error($"Error removing proxy for event {key}");
214             }
215         }
216     }
217     ///<summary>Method to raise event ClickedTripleEvt.</summary>
218     public void On_ClickedTripleEvt(EventArgs e)
219     {
220         EventHandler evt;
221         lock (eventLock) {
222         evt = (EventHandler)eventHandlers[ClickedTripleEvtKey];
223         }
224         evt?.Invoke(this, e);
225     }
226     Efl.EventCb evt_ClickedTripleEvt_delegate;
227     private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
228     {
229         EventArgs args = EventArgs.Empty;
230         try {
231             On_ClickedTripleEvt(args);
232         } catch (Exception e) {
233             Eina.Log.Error(e.ToString());
234             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
235         }
236     }
237
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
241     {
242         add {
243             lock (eventLock) {
244                 string key = "_EFL_UI_EVENT_CLICKED_RIGHT";
245                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) {
246                     eventHandlers.AddHandler(ClickedRightEvtKey , value);
247                 } else
248                     Eina.Log.Error($"Error adding proxy for event {key}");
249             }
250         }
251         remove {
252             lock (eventLock) {
253                 string key = "_EFL_UI_EVENT_CLICKED_RIGHT";
254                 if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { 
255                     eventHandlers.RemoveHandler(ClickedRightEvtKey , value);
256                 } else
257                     Eina.Log.Error($"Error removing proxy for event {key}");
258             }
259         }
260     }
261     ///<summary>Method to raise event ClickedRightEvt.</summary>
262     public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e)
263     {
264         EventHandler<Efl.Ui.IClickableClickedRightEvt_Args> evt;
265         lock (eventLock) {
266         evt = (EventHandler<Efl.Ui.IClickableClickedRightEvt_Args>)eventHandlers[ClickedRightEvtKey];
267         }
268         evt?.Invoke(this, e);
269     }
270     Efl.EventCb evt_ClickedRightEvt_delegate;
271     private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
272     {
273         Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args();
274       args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
275         try {
276             On_ClickedRightEvt(args);
277         } catch (Exception e) {
278             Eina.Log.Error(e.ToString());
279             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
280         }
281     }
282
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
286     {
287         add {
288             lock (eventLock) {
289                 string key = "_EFL_UI_EVENT_PRESSED";
290                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) {
291                     eventHandlers.AddHandler(PressedEvtKey , value);
292                 } else
293                     Eina.Log.Error($"Error adding proxy for event {key}");
294             }
295         }
296         remove {
297             lock (eventLock) {
298                 string key = "_EFL_UI_EVENT_PRESSED";
299                 if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { 
300                     eventHandlers.RemoveHandler(PressedEvtKey , value);
301                 } else
302                     Eina.Log.Error($"Error removing proxy for event {key}");
303             }
304         }
305     }
306     ///<summary>Method to raise event PressedEvt.</summary>
307     public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e)
308     {
309         EventHandler<Efl.Ui.IClickablePressedEvt_Args> evt;
310         lock (eventLock) {
311         evt = (EventHandler<Efl.Ui.IClickablePressedEvt_Args>)eventHandlers[PressedEvtKey];
312         }
313         evt?.Invoke(this, e);
314     }
315     Efl.EventCb evt_PressedEvt_delegate;
316     private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
317     {
318         Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args();
319       args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
320         try {
321             On_PressedEvt(args);
322         } catch (Exception e) {
323             Eina.Log.Error(e.ToString());
324             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
325         }
326     }
327
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
331     {
332         add {
333             lock (eventLock) {
334                 string key = "_EFL_UI_EVENT_UNPRESSED";
335                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) {
336                     eventHandlers.AddHandler(UnpressedEvtKey , value);
337                 } else
338                     Eina.Log.Error($"Error adding proxy for event {key}");
339             }
340         }
341         remove {
342             lock (eventLock) {
343                 string key = "_EFL_UI_EVENT_UNPRESSED";
344                 if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { 
345                     eventHandlers.RemoveHandler(UnpressedEvtKey , value);
346                 } else
347                     Eina.Log.Error($"Error removing proxy for event {key}");
348             }
349         }
350     }
351     ///<summary>Method to raise event UnpressedEvt.</summary>
352     public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e)
353     {
354         EventHandler<Efl.Ui.IClickableUnpressedEvt_Args> evt;
355         lock (eventLock) {
356         evt = (EventHandler<Efl.Ui.IClickableUnpressedEvt_Args>)eventHandlers[UnpressedEvtKey];
357         }
358         evt?.Invoke(this, e);
359     }
360     Efl.EventCb evt_UnpressedEvt_delegate;
361     private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
362     {
363         Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args();
364       args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
365         try {
366             On_UnpressedEvt(args);
367         } catch (Exception e) {
368             Eina.Log.Error(e.ToString());
369             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
370         }
371     }
372
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
376     {
377         add {
378             lock (eventLock) {
379                 string key = "_EFL_UI_EVENT_LONGPRESSED";
380                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) {
381                     eventHandlers.AddHandler(LongpressedEvtKey , value);
382                 } else
383                     Eina.Log.Error($"Error adding proxy for event {key}");
384             }
385         }
386         remove {
387             lock (eventLock) {
388                 string key = "_EFL_UI_EVENT_LONGPRESSED";
389                 if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { 
390                     eventHandlers.RemoveHandler(LongpressedEvtKey , value);
391                 } else
392                     Eina.Log.Error($"Error removing proxy for event {key}");
393             }
394         }
395     }
396     ///<summary>Method to raise event LongpressedEvt.</summary>
397     public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e)
398     {
399         EventHandler<Efl.Ui.IClickableLongpressedEvt_Args> evt;
400         lock (eventLock) {
401         evt = (EventHandler<Efl.Ui.IClickableLongpressedEvt_Args>)eventHandlers[LongpressedEvtKey];
402         }
403         evt?.Invoke(this, e);
404     }
405     Efl.EventCb evt_LongpressedEvt_delegate;
406     private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
407     {
408         Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args();
409       args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object);
410         try {
411             On_LongpressedEvt(args);
412         } catch (Exception e) {
413             Eina.Log.Error(e.ToString());
414             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
415         }
416     }
417
418 private static object RepeatedEvtKey = new object();
419     /// <summary>Called when the object receives repeated presses/clicks</summary>
420     public event EventHandler RepeatedEvt
421     {
422         add {
423             lock (eventLock) {
424                 string key = "_EFL_UI_EVENT_REPEATED";
425                 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) {
426                     eventHandlers.AddHandler(RepeatedEvtKey , value);
427                 } else
428                     Eina.Log.Error($"Error adding proxy for event {key}");
429             }
430         }
431         remove {
432             lock (eventLock) {
433                 string key = "_EFL_UI_EVENT_REPEATED";
434                 if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { 
435                     eventHandlers.RemoveHandler(RepeatedEvtKey , value);
436                 } else
437                     Eina.Log.Error($"Error removing proxy for event {key}");
438             }
439         }
440     }
441     ///<summary>Method to raise event RepeatedEvt.</summary>
442     public void On_RepeatedEvt(EventArgs e)
443     {
444         EventHandler evt;
445         lock (eventLock) {
446         evt = (EventHandler)eventHandlers[RepeatedEvtKey];
447         }
448         evt?.Invoke(this, e);
449     }
450     Efl.EventCb evt_RepeatedEvt_delegate;
451     private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
452     {
453         EventArgs args = EventArgs.Empty;
454         try {
455             On_RepeatedEvt(args);
456         } catch (Exception e) {
457             Eina.Log.Error(e.ToString());
458             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
459         }
460     }
461
462     ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
463     protected override void RegisterEventProxies()
464     {
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);
475     }
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();
482         return _ret_var;
483  }
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();
491                         return _ret_var;
492  }
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();
499         return _ret_var;
500  }
501     /// <summary>Retrieves the text string currently being displayed by the given text object.
502     /// Do not free() the return value.
503     /// 
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();
510         return _ret_var;
511  }
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();
520                          }
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&apos;t be any delay and the event will be fired the moment the button is pressed.
523     /// 
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();
529         return _ret_var;
530  }
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&apos;t be any delay and the event will be fired the moment the button is pressed.
533     /// 
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();
540                          }
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.
543     /// 
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();
549         return _ret_var;
550  }
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.
553     /// 
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();
560                          }
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.
563     /// 
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();
569         return _ret_var;
570  }
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.
573     /// 
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();
580                          }
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();
586         return _ret_var;
587  }
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); }
594     }
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&apos;t be any delay and the event will be fired the moment the button is pressed.
597 /// 
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); }
603     }
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.
606 /// 
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); }
612     }
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.
615 /// 
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); }
621     }
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(); }
626     }
627     private static IntPtr GetEflClassStatic()
628     {
629         return Efl.Ui.Button.efl_ui_button_class_get();
630     }
631 }
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)
635     {
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));
687         return descs;
688     }
689     public override IntPtr GetEflClass()
690     {
691         return Efl.Ui.Button.efl_ui_button_class_get();
692     }
693     public static new  IntPtr GetEflClassStatic()
694     {
695         return Efl.Ui.Button.efl_ui_button_class_get();
696     }
697
698
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);
700
701
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)
705     {
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);
710             try {
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);
715             }
716         return _ret_var;
717         } else {
718             return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
719         }
720     }
721     private static efl_content_get_delegate efl_content_get_static_delegate;
722
723
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);
725
726
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)
730     {
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);
735             try {
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);
740             }
741                         return _ret_var;
742         } else {
743             return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  content);
744         }
745     }
746     private static efl_content_set_delegate efl_content_set_static_delegate;
747
748
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);
750
751
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)
755     {
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);
760             try {
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);
765             }
766         return _ret_var;
767         } else {
768             return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
769         }
770     }
771     private static efl_content_unset_delegate efl_content_unset_static_delegate;
772
773
774      [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd);
775
776
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)
780     {
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);
785             try {
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);
790             }
791         return _ret_var;
792         } else {
793             return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
794         }
795     }
796     private static efl_text_get_delegate efl_text_get_static_delegate;
797
798
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);
800
801
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)
805     {
806         Eina.Log.Debug("function efl_text_set was called");
807         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
808         if(wrapper != null) {
809                                                 
810             try {
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);
815             }
816                                 } else {
817             efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  text);
818         }
819     }
820     private static efl_text_set_delegate efl_text_set_static_delegate;
821
822
823      private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
824
825
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)
829     {
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);
834             try {
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);
839             }
840         return _ret_var;
841         } else {
842             return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
843         }
844     }
845     private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate;
846
847
848      private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd,   double t);
849
850
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)
854     {
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) {
858                                                 
859             try {
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);
864             }
865                                 } else {
866             efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  t);
867         }
868     }
869     private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate;
870
871
872      private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
873
874
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)
878     {
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);
883             try {
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);
888             }
889         return _ret_var;
890         } else {
891             return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
892         }
893     }
894     private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate;
895
896
897      private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd,   double t);
898
899
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)
903     {
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) {
907                                                 
908             try {
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);
913             }
914                                 } else {
915             efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  t);
916         }
917     }
918     private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate;
919
920
921      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd);
922
923
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)
927     {
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);
932             try {
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);
937             }
938         return _ret_var;
939         } else {
940             return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
941         }
942     }
943     private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate;
944
945
946      private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.U1)]  bool on);
947
948
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)
952     {
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) {
956                                                 
957             try {
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);
962             }
963                                 } else {
964             efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  on);
965         }
966     }
967     private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate;
968
969
970      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd);
971
972
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)
976     {
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);
981             try {
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);
986             }
987         return _ret_var;
988         } else {
989             return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
990         }
991     }
992     private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate;
993 }
994 } }