1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui {
8 /// <summary>EFL UI Anchor Popup class</summary>
9 [AnchorPopupNativeInherit]
10 public class AnchorPopup : Efl.Ui.Popup, Efl.Eo.IWrapper
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 {
17 if (((object)this).GetType() == typeof (AnchorPopup))
18 return Efl.Ui.AnchorPopupNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
32 if (Efl.Eo.Globals.ParamHelperCheck(style))
33 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
34 FinishInstantiation();
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)
39 register_event_proxies();
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)
47 throw new System.ArgumentNullException("obj");
48 return new AnchorPopup(obj.NativeHandle);
50 ///<summary>Verifies if the given object is equal to this one.</summary>
51 public override bool Equals(object obj)
53 var other = obj as Efl.Object;
56 return this.NativeHandle == other.NativeHandle;
58 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
59 public override int GetHashCode()
61 return this.NativeHandle.ToInt32();
63 ///<summary>Turns the native pointer into a string representation.</summary>
64 public override String ToString()
66 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
68 protected override void register_event_proxies()
70 base.register_event_proxies();
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();
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();
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();
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();
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); }
114 private static new IntPtr GetEflClassStatic()
116 return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
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)
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));
139 public override IntPtr GetEflClass()
141 return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
143 public static new IntPtr GetEflClassStatic()
145 return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get();
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);
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)
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);
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);
168 return efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
171 private static efl_ui_anchor_popup_anchor_get_delegate efl_ui_anchor_popup_anchor_get_static_delegate;
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);
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)
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) {
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);
192 efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anchor);
195 private static efl_ui_anchor_popup_anchor_set_delegate efl_ui_anchor_popup_anchor_set_static_delegate;
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);
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)
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);
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);
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);
219 private static efl_ui_anchor_popup_align_priority_get_delegate efl_ui_anchor_popup_align_priority_get_static_delegate;
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);
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)
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) {
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);
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);
243 private static efl_ui_anchor_popup_align_priority_set_delegate efl_ui_anchor_popup_align_priority_set_static_delegate;