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>The relative layout class.
9 /// A relative layout calculates the size and position of all the children based on their relationship to each other.</summary>
10 [RelativeLayoutNativeInherit]
11 public class RelativeLayout : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IPackLayout
13 ///<summary>Pointer to the native class description.</summary>
14 public override System.IntPtr NativeClass {
16 if (((object)this).GetType() == typeof (RelativeLayout))
17 return Efl.Ui.RelativeLayoutNativeInherit.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_relative_layout_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 RelativeLayout(Efl.Object parent
28 , System.String style = null) :
29 base(efl_ui_relative_layout_class_get(), typeof(RelativeLayout), 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 RelativeLayout(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 RelativeLayout(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 LayoutUpdatedEvtKey = new object();
61 /// <summary>Sent after the layout was updated.</summary>
62 public event EventHandler LayoutUpdatedEvt
66 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
67 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) {
68 eventHandlers.AddHandler(LayoutUpdatedEvtKey , value);
70 Eina.Log.Error($"Error adding proxy for event {key}");
75 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
76 if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) {
77 eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value);
79 Eina.Log.Error($"Error removing proxy for event {key}");
83 ///<summary>Method to raise event LayoutUpdatedEvt.</summary>
84 public void On_LayoutUpdatedEvt(EventArgs e)
88 evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey];
92 Efl.EventCb evt_LayoutUpdatedEvt_delegate;
93 private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
95 EventArgs args = EventArgs.Empty;
97 On_LayoutUpdatedEvt(args);
98 } catch (Exception e) {
99 Eina.Log.Error(e.ToString());
100 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
104 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
105 protected override void RegisterEventProxies()
107 base.RegisterEventProxies();
108 evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback);
110 /// <summary>Specifies the left side edge of the child relative to the target. By default, target is parent and relative is 0.0.</summary>
111 /// <param name="child">The child to specify relation.</param>
112 /// <param name="target">The relative target.</param>
113 /// <param name="relative">The ratio between left and right of the target, ranging from 0.0 to 1.0.</param>
114 /// <returns></returns>
115 virtual public void GetRelationLeft( Efl.Object child, out Efl.Object target, out double relative) {
116 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative);
117 Eina.Error.RaiseIfUnhandledException();
119 /// <summary>Specifies the left side edge of the child relative to the target. By default, target is parent and relative is 0.0.</summary>
120 /// <param name="child">The child to specify relation.</param>
121 /// <param name="target">The relative target.</param>
122 /// <param name="relative">The ratio between left and right of the target, ranging from 0.0 to 1.0.</param>
123 /// <returns></returns>
124 virtual public void SetRelationLeft( Efl.Object child, Efl.Object target, double relative) {
125 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative);
126 Eina.Error.RaiseIfUnhandledException();
128 /// <summary>Specifies the right side edge of the child relative to the target. By default, target is parent and relative is 1.0.</summary>
129 /// <param name="child">The child to specify relation.</param>
130 /// <param name="target">The relative target.</param>
131 /// <param name="relative">The ratio between left and right of the target, ranging from 0.0 to 1.0.</param>
132 /// <returns></returns>
133 virtual public void GetRelationRight( Efl.Object child, out Efl.Object target, out double relative) {
134 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative);
135 Eina.Error.RaiseIfUnhandledException();
137 /// <summary>Specifies the right side edge of the child relative to the target. By default, target is parent and relative is 1.0.</summary>
138 /// <param name="child">The child to specify relation.</param>
139 /// <param name="target">The relative target.</param>
140 /// <param name="relative">The ratio between left and right of the target, ranging from 0.0 to 1.0.</param>
141 /// <returns></returns>
142 virtual public void SetRelationRight( Efl.Object child, Efl.Object target, double relative) {
143 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative);
144 Eina.Error.RaiseIfUnhandledException();
146 /// <summary>Specifies the top side edge of the child relative to the target. By default, target is parent and relative is 0.0.</summary>
147 /// <param name="child">The child to specify relation.</param>
148 /// <param name="target">The relative target.</param>
149 /// <param name="relative">The ratio between top and bottom of the target, ranging from 0.0 to 1.0.</param>
150 /// <returns></returns>
151 virtual public void GetRelationTop( Efl.Object child, out Efl.Object target, out double relative) {
152 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative);
153 Eina.Error.RaiseIfUnhandledException();
155 /// <summary>Specifies the top side edge of the child relative to the target. By default, target is parent and relative is 0.0.</summary>
156 /// <param name="child">The child to specify relation.</param>
157 /// <param name="target">The relative target.</param>
158 /// <param name="relative">The ratio between top and bottom of the target, ranging from 0.0 to 1.0.</param>
159 /// <returns></returns>
160 virtual public void SetRelationTop( Efl.Object child, Efl.Object target, double relative) {
161 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative);
162 Eina.Error.RaiseIfUnhandledException();
164 /// <summary>Specifies the bottom side edge of the child relative to the target. By default, target is parent and relative is 1.0.</summary>
165 /// <param name="child">The child to specify relation.</param>
166 /// <param name="target">The relative target.</param>
167 /// <param name="relative">The ratio between top and bottom of the target, ranging from 0.0 to 1.0.</param>
168 /// <returns></returns>
169 virtual public void GetRelationBottom( Efl.Object child, out Efl.Object target, out double relative) {
170 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative);
171 Eina.Error.RaiseIfUnhandledException();
173 /// <summary>Specifies the bottom side edge of the child relative to the target. By default, target is parent and relative is 1.0.</summary>
174 /// <param name="child">The child to specify relation.</param>
175 /// <param name="target">The relative target.</param>
176 /// <param name="relative">The ratio between top and bottom of the target, ranging from 0.0 to 1.0.</param>
177 /// <returns></returns>
178 virtual public void SetRelationBottom( Efl.Object child, Efl.Object target, double relative) {
179 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative);
180 Eina.Error.RaiseIfUnhandledException();
182 /// <summary>Remove all relations of the child.</summary>
183 /// <param name="child">The child to unregister</param>
184 /// <returns></returns>
185 virtual public void Unregister( Efl.Object child) {
186 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child);
187 Eina.Error.RaiseIfUnhandledException();
189 /// <summary>Remove all relations from the registered children.</summary>
190 /// <returns></returns>
191 virtual public void UnregisterAll() {
192 Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_unregister_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
193 Eina.Error.RaiseIfUnhandledException();
195 /// <summary>Begin iterating over this object's children.</summary>
196 /// <returns>Iterator to object children.</returns>
197 virtual public Eina.Iterator<Efl.Object> ChildrenIterate() {
198 var _ret_var = Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
199 Eina.Error.RaiseIfUnhandledException();
200 return new Eina.Iterator<Efl.Object>(_ret_var, true, false);
202 /// <summary>Requests EFL to call the <see cref="Efl.IPackLayout.UpdateLayout"/> method on this object.
203 /// This <see cref="Efl.IPackLayout.UpdateLayout"/> may be called asynchronously.</summary>
204 /// <returns></returns>
205 virtual public void LayoutRequest() {
206 Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
207 Eina.Error.RaiseIfUnhandledException();
209 /// <summary>Implementation of this container's layout algorithm.
210 /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas.
212 /// This can be overriden to implement custom layout behaviors.</summary>
213 /// <returns></returns>
214 virtual public void UpdateLayout() {
215 Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
216 Eina.Error.RaiseIfUnhandledException();
218 private static IntPtr GetEflClassStatic()
220 return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get();
223 public class RelativeLayoutNativeInherit : Efl.Ui.WidgetNativeInherit{
224 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
225 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
227 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
228 var methods = Efl.Eo.Globals.GetUserMethods(type);
229 if (efl_ui_relative_layout_relation_left_get_static_delegate == null)
230 efl_ui_relative_layout_relation_left_get_static_delegate = new efl_ui_relative_layout_relation_left_get_delegate(relation_left_get);
231 if (methods.FirstOrDefault(m => m.Name == "GetRelationLeft") != null)
232 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_left_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_get_static_delegate)});
233 if (efl_ui_relative_layout_relation_left_set_static_delegate == null)
234 efl_ui_relative_layout_relation_left_set_static_delegate = new efl_ui_relative_layout_relation_left_set_delegate(relation_left_set);
235 if (methods.FirstOrDefault(m => m.Name == "SetRelationLeft") != null)
236 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_left_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_set_static_delegate)});
237 if (efl_ui_relative_layout_relation_right_get_static_delegate == null)
238 efl_ui_relative_layout_relation_right_get_static_delegate = new efl_ui_relative_layout_relation_right_get_delegate(relation_right_get);
239 if (methods.FirstOrDefault(m => m.Name == "GetRelationRight") != null)
240 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_right_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_get_static_delegate)});
241 if (efl_ui_relative_layout_relation_right_set_static_delegate == null)
242 efl_ui_relative_layout_relation_right_set_static_delegate = new efl_ui_relative_layout_relation_right_set_delegate(relation_right_set);
243 if (methods.FirstOrDefault(m => m.Name == "SetRelationRight") != null)
244 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_right_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_set_static_delegate)});
245 if (efl_ui_relative_layout_relation_top_get_static_delegate == null)
246 efl_ui_relative_layout_relation_top_get_static_delegate = new efl_ui_relative_layout_relation_top_get_delegate(relation_top_get);
247 if (methods.FirstOrDefault(m => m.Name == "GetRelationTop") != null)
248 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_top_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_get_static_delegate)});
249 if (efl_ui_relative_layout_relation_top_set_static_delegate == null)
250 efl_ui_relative_layout_relation_top_set_static_delegate = new efl_ui_relative_layout_relation_top_set_delegate(relation_top_set);
251 if (methods.FirstOrDefault(m => m.Name == "SetRelationTop") != null)
252 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_top_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_set_static_delegate)});
253 if (efl_ui_relative_layout_relation_bottom_get_static_delegate == null)
254 efl_ui_relative_layout_relation_bottom_get_static_delegate = new efl_ui_relative_layout_relation_bottom_get_delegate(relation_bottom_get);
255 if (methods.FirstOrDefault(m => m.Name == "GetRelationBottom") != null)
256 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_bottom_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_get_static_delegate)});
257 if (efl_ui_relative_layout_relation_bottom_set_static_delegate == null)
258 efl_ui_relative_layout_relation_bottom_set_static_delegate = new efl_ui_relative_layout_relation_bottom_set_delegate(relation_bottom_set);
259 if (methods.FirstOrDefault(m => m.Name == "SetRelationBottom") != null)
260 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_bottom_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_set_static_delegate)});
261 if (efl_ui_relative_layout_unregister_static_delegate == null)
262 efl_ui_relative_layout_unregister_static_delegate = new efl_ui_relative_layout_unregister_delegate(unregister);
263 if (methods.FirstOrDefault(m => m.Name == "Unregister") != null)
264 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_static_delegate)});
265 if (efl_ui_relative_layout_unregister_all_static_delegate == null)
266 efl_ui_relative_layout_unregister_all_static_delegate = new efl_ui_relative_layout_unregister_all_delegate(unregister_all);
267 if (methods.FirstOrDefault(m => m.Name == "UnregisterAll") != null)
268 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_unregister_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_all_static_delegate)});
269 if (efl_ui_relative_layout_children_iterate_static_delegate == null)
270 efl_ui_relative_layout_children_iterate_static_delegate = new efl_ui_relative_layout_children_iterate_delegate(children_iterate);
271 if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null)
272 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_children_iterate_static_delegate)});
273 if (efl_pack_layout_request_static_delegate == null)
274 efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request);
275 if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null)
276 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)});
277 if (efl_pack_layout_update_static_delegate == null)
278 efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update);
279 if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null)
280 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)});
281 descs.AddRange(base.GetEoOps(type));
284 public override IntPtr GetEflClass()
286 return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get();
288 public static new IntPtr GetEflClassStatic()
290 return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get();
294 private delegate void efl_ui_relative_layout_relation_left_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
297 public delegate void efl_ui_relative_layout_relation_left_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
298 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_left_get_api_delegate> efl_ui_relative_layout_relation_left_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_left_get_api_delegate>(_Module, "efl_ui_relative_layout_relation_left_get");
299 private static void relation_left_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative)
301 Eina.Log.Debug("function efl_ui_relative_layout_relation_left_get was called");
302 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
303 if(wrapper != null) {
304 target = default(Efl.Object); relative = default(double);
306 ((RelativeLayout)wrapper).GetRelationLeft( child, out target, out relative);
307 } catch (Exception e) {
308 Eina.Log.Warning($"Callback error: {e.ToString()}");
309 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
312 efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative);
315 private static efl_ui_relative_layout_relation_left_get_delegate efl_ui_relative_layout_relation_left_get_static_delegate;
318 private delegate void efl_ui_relative_layout_relation_left_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
321 public delegate void efl_ui_relative_layout_relation_left_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
322 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_left_set_api_delegate> efl_ui_relative_layout_relation_left_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_left_set_api_delegate>(_Module, "efl_ui_relative_layout_relation_left_set");
323 private static void relation_left_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative)
325 Eina.Log.Debug("function efl_ui_relative_layout_relation_left_set was called");
326 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
327 if(wrapper != null) {
330 ((RelativeLayout)wrapper).SetRelationLeft( child, target, relative);
331 } catch (Exception e) {
332 Eina.Log.Warning($"Callback error: {e.ToString()}");
333 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
336 efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative);
339 private static efl_ui_relative_layout_relation_left_set_delegate efl_ui_relative_layout_relation_left_set_static_delegate;
342 private delegate void efl_ui_relative_layout_relation_right_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
345 public delegate void efl_ui_relative_layout_relation_right_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
346 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_right_get_api_delegate> efl_ui_relative_layout_relation_right_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_right_get_api_delegate>(_Module, "efl_ui_relative_layout_relation_right_get");
347 private static void relation_right_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative)
349 Eina.Log.Debug("function efl_ui_relative_layout_relation_right_get was called");
350 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
351 if(wrapper != null) {
352 target = default(Efl.Object); relative = default(double);
354 ((RelativeLayout)wrapper).GetRelationRight( child, out target, out relative);
355 } catch (Exception e) {
356 Eina.Log.Warning($"Callback error: {e.ToString()}");
357 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
360 efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative);
363 private static efl_ui_relative_layout_relation_right_get_delegate efl_ui_relative_layout_relation_right_get_static_delegate;
366 private delegate void efl_ui_relative_layout_relation_right_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
369 public delegate void efl_ui_relative_layout_relation_right_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
370 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_right_set_api_delegate> efl_ui_relative_layout_relation_right_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_right_set_api_delegate>(_Module, "efl_ui_relative_layout_relation_right_set");
371 private static void relation_right_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative)
373 Eina.Log.Debug("function efl_ui_relative_layout_relation_right_set was called");
374 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
375 if(wrapper != null) {
378 ((RelativeLayout)wrapper).SetRelationRight( child, target, relative);
379 } catch (Exception e) {
380 Eina.Log.Warning($"Callback error: {e.ToString()}");
381 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
384 efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative);
387 private static efl_ui_relative_layout_relation_right_set_delegate efl_ui_relative_layout_relation_right_set_static_delegate;
390 private delegate void efl_ui_relative_layout_relation_top_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
393 public delegate void efl_ui_relative_layout_relation_top_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
394 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_top_get_api_delegate> efl_ui_relative_layout_relation_top_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_top_get_api_delegate>(_Module, "efl_ui_relative_layout_relation_top_get");
395 private static void relation_top_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative)
397 Eina.Log.Debug("function efl_ui_relative_layout_relation_top_get was called");
398 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
399 if(wrapper != null) {
400 target = default(Efl.Object); relative = default(double);
402 ((RelativeLayout)wrapper).GetRelationTop( child, out target, out relative);
403 } catch (Exception e) {
404 Eina.Log.Warning($"Callback error: {e.ToString()}");
405 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
408 efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative);
411 private static efl_ui_relative_layout_relation_top_get_delegate efl_ui_relative_layout_relation_top_get_static_delegate;
414 private delegate void efl_ui_relative_layout_relation_top_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
417 public delegate void efl_ui_relative_layout_relation_top_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
418 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_top_set_api_delegate> efl_ui_relative_layout_relation_top_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_top_set_api_delegate>(_Module, "efl_ui_relative_layout_relation_top_set");
419 private static void relation_top_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative)
421 Eina.Log.Debug("function efl_ui_relative_layout_relation_top_set was called");
422 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
423 if(wrapper != null) {
426 ((RelativeLayout)wrapper).SetRelationTop( child, target, relative);
427 } catch (Exception e) {
428 Eina.Log.Warning($"Callback error: {e.ToString()}");
429 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
432 efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative);
435 private static efl_ui_relative_layout_relation_top_set_delegate efl_ui_relative_layout_relation_top_set_static_delegate;
438 private delegate void efl_ui_relative_layout_relation_bottom_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
441 public delegate void efl_ui_relative_layout_relation_bottom_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] out Efl.Object target, out double relative);
442 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_bottom_get_api_delegate> efl_ui_relative_layout_relation_bottom_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_bottom_get_api_delegate>(_Module, "efl_ui_relative_layout_relation_bottom_get");
443 private static void relation_bottom_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative)
445 Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_get was called");
446 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
447 if(wrapper != null) {
448 target = default(Efl.Object); relative = default(double);
450 ((RelativeLayout)wrapper).GetRelationBottom( child, out target, out relative);
451 } catch (Exception e) {
452 Eina.Log.Warning($"Callback error: {e.ToString()}");
453 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
456 efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative);
459 private static efl_ui_relative_layout_relation_bottom_get_delegate efl_ui_relative_layout_relation_bottom_get_static_delegate;
462 private delegate void efl_ui_relative_layout_relation_bottom_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
465 public delegate void efl_ui_relative_layout_relation_bottom_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object target, double relative);
466 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_bottom_set_api_delegate> efl_ui_relative_layout_relation_bottom_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_relation_bottom_set_api_delegate>(_Module, "efl_ui_relative_layout_relation_bottom_set");
467 private static void relation_bottom_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative)
469 Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_set was called");
470 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
471 if(wrapper != null) {
474 ((RelativeLayout)wrapper).SetRelationBottom( child, target, relative);
475 } catch (Exception e) {
476 Eina.Log.Warning($"Callback error: {e.ToString()}");
477 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
480 efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative);
483 private static efl_ui_relative_layout_relation_bottom_set_delegate efl_ui_relative_layout_relation_bottom_set_static_delegate;
486 private delegate void efl_ui_relative_layout_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child);
489 public delegate void efl_ui_relative_layout_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Object, Efl.Eo.NonOwnTag>))] Efl.Object child);
490 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_unregister_api_delegate> efl_ui_relative_layout_unregister_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_unregister_api_delegate>(_Module, "efl_ui_relative_layout_unregister");
491 private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Object child)
493 Eina.Log.Debug("function efl_ui_relative_layout_unregister was called");
494 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
495 if(wrapper != null) {
498 ((RelativeLayout)wrapper).Unregister( child);
499 } catch (Exception e) {
500 Eina.Log.Warning($"Callback error: {e.ToString()}");
501 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
504 efl_ui_relative_layout_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child);
507 private static efl_ui_relative_layout_unregister_delegate efl_ui_relative_layout_unregister_static_delegate;
510 private delegate void efl_ui_relative_layout_unregister_all_delegate(System.IntPtr obj, System.IntPtr pd);
513 public delegate void efl_ui_relative_layout_unregister_all_api_delegate(System.IntPtr obj);
514 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_unregister_all_api_delegate> efl_ui_relative_layout_unregister_all_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_unregister_all_api_delegate>(_Module, "efl_ui_relative_layout_unregister_all");
515 private static void unregister_all(System.IntPtr obj, System.IntPtr pd)
517 Eina.Log.Debug("function efl_ui_relative_layout_unregister_all was called");
518 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
519 if(wrapper != null) {
522 ((RelativeLayout)wrapper).UnregisterAll();
523 } catch (Exception e) {
524 Eina.Log.Warning($"Callback error: {e.ToString()}");
525 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
528 efl_ui_relative_layout_unregister_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
531 private static efl_ui_relative_layout_unregister_all_delegate efl_ui_relative_layout_unregister_all_static_delegate;
534 private delegate System.IntPtr efl_ui_relative_layout_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
537 public delegate System.IntPtr efl_ui_relative_layout_children_iterate_api_delegate(System.IntPtr obj);
538 public static Efl.Eo.FunctionWrapper<efl_ui_relative_layout_children_iterate_api_delegate> efl_ui_relative_layout_children_iterate_ptr = new Efl.Eo.FunctionWrapper<efl_ui_relative_layout_children_iterate_api_delegate>(_Module, "efl_ui_relative_layout_children_iterate");
539 private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd)
541 Eina.Log.Debug("function efl_ui_relative_layout_children_iterate was called");
542 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
543 if(wrapper != null) {
544 Eina.Iterator<Efl.Object> _ret_var = default(Eina.Iterator<Efl.Object>);
546 _ret_var = ((RelativeLayout)wrapper).ChildrenIterate();
547 } catch (Exception e) {
548 Eina.Log.Warning($"Callback error: {e.ToString()}");
549 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
551 _ret_var.Own = false; return _ret_var.Handle;
553 return efl_ui_relative_layout_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
556 private static efl_ui_relative_layout_children_iterate_delegate efl_ui_relative_layout_children_iterate_static_delegate;
559 private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd);
562 public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj);
563 public static Efl.Eo.FunctionWrapper<efl_pack_layout_request_api_delegate> efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper<efl_pack_layout_request_api_delegate>(_Module, "efl_pack_layout_request");
564 private static void layout_request(System.IntPtr obj, System.IntPtr pd)
566 Eina.Log.Debug("function efl_pack_layout_request was called");
567 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
568 if(wrapper != null) {
571 ((RelativeLayout)wrapper).LayoutRequest();
572 } catch (Exception e) {
573 Eina.Log.Warning($"Callback error: {e.ToString()}");
574 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
577 efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
580 private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate;
583 private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd);
586 public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj);
587 public static Efl.Eo.FunctionWrapper<efl_pack_layout_update_api_delegate> efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper<efl_pack_layout_update_api_delegate>(_Module, "efl_pack_layout_update");
588 private static void layout_update(System.IntPtr obj, System.IntPtr pd)
590 Eina.Log.Debug("function efl_pack_layout_update was called");
591 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
592 if(wrapper != null) {
595 ((RelativeLayout)wrapper).UpdateLayout();
596 } catch (Exception e) {
597 Eina.Log.Warning($"Callback error: {e.ToString()}");
598 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
601 efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
604 private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate;