[Bluetooth][Non-ACR] Fix no data exception issue (#787)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl_ui_anchor_popup.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>EFL UI Anchor Popup class</summary>
9 [AnchorPopupNativeInherit]
10 public class AnchorPopup : Efl.Ui.Popup, Efl.Eo.IWrapper
11 {
12    public new static System.IntPtr klass = System.IntPtr.Zero;
13    public new static Efl.Ui.AnchorPopupNativeInherit nativeInherit = new Efl.Ui.AnchorPopupNativeInherit();
14    ///<summary>Pointer to the native class description.</summary>
15    public override System.IntPtr NativeClass {
16       get {
17          if (((object)this).GetType() == typeof (AnchorPopup))
18             return Efl.Ui.AnchorPopupNativeInherit.GetEflClassStatic();
19          else
20             return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21       }
22    }
23    [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
24       efl_ui_anchor_popup_class_get();
25    ///<summary>Creates a new instance.</summary>
26    ///<param name="parent">Parent instance.</param>
27    ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
28    public AnchorPopup(Efl.Object parent
29          ,  System.String style = null) :
30       base(efl_ui_anchor_popup_class_get(), typeof(AnchorPopup), parent)
31    {
32       if (Efl.Eo.Globals.ParamHelperCheck(style))
33          SetStyle(Efl.Eo.Globals.GetParamHelper(style));
34       FinishInstantiation();
35    }
36    ///<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>
37    public AnchorPopup(System.IntPtr raw) : base(raw)
38    {
39             register_event_proxies();
40    }
41    ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
42    protected AnchorPopup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
43    ///<summary>Casts obj into an instance of this type.</summary>
44    public new static AnchorPopup static_cast(Efl.Object obj)
45    {
46       if (obj == null)
47          throw new System.ArgumentNullException("obj");
48       return new AnchorPopup(obj.NativeHandle);
49    }
50    ///<summary>Verifies if the given object is equal to this one.</summary>
51    public override bool Equals(object obj)
52    {
53       var other = obj as Efl.Object;
54       if (other == null)
55          return false;
56       return this.NativeHandle == other.NativeHandle;
57    }
58    ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
59    public override int GetHashCode()
60    {
61       return this.NativeHandle.ToInt32();
62    }
63    ///<summary>Turns the native pointer into a string representation.</summary>
64    public override String ToString()
65    {
66       return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
67    }
68    protected override void register_event_proxies()
69    {
70       base.register_event_proxies();
71    }
72    /// <summary>Returns the anchor object which the popup is following.</summary>
73    /// <returns>The object which popup is following.</returns>
74    virtual public Efl.Canvas.Object GetAnchor() {
75        var _ret_var = Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
76       Eina.Error.RaiseIfUnhandledException();
77       return _ret_var;
78  }
79    /// <summary>Set anchor popup to follow an anchor object. If anchor object is moved or parent window is resized, the anchor popup moves to the new position. If anchor object is set to NULL, the anchor popup stops following the anchor object. When the popup is moved by using gfx_position_set, anchor is set NULL.</summary>
80    /// <param name="anchor">The object which popup is following.</param>
81    /// <returns></returns>
82    virtual public  void SetAnchor( Efl.Canvas.Object anchor) {
83                          Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), anchor);
84       Eina.Error.RaiseIfUnhandledException();
85                    }
86    /// <summary>Get the align priority of a popup.</summary>
87    /// <param name="first">First align priority</param>
88    /// <param name="second">Second align priority</param>
89    /// <param name="third">Third align priority</param>
90    /// <param name="fourth">Fourth align priority</param>
91    /// <param name="fifth">Fifth align priority</param>
92    /// <returns></returns>
93    virtual public  void GetAlignPriority( out Efl.Ui.PopupAlign first,  out Efl.Ui.PopupAlign second,  out Efl.Ui.PopupAlign third,  out Efl.Ui.PopupAlign fourth,  out Efl.Ui.PopupAlign fifth) {
94                                                                                                  Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out first,  out second,  out third,  out fourth,  out fifth);
95       Eina.Error.RaiseIfUnhandledException();
96                                                                    }
97    /// <summary>Set the align priority of a popup.</summary>
98    /// <param name="first">First align priority</param>
99    /// <param name="second">Second align priority</param>
100    /// <param name="third">Third align priority</param>
101    /// <param name="fourth">Fourth align priority</param>
102    /// <param name="fifth">Fifth align priority</param>
103    /// <returns></returns>
104    virtual public  void SetAlignPriority( Efl.Ui.PopupAlign first,  Efl.Ui.PopupAlign second,  Efl.Ui.PopupAlign third,  Efl.Ui.PopupAlign fourth,  Efl.Ui.PopupAlign fifth) {
105                                                                                                  Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), first,  second,  third,  fourth,  fifth);
106       Eina.Error.RaiseIfUnhandledException();
107                                                                    }
108    /// <summary>Returns the anchor object which the popup is following.</summary>
109 /// <value>The object which popup is following.</value>
110    public Efl.Canvas.Object Anchor {
111       get { return GetAnchor(); }
112       set { SetAnchor( value); }
113    }
114    private static new  IntPtr GetEflClassStatic()
115    {
116       return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
117    }
118 }
119 public class AnchorPopupNativeInherit : Efl.Ui.PopupNativeInherit{
120    public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
121    public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
122    {
123       var descs = new System.Collections.Generic.List<Efl_Op_Description>();
124       if (efl_ui_anchor_popup_anchor_get_static_delegate == null)
125       efl_ui_anchor_popup_anchor_get_static_delegate = new efl_ui_anchor_popup_anchor_get_delegate(anchor_get);
126       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_anchor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_get_static_delegate)});
127       if (efl_ui_anchor_popup_anchor_set_static_delegate == null)
128       efl_ui_anchor_popup_anchor_set_static_delegate = new efl_ui_anchor_popup_anchor_set_delegate(anchor_set);
129       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_anchor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_set_static_delegate)});
130       if (efl_ui_anchor_popup_align_priority_get_static_delegate == null)
131       efl_ui_anchor_popup_align_priority_get_static_delegate = new efl_ui_anchor_popup_align_priority_get_delegate(align_priority_get);
132       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_align_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_get_static_delegate)});
133       if (efl_ui_anchor_popup_align_priority_set_static_delegate == null)
134       efl_ui_anchor_popup_align_priority_set_static_delegate = new efl_ui_anchor_popup_align_priority_set_delegate(align_priority_set);
135       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_align_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_set_static_delegate)});
136       descs.AddRange(base.GetEoOps(type));
137       return descs;
138    }
139    public override IntPtr GetEflClass()
140    {
141       return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
142    }
143    public static new  IntPtr GetEflClassStatic()
144    {
145       return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
146    }
147
148
149    [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))] private delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_delegate(System.IntPtr obj, System.IntPtr pd);
150
151
152    [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))] public delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_api_delegate(System.IntPtr obj);
153     public static Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_anchor_get_api_delegate> efl_ui_anchor_popup_anchor_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_anchor_get_api_delegate>(_Module, "efl_ui_anchor_popup_anchor_get");
154     private static Efl.Canvas.Object anchor_get(System.IntPtr obj, System.IntPtr pd)
155    {
156       Eina.Log.Debug("function efl_ui_anchor_popup_anchor_get was called");
157       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
158       if(wrapper != null) {
159                   Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object);
160          try {
161             _ret_var = ((AnchorPopup)wrapper).GetAnchor();
162          } catch (Exception e) {
163             Eina.Log.Warning($"Callback error: {e.ToString()}");
164             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
165          }
166       return _ret_var;
167       } else {
168          return efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
169       }
170    }
171    private static efl_ui_anchor_popup_anchor_get_delegate efl_ui_anchor_popup_anchor_get_static_delegate;
172
173
174     private delegate  void efl_ui_anchor_popup_anchor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Object anchor);
175
176
177     public delegate  void efl_ui_anchor_popup_anchor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Object anchor);
178     public static Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_anchor_set_api_delegate> efl_ui_anchor_popup_anchor_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_anchor_set_api_delegate>(_Module, "efl_ui_anchor_popup_anchor_set");
179     private static  void anchor_set(System.IntPtr obj, System.IntPtr pd,  Efl.Canvas.Object anchor)
180    {
181       Eina.Log.Debug("function efl_ui_anchor_popup_anchor_set was called");
182       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
183       if(wrapper != null) {
184                                     
185          try {
186             ((AnchorPopup)wrapper).SetAnchor( anchor);
187          } catch (Exception e) {
188             Eina.Log.Warning($"Callback error: {e.ToString()}");
189             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
190          }
191                         } else {
192          efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  anchor);
193       }
194    }
195    private static efl_ui_anchor_popup_anchor_set_delegate efl_ui_anchor_popup_anchor_set_static_delegate;
196
197
198     private delegate  void efl_ui_anchor_popup_align_priority_get_delegate(System.IntPtr obj, System.IntPtr pd,   out Efl.Ui.PopupAlign first,   out Efl.Ui.PopupAlign second,   out Efl.Ui.PopupAlign third,   out Efl.Ui.PopupAlign fourth,   out Efl.Ui.PopupAlign fifth);
199
200
201     public delegate  void efl_ui_anchor_popup_align_priority_get_api_delegate(System.IntPtr obj,   out Efl.Ui.PopupAlign first,   out Efl.Ui.PopupAlign second,   out Efl.Ui.PopupAlign third,   out Efl.Ui.PopupAlign fourth,   out Efl.Ui.PopupAlign fifth);
202     public static Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_align_priority_get_api_delegate> efl_ui_anchor_popup_align_priority_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_align_priority_get_api_delegate>(_Module, "efl_ui_anchor_popup_align_priority_get");
203     private static  void align_priority_get(System.IntPtr obj, System.IntPtr pd,  out Efl.Ui.PopupAlign first,  out Efl.Ui.PopupAlign second,  out Efl.Ui.PopupAlign third,  out Efl.Ui.PopupAlign fourth,  out Efl.Ui.PopupAlign fifth)
204    {
205       Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_get was called");
206       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
207       if(wrapper != null) {
208                                              first = default(Efl.Ui.PopupAlign);      second = default(Efl.Ui.PopupAlign);      third = default(Efl.Ui.PopupAlign);      fourth = default(Efl.Ui.PopupAlign);      fifth = default(Efl.Ui.PopupAlign);                                       
209          try {
210             ((AnchorPopup)wrapper).GetAlignPriority( out first,  out second,  out third,  out fourth,  out fifth);
211          } catch (Exception e) {
212             Eina.Log.Warning($"Callback error: {e.ToString()}");
213             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
214          }
215                                                                         } else {
216          efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  out first,  out second,  out third,  out fourth,  out fifth);
217       }
218    }
219    private static efl_ui_anchor_popup_align_priority_get_delegate efl_ui_anchor_popup_align_priority_get_static_delegate;
220
221
222     private delegate  void efl_ui_anchor_popup_align_priority_set_delegate(System.IntPtr obj, System.IntPtr pd,   Efl.Ui.PopupAlign first,   Efl.Ui.PopupAlign second,   Efl.Ui.PopupAlign third,   Efl.Ui.PopupAlign fourth,   Efl.Ui.PopupAlign fifth);
223
224
225     public delegate  void efl_ui_anchor_popup_align_priority_set_api_delegate(System.IntPtr obj,   Efl.Ui.PopupAlign first,   Efl.Ui.PopupAlign second,   Efl.Ui.PopupAlign third,   Efl.Ui.PopupAlign fourth,   Efl.Ui.PopupAlign fifth);
226     public static Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_align_priority_set_api_delegate> efl_ui_anchor_popup_align_priority_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_anchor_popup_align_priority_set_api_delegate>(_Module, "efl_ui_anchor_popup_align_priority_set");
227     private static  void align_priority_set(System.IntPtr obj, System.IntPtr pd,  Efl.Ui.PopupAlign first,  Efl.Ui.PopupAlign second,  Efl.Ui.PopupAlign third,  Efl.Ui.PopupAlign fourth,  Efl.Ui.PopupAlign fifth)
228    {
229       Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_set was called");
230       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
231       if(wrapper != null) {
232                                                                                                             
233          try {
234             ((AnchorPopup)wrapper).SetAlignPriority( first,  second,  third,  fourth,  fifth);
235          } catch (Exception e) {
236             Eina.Log.Warning($"Callback error: {e.ToString()}");
237             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
238          }
239                                                                         } else {
240          efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  first,  second,  third,  fourth,  fifth);
241       }
242    }
243    private static efl_ui_anchor_popup_align_priority_set_delegate efl_ui_anchor_popup_align_priority_set_static_delegate;
244 }
245 } }