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 box widget.
9 /// A box arranges objects in a linear fashion, governed by a layout function that defines the details of this arrangement.
11 /// By default, the box will use an internal function to set the layout to a single row, either vertical or horizontal. This layout is affected by a number of parameters. The values given by <see cref="Efl.Pack.GetPackPadding"/> and <see cref="Efl.Pack.GetPackAlign"/> and the hints set to each object in the box.
13 /// FIXME: THIS CLASS NEEDS GOOD UP TO DATE DOCUMENTATION. LEGACY BOX AND UI BOX BEHAVE SLIGHTLY DIFFERENTLY AND USE VASTLY DIFFERENT APIS.</summary>
15 public class Box : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.Container,Efl.Pack,Efl.PackLayout,Efl.PackLinear,Efl.Ui.Direction
17 public new static System.IntPtr klass = System.IntPtr.Zero;
18 public new static Efl.Ui.BoxNativeInherit nativeInherit = new Efl.Ui.BoxNativeInherit();
19 ///<summary>Pointer to the native class description.</summary>
20 public override System.IntPtr NativeClass {
22 if (((object)this).GetType() == typeof (Box))
23 return Efl.Ui.BoxNativeInherit.GetEflClassStatic();
25 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
29 efl_ui_box_class_get();
30 ///<summary>Creates a new instance.</summary>
31 ///<param name="parent">Parent instance.</param>
32 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
33 public Box(Efl.Object parent
34 , System.String style = null) :
35 base(efl_ui_box_class_get(), typeof(Box), parent)
37 if (Efl.Eo.Globals.ParamHelperCheck(style))
38 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
39 FinishInstantiation();
41 ///<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>
42 public Box(System.IntPtr raw) : base(raw)
44 register_event_proxies();
46 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
47 protected Box(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
48 ///<summary>Casts obj into an instance of this type.</summary>
49 public new static Box static_cast(Efl.Object obj)
52 throw new System.ArgumentNullException("obj");
53 return new Box(obj.NativeHandle);
55 ///<summary>Verifies if the given object is equal to this one.</summary>
56 public override bool Equals(object obj)
58 var other = obj as Efl.Object;
61 return this.NativeHandle == other.NativeHandle;
63 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
64 public override int GetHashCode()
66 return this.NativeHandle.ToInt32();
68 ///<summary>Turns the native pointer into a string representation.</summary>
69 public override String ToString()
71 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
73 private static object ContentAddedEvtKey = new object();
74 /// <summary>Sent after a new item was added.</summary>
75 public event EventHandler<Efl.ContainerContentAddedEvt_Args> ContentAddedEvt
79 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
80 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) {
81 eventHandlers.AddHandler(ContentAddedEvtKey , value);
83 Eina.Log.Error($"Error adding proxy for event {key}");
88 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
89 if (remove_cpp_event_handler(key, this.evt_ContentAddedEvt_delegate)) {
90 eventHandlers.RemoveHandler(ContentAddedEvtKey , value);
92 Eina.Log.Error($"Error removing proxy for event {key}");
96 ///<summary>Method to raise event ContentAddedEvt.</summary>
97 public void On_ContentAddedEvt(Efl.ContainerContentAddedEvt_Args e)
99 EventHandler<Efl.ContainerContentAddedEvt_Args> evt;
101 evt = (EventHandler<Efl.ContainerContentAddedEvt_Args>)eventHandlers[ContentAddedEvtKey];
103 evt?.Invoke(this, e);
105 Efl.EventCb evt_ContentAddedEvt_delegate;
106 private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
108 Efl.ContainerContentAddedEvt_Args args = new Efl.ContainerContentAddedEvt_Args();
109 args.arg = new Efl.Gfx.EntityConcrete(evt.Info);
111 On_ContentAddedEvt(args);
112 } catch (Exception e) {
113 Eina.Log.Error(e.ToString());
114 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
118 private static object ContentRemovedEvtKey = new object();
119 /// <summary>Sent after an item was removed, before unref.</summary>
120 public event EventHandler<Efl.ContainerContentRemovedEvt_Args> ContentRemovedEvt
124 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
125 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) {
126 eventHandlers.AddHandler(ContentRemovedEvtKey , value);
128 Eina.Log.Error($"Error adding proxy for event {key}");
133 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
134 if (remove_cpp_event_handler(key, this.evt_ContentRemovedEvt_delegate)) {
135 eventHandlers.RemoveHandler(ContentRemovedEvtKey , value);
137 Eina.Log.Error($"Error removing proxy for event {key}");
141 ///<summary>Method to raise event ContentRemovedEvt.</summary>
142 public void On_ContentRemovedEvt(Efl.ContainerContentRemovedEvt_Args e)
144 EventHandler<Efl.ContainerContentRemovedEvt_Args> evt;
146 evt = (EventHandler<Efl.ContainerContentRemovedEvt_Args>)eventHandlers[ContentRemovedEvtKey];
148 evt?.Invoke(this, e);
150 Efl.EventCb evt_ContentRemovedEvt_delegate;
151 private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
153 Efl.ContainerContentRemovedEvt_Args args = new Efl.ContainerContentRemovedEvt_Args();
154 args.arg = new Efl.Gfx.EntityConcrete(evt.Info);
156 On_ContentRemovedEvt(args);
157 } catch (Exception e) {
158 Eina.Log.Error(e.ToString());
159 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
163 private static object LayoutUpdatedEvtKey = new object();
164 /// <summary>Sent after the layout was updated.</summary>
165 public event EventHandler LayoutUpdatedEvt
169 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
170 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) {
171 eventHandlers.AddHandler(LayoutUpdatedEvtKey , value);
173 Eina.Log.Error($"Error adding proxy for event {key}");
178 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
179 if (remove_cpp_event_handler(key, this.evt_LayoutUpdatedEvt_delegate)) {
180 eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value);
182 Eina.Log.Error($"Error removing proxy for event {key}");
186 ///<summary>Method to raise event LayoutUpdatedEvt.</summary>
187 public void On_LayoutUpdatedEvt(EventArgs e)
191 evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey];
193 evt?.Invoke(this, e);
195 Efl.EventCb evt_LayoutUpdatedEvt_delegate;
196 private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
198 EventArgs args = EventArgs.Empty;
200 On_LayoutUpdatedEvt(args);
201 } catch (Exception e) {
202 Eina.Log.Error(e.ToString());
203 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
207 protected override void register_event_proxies()
209 base.register_event_proxies();
210 evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback);
211 evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback);
212 evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback);
214 /// <summary>Control homogeneous mode.
215 /// This will enable the homogeneous mode where children are of the same weight and of the same min size which is determined by maximum min size of children.</summary>
216 /// <returns><c>true</c> if the box is homogeneous, <c>false</c> otherwise</returns>
217 virtual public bool GetHomogeneous() {
218 var _ret_var = Efl.Ui.BoxNativeInherit.efl_ui_box_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
219 Eina.Error.RaiseIfUnhandledException();
222 /// <summary>Control homogeneous mode.
223 /// This will enable the homogeneous mode where children are of the same weight and of the same min size which is determined by maximum min size of children.</summary>
224 /// <param name="homogeneous"><c>true</c> if the box is homogeneous, <c>false</c> otherwise</param>
225 /// <returns></returns>
226 virtual public void SetHomogeneous( bool homogeneous) {
227 Efl.Ui.BoxNativeInherit.efl_ui_box_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), homogeneous);
228 Eina.Error.RaiseIfUnhandledException();
230 /// <summary>Begin iterating over this object's contents.</summary>
231 /// <returns>Iterator to object content</returns>
232 virtual public Eina.Iterator<Efl.Gfx.Entity> ContentIterate() {
233 var _ret_var = Efl.ContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
234 Eina.Error.RaiseIfUnhandledException();
235 return new Eina.Iterator<Efl.Gfx.Entity>(_ret_var, true, false);
237 /// <summary>Returns the number of UI elements packed in this container.</summary>
238 /// <returns>Number of packed UI elements</returns>
239 virtual public int ContentCount() {
240 var _ret_var = Efl.ContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
241 Eina.Error.RaiseIfUnhandledException();
244 /// <summary>Alignment of the container within its bounds</summary>
245 /// <param name="align_horiz">Horizontal alignment</param>
246 /// <param name="align_vert">Vertical alignment</param>
247 /// <returns></returns>
248 virtual public void GetPackAlign( out double align_horiz, out double align_vert) {
249 Efl.PackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert);
250 Eina.Error.RaiseIfUnhandledException();
252 /// <summary>Alignment of the container within its bounds</summary>
253 /// <param name="align_horiz">Horizontal alignment</param>
254 /// <param name="align_vert">Vertical alignment</param>
255 /// <returns></returns>
256 virtual public void SetPackAlign( double align_horiz, double align_vert) {
257 Efl.PackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert);
258 Eina.Error.RaiseIfUnhandledException();
260 /// <summary>Padding between items contained in this object.</summary>
261 /// <param name="pad_horiz">Horizontal padding</param>
262 /// <param name="pad_vert">Vertical padding</param>
263 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
264 /// <returns></returns>
265 virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) {
266 Efl.PackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable);
267 Eina.Error.RaiseIfUnhandledException();
269 /// <summary>Padding between items contained in this object.</summary>
270 /// <param name="pad_horiz">Horizontal padding</param>
271 /// <param name="pad_vert">Vertical padding</param>
272 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
273 /// <returns></returns>
274 virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) {
275 Efl.PackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable);
276 Eina.Error.RaiseIfUnhandledException();
278 /// <summary>Removes all packed contents, and unreferences them.</summary>
279 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
280 virtual public bool ClearPack() {
281 var _ret_var = Efl.PackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
282 Eina.Error.RaiseIfUnhandledException();
285 /// <summary>Removes all packed contents, without unreferencing them.
286 /// Use with caution.</summary>
287 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
288 virtual public bool UnpackAll() {
289 var _ret_var = Efl.PackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
290 Eina.Error.RaiseIfUnhandledException();
293 /// <summary>Removes an existing item from the container, without deleting it.</summary>
294 /// <param name="subobj">The unpacked object.</param>
295 /// <returns><c>false</c> if <c>subobj</c> wasn't a child or can't be removed</returns>
296 virtual public bool Unpack( Efl.Gfx.Entity subobj) {
297 var _ret_var = Efl.PackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
298 Eina.Error.RaiseIfUnhandledException();
301 /// <summary>Adds an item to this container.
302 /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part.
304 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
305 /// <param name="subobj">An object to pack.</param>
306 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
307 virtual public bool DoPack( Efl.Gfx.Entity subobj) {
308 var _ret_var = Efl.PackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
309 Eina.Error.RaiseIfUnhandledException();
312 /// <summary>Requests EFL to call the <see cref="Efl.PackLayout.UpdateLayout"/> method on this object.
313 /// This <see cref="Efl.PackLayout.UpdateLayout"/> may be called asynchronously.</summary>
314 /// <returns></returns>
315 virtual public void LayoutRequest() {
316 Efl.PackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
317 Eina.Error.RaiseIfUnhandledException();
319 /// <summary>Implementation of this container's layout algorithm.
320 /// EFL will call this function whenever the contents of this container need to be re-layed out on the canvas.
322 /// This can be overriden to implement custom layout behaviours.</summary>
323 /// <returns></returns>
324 virtual public void UpdateLayout() {
325 Efl.PackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
326 Eina.Error.RaiseIfUnhandledException();
328 /// <summary>Prepend an object at the beginning of this container.
329 /// This is the same as <see cref="Efl.PackLinear.PackAt"/>(<c>subobj</c>, 0).
331 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
332 /// <param name="subobj">Item to pack.</param>
333 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
334 virtual public bool PackBegin( Efl.Gfx.Entity subobj) {
335 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
336 Eina.Error.RaiseIfUnhandledException();
339 /// <summary>Append object at the end of this container.
340 /// This is the same as <see cref="Efl.PackLinear.PackAt"/>(<c>subobj</c>, -1).
342 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
343 /// <param name="subobj">Item to pack at the end.</param>
344 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
345 virtual public bool PackEnd( Efl.Gfx.Entity subobj) {
346 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
347 Eina.Error.RaiseIfUnhandledException();
350 /// <summary>Prepend item before other sub object.
351 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
352 /// <param name="subobj">Item to pack before <c>existing</c>.</param>
353 /// <param name="existing">Item to refer to.</param>
354 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
355 virtual public bool PackBefore( Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing) {
356 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing);
357 Eina.Error.RaiseIfUnhandledException();
360 /// <summary>Append item after other sub object.
361 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
362 /// <param name="subobj">Item to pack after <c>existing</c>.</param>
363 /// <param name="existing">Item to refer to.</param>
364 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
365 virtual public bool PackAfter( Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing) {
366 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing);
367 Eina.Error.RaiseIfUnhandledException();
370 /// <summary>Inserts <c>subobj</c> at the specified <c>index</c>.
371 /// Valid range: -<c>count</c> to +<c>count</c>. -1 refers to the last element. Out of range indices will trigger an append.
373 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
374 /// <param name="subobj">Item to pack at given index.</param>
375 /// <param name="index">A position.</param>
376 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
377 virtual public bool PackAt( Efl.Gfx.Entity subobj, int index) {
378 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index);
379 Eina.Error.RaiseIfUnhandledException();
382 /// <summary>Content at a given index in this container.
383 /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1).</summary>
384 /// <param name="index">Index number</param>
385 /// <returns>The object contained at the given <c>index</c>.</returns>
386 virtual public Efl.Gfx.Entity GetPackContent( int index) {
387 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index);
388 Eina.Error.RaiseIfUnhandledException();
391 /// <summary>Get the index of a child in this container.</summary>
392 /// <param name="subobj">An object contained in this pack.</param>
393 /// <returns>-1 in case of failure, or the index of this item.</returns>
394 virtual public int GetPackIndex( Efl.Gfx.Entity subobj) {
395 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
396 Eina.Error.RaiseIfUnhandledException();
399 /// <summary>Pop out item at specified <c>index</c>.
400 /// Equivalent to unpack(content_at(<c>index</c>)).</summary>
401 /// <param name="index">Index number</param>
402 /// <returns>The child item if it could be removed.</returns>
403 virtual public Efl.Gfx.Entity PackUnpackAt( int index) {
404 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index);
405 Eina.Error.RaiseIfUnhandledException();
408 /// <summary>Control the direction of a given widget.
409 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
411 /// Mirroring as defined in <see cref="Efl.Ui.I18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
412 /// <returns>Direction of the widget.</returns>
413 virtual public Efl.Ui.Dir GetDirection() {
414 var _ret_var = Efl.Ui.DirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
415 Eina.Error.RaiseIfUnhandledException();
418 /// <summary>Control the direction of a given widget.
419 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
421 /// Mirroring as defined in <see cref="Efl.Ui.I18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
422 /// <param name="dir">Direction of the widget.</param>
423 /// <returns></returns>
424 virtual public void SetDirection( Efl.Ui.Dir dir) {
425 Efl.Ui.DirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir);
426 Eina.Error.RaiseIfUnhandledException();
428 /// <summary>Control homogeneous mode.
429 /// This will enable the homogeneous mode where children are of the same weight and of the same min size which is determined by maximum min size of children.</summary>
430 /// <value><c>true</c> if the box is homogeneous, <c>false</c> otherwise</value>
431 public bool Homogeneous {
432 get { return GetHomogeneous(); }
433 set { SetHomogeneous( value); }
435 /// <summary>Control the direction of a given widget.
436 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
438 /// Mirroring as defined in <see cref="Efl.Ui.I18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
439 /// <value>Direction of the widget.</value>
440 public Efl.Ui.Dir Direction {
441 get { return GetDirection(); }
442 set { SetDirection( value); }
444 private static new IntPtr GetEflClassStatic()
446 return Efl.Ui.Box.efl_ui_box_class_get();
449 public class BoxNativeInherit : Efl.Ui.WidgetNativeInherit{
450 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
451 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
453 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
454 if (efl_ui_box_homogeneous_get_static_delegate == null)
455 efl_ui_box_homogeneous_get_static_delegate = new efl_ui_box_homogeneous_get_delegate(homogeneous_get);
456 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_box_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_get_static_delegate)});
457 if (efl_ui_box_homogeneous_set_static_delegate == null)
458 efl_ui_box_homogeneous_set_static_delegate = new efl_ui_box_homogeneous_set_delegate(homogeneous_set);
459 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_box_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_set_static_delegate)});
460 if (efl_content_iterate_static_delegate == null)
461 efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate);
462 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)});
463 if (efl_content_count_static_delegate == null)
464 efl_content_count_static_delegate = new efl_content_count_delegate(content_count);
465 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)});
466 if (efl_pack_align_get_static_delegate == null)
467 efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get);
468 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)});
469 if (efl_pack_align_set_static_delegate == null)
470 efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set);
471 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)});
472 if (efl_pack_padding_get_static_delegate == null)
473 efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get);
474 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)});
475 if (efl_pack_padding_set_static_delegate == null)
476 efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set);
477 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)});
478 if (efl_pack_clear_static_delegate == null)
479 efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear);
480 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)});
481 if (efl_pack_unpack_all_static_delegate == null)
482 efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all);
483 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)});
484 if (efl_pack_unpack_static_delegate == null)
485 efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack);
486 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)});
487 if (efl_pack_static_delegate == null)
488 efl_pack_static_delegate = new efl_pack_delegate(pack);
489 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)});
490 if (efl_pack_layout_request_static_delegate == null)
491 efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request);
492 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)});
493 if (efl_pack_layout_update_static_delegate == null)
494 efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update);
495 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)});
496 if (efl_pack_begin_static_delegate == null)
497 efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin);
498 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)});
499 if (efl_pack_end_static_delegate == null)
500 efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end);
501 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)});
502 if (efl_pack_before_static_delegate == null)
503 efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before);
504 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)});
505 if (efl_pack_after_static_delegate == null)
506 efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after);
507 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)});
508 if (efl_pack_at_static_delegate == null)
509 efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at);
510 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)});
511 if (efl_pack_content_get_static_delegate == null)
512 efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get);
513 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)});
514 if (efl_pack_index_get_static_delegate == null)
515 efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get);
516 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)});
517 if (efl_pack_unpack_at_static_delegate == null)
518 efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at);
519 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)});
520 if (efl_ui_direction_get_static_delegate == null)
521 efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get);
522 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)});
523 if (efl_ui_direction_set_static_delegate == null)
524 efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set);
525 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)});
526 descs.AddRange(base.GetEoOps(type));
529 public override IntPtr GetEflClass()
531 return Efl.Ui.Box.efl_ui_box_class_get();
533 public static new IntPtr GetEflClassStatic()
535 return Efl.Ui.Box.efl_ui_box_class_get();
539 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_box_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd);
542 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_box_homogeneous_get_api_delegate(System.IntPtr obj);
543 public static Efl.Eo.FunctionWrapper<efl_ui_box_homogeneous_get_api_delegate> efl_ui_box_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_box_homogeneous_get_api_delegate>(_Module, "efl_ui_box_homogeneous_get");
544 private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd)
546 Eina.Log.Debug("function efl_ui_box_homogeneous_get was called");
547 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
548 if(wrapper != null) {
549 bool _ret_var = default(bool);
551 _ret_var = ((Box)wrapper).GetHomogeneous();
552 } catch (Exception e) {
553 Eina.Log.Warning($"Callback error: {e.ToString()}");
554 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
558 return efl_ui_box_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
561 private static efl_ui_box_homogeneous_get_delegate efl_ui_box_homogeneous_get_static_delegate;
564 private delegate void efl_ui_box_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous);
567 public delegate void efl_ui_box_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous);
568 public static Efl.Eo.FunctionWrapper<efl_ui_box_homogeneous_set_api_delegate> efl_ui_box_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_box_homogeneous_set_api_delegate>(_Module, "efl_ui_box_homogeneous_set");
569 private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous)
571 Eina.Log.Debug("function efl_ui_box_homogeneous_set was called");
572 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
573 if(wrapper != null) {
576 ((Box)wrapper).SetHomogeneous( homogeneous);
577 } catch (Exception e) {
578 Eina.Log.Warning($"Callback error: {e.ToString()}");
579 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
582 efl_ui_box_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous);
585 private static efl_ui_box_homogeneous_set_delegate efl_ui_box_homogeneous_set_static_delegate;
588 private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
591 public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj);
592 public static Efl.Eo.FunctionWrapper<efl_content_iterate_api_delegate> efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper<efl_content_iterate_api_delegate>(_Module, "efl_content_iterate");
593 private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
595 Eina.Log.Debug("function efl_content_iterate was called");
596 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
597 if(wrapper != null) {
598 Eina.Iterator<Efl.Gfx.Entity> _ret_var = default(Eina.Iterator<Efl.Gfx.Entity>);
600 _ret_var = ((Box)wrapper).ContentIterate();
601 } catch (Exception e) {
602 Eina.Log.Warning($"Callback error: {e.ToString()}");
603 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
605 _ret_var.Own = false; return _ret_var.Handle;
607 return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
610 private static efl_content_iterate_delegate efl_content_iterate_static_delegate;
613 private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd);
616 public delegate int efl_content_count_api_delegate(System.IntPtr obj);
617 public static Efl.Eo.FunctionWrapper<efl_content_count_api_delegate> efl_content_count_ptr = new Efl.Eo.FunctionWrapper<efl_content_count_api_delegate>(_Module, "efl_content_count");
618 private static int content_count(System.IntPtr obj, System.IntPtr pd)
620 Eina.Log.Debug("function efl_content_count was called");
621 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
622 if(wrapper != null) {
623 int _ret_var = default( int);
625 _ret_var = ((Box)wrapper).ContentCount();
626 } catch (Exception e) {
627 Eina.Log.Warning($"Callback error: {e.ToString()}");
628 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
632 return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
635 private static efl_content_count_delegate efl_content_count_static_delegate;
638 private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert);
641 public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert);
642 public static Efl.Eo.FunctionWrapper<efl_pack_align_get_api_delegate> efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_align_get_api_delegate>(_Module, "efl_pack_align_get");
643 private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert)
645 Eina.Log.Debug("function efl_pack_align_get was called");
646 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
647 if(wrapper != null) {
648 align_horiz = default(double); align_vert = default(double);
650 ((Box)wrapper).GetPackAlign( out align_horiz, out align_vert);
651 } catch (Exception e) {
652 Eina.Log.Warning($"Callback error: {e.ToString()}");
653 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
656 efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert);
659 private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate;
662 private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert);
665 public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert);
666 public static Efl.Eo.FunctionWrapper<efl_pack_align_set_api_delegate> efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper<efl_pack_align_set_api_delegate>(_Module, "efl_pack_align_set");
667 private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert)
669 Eina.Log.Debug("function efl_pack_align_set was called");
670 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
671 if(wrapper != null) {
674 ((Box)wrapper).SetPackAlign( align_horiz, align_vert);
675 } catch (Exception e) {
676 Eina.Log.Warning($"Callback error: {e.ToString()}");
677 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
680 efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert);
683 private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate;
686 private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
689 public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
690 public static Efl.Eo.FunctionWrapper<efl_pack_padding_get_api_delegate> efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_padding_get_api_delegate>(_Module, "efl_pack_padding_get");
691 private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable)
693 Eina.Log.Debug("function efl_pack_padding_get was called");
694 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
695 if(wrapper != null) {
696 pad_horiz = default(double); pad_vert = default(double); scalable = default(bool);
698 ((Box)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable);
699 } catch (Exception e) {
700 Eina.Log.Warning($"Callback error: {e.ToString()}");
701 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
704 efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable);
707 private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate;
710 private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
713 public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
714 public static Efl.Eo.FunctionWrapper<efl_pack_padding_set_api_delegate> efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper<efl_pack_padding_set_api_delegate>(_Module, "efl_pack_padding_set");
715 private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable)
717 Eina.Log.Debug("function efl_pack_padding_set was called");
718 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
719 if(wrapper != null) {
722 ((Box)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable);
723 } catch (Exception e) {
724 Eina.Log.Warning($"Callback error: {e.ToString()}");
725 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
728 efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable);
731 private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate;
734 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd);
737 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj);
738 public static Efl.Eo.FunctionWrapper<efl_pack_clear_api_delegate> efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper<efl_pack_clear_api_delegate>(_Module, "efl_pack_clear");
739 private static bool pack_clear(System.IntPtr obj, System.IntPtr pd)
741 Eina.Log.Debug("function efl_pack_clear was called");
742 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
743 if(wrapper != null) {
744 bool _ret_var = default(bool);
746 _ret_var = ((Box)wrapper).ClearPack();
747 } catch (Exception e) {
748 Eina.Log.Warning($"Callback error: {e.ToString()}");
749 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
753 return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
756 private static efl_pack_clear_delegate efl_pack_clear_static_delegate;
759 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd);
762 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj);
763 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_all_api_delegate> efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_all_api_delegate>(_Module, "efl_pack_unpack_all");
764 private static bool unpack_all(System.IntPtr obj, System.IntPtr pd)
766 Eina.Log.Debug("function efl_pack_unpack_all was called");
767 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
768 if(wrapper != null) {
769 bool _ret_var = default(bool);
771 _ret_var = ((Box)wrapper).UnpackAll();
772 } catch (Exception e) {
773 Eina.Log.Warning($"Callback error: {e.ToString()}");
774 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
778 return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
781 private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate;
784 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
787 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
788 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_api_delegate> efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_api_delegate>(_Module, "efl_pack_unpack");
789 private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
791 Eina.Log.Debug("function efl_pack_unpack was called");
792 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
793 if(wrapper != null) {
794 bool _ret_var = default(bool);
796 _ret_var = ((Box)wrapper).Unpack( subobj);
797 } catch (Exception e) {
798 Eina.Log.Warning($"Callback error: {e.ToString()}");
799 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
803 return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
806 private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate;
809 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
812 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
813 public static Efl.Eo.FunctionWrapper<efl_pack_api_delegate> efl_pack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_api_delegate>(_Module, "efl_pack");
814 private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
816 Eina.Log.Debug("function efl_pack was called");
817 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
818 if(wrapper != null) {
819 bool _ret_var = default(bool);
821 _ret_var = ((Box)wrapper).DoPack( subobj);
822 } catch (Exception e) {
823 Eina.Log.Warning($"Callback error: {e.ToString()}");
824 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
828 return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
831 private static efl_pack_delegate efl_pack_static_delegate;
834 private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd);
837 public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj);
838 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");
839 private static void layout_request(System.IntPtr obj, System.IntPtr pd)
841 Eina.Log.Debug("function efl_pack_layout_request was called");
842 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
843 if(wrapper != null) {
846 ((Box)wrapper).LayoutRequest();
847 } catch (Exception e) {
848 Eina.Log.Warning($"Callback error: {e.ToString()}");
849 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
852 efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
855 private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate;
858 private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd);
861 public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj);
862 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");
863 private static void layout_update(System.IntPtr obj, System.IntPtr pd)
865 Eina.Log.Debug("function efl_pack_layout_update was called");
866 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
867 if(wrapper != null) {
870 ((Box)wrapper).UpdateLayout();
871 } catch (Exception e) {
872 Eina.Log.Warning($"Callback error: {e.ToString()}");
873 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
876 efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
879 private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate;
882 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
885 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
886 public static Efl.Eo.FunctionWrapper<efl_pack_begin_api_delegate> efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper<efl_pack_begin_api_delegate>(_Module, "efl_pack_begin");
887 private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
889 Eina.Log.Debug("function efl_pack_begin was called");
890 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
891 if(wrapper != null) {
892 bool _ret_var = default(bool);
894 _ret_var = ((Box)wrapper).PackBegin( subobj);
895 } catch (Exception e) {
896 Eina.Log.Warning($"Callback error: {e.ToString()}");
897 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
901 return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
904 private static efl_pack_begin_delegate efl_pack_begin_static_delegate;
907 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
910 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
911 public static Efl.Eo.FunctionWrapper<efl_pack_end_api_delegate> efl_pack_end_ptr = new Efl.Eo.FunctionWrapper<efl_pack_end_api_delegate>(_Module, "efl_pack_end");
912 private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
914 Eina.Log.Debug("function efl_pack_end was called");
915 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
916 if(wrapper != null) {
917 bool _ret_var = default(bool);
919 _ret_var = ((Box)wrapper).PackEnd( subobj);
920 } catch (Exception e) {
921 Eina.Log.Warning($"Callback error: {e.ToString()}");
922 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
926 return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
929 private static efl_pack_end_delegate efl_pack_end_static_delegate;
932 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
935 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
936 public static Efl.Eo.FunctionWrapper<efl_pack_before_api_delegate> efl_pack_before_ptr = new Efl.Eo.FunctionWrapper<efl_pack_before_api_delegate>(_Module, "efl_pack_before");
937 private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing)
939 Eina.Log.Debug("function efl_pack_before was called");
940 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
941 if(wrapper != null) {
942 bool _ret_var = default(bool);
944 _ret_var = ((Box)wrapper).PackBefore( subobj, existing);
945 } catch (Exception e) {
946 Eina.Log.Warning($"Callback error: {e.ToString()}");
947 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
951 return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
954 private static efl_pack_before_delegate efl_pack_before_static_delegate;
957 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
960 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
961 public static Efl.Eo.FunctionWrapper<efl_pack_after_api_delegate> efl_pack_after_ptr = new Efl.Eo.FunctionWrapper<efl_pack_after_api_delegate>(_Module, "efl_pack_after");
962 private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing)
964 Eina.Log.Debug("function efl_pack_after was called");
965 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
966 if(wrapper != null) {
967 bool _ret_var = default(bool);
969 _ret_var = ((Box)wrapper).PackAfter( subobj, existing);
970 } catch (Exception e) {
971 Eina.Log.Warning($"Callback error: {e.ToString()}");
972 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
976 return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
979 private static efl_pack_after_delegate efl_pack_after_static_delegate;
982 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, int index);
985 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, int index);
986 public static Efl.Eo.FunctionWrapper<efl_pack_at_api_delegate> efl_pack_at_ptr = new Efl.Eo.FunctionWrapper<efl_pack_at_api_delegate>(_Module, "efl_pack_at");
987 private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, int index)
989 Eina.Log.Debug("function efl_pack_at was called");
990 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
991 if(wrapper != null) {
992 bool _ret_var = default(bool);
994 _ret_var = ((Box)wrapper).PackAt( subobj, index);
995 } catch (Exception e) {
996 Eina.Log.Warning($"Callback error: {e.ToString()}");
997 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1001 return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
1004 private static efl_pack_at_delegate efl_pack_at_static_delegate;
1007 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.Entity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index);
1010 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.Entity efl_pack_content_get_api_delegate(System.IntPtr obj, int index);
1011 public static Efl.Eo.FunctionWrapper<efl_pack_content_get_api_delegate> efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_content_get_api_delegate>(_Module, "efl_pack_content_get");
1012 private static Efl.Gfx.Entity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index)
1014 Eina.Log.Debug("function efl_pack_content_get was called");
1015 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1016 if(wrapper != null) {
1017 Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
1019 _ret_var = ((Box)wrapper).GetPackContent( index);
1020 } catch (Exception e) {
1021 Eina.Log.Warning($"Callback error: {e.ToString()}");
1022 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1026 return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
1029 private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate;
1032 private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
1035 public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
1036 public static Efl.Eo.FunctionWrapper<efl_pack_index_get_api_delegate> efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_index_get_api_delegate>(_Module, "efl_pack_index_get");
1037 private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
1039 Eina.Log.Debug("function efl_pack_index_get was called");
1040 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1041 if(wrapper != null) {
1042 int _ret_var = default( int);
1044 _ret_var = ((Box)wrapper).GetPackIndex( subobj);
1045 } catch (Exception e) {
1046 Eina.Log.Warning($"Callback error: {e.ToString()}");
1047 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1051 return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
1054 private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate;
1057 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.Entity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index);
1060 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.Entity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index);
1061 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_at_api_delegate> efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_at_api_delegate>(_Module, "efl_pack_unpack_at");
1062 private static Efl.Gfx.Entity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
1064 Eina.Log.Debug("function efl_pack_unpack_at was called");
1065 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1066 if(wrapper != null) {
1067 Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
1069 _ret_var = ((Box)wrapper).PackUnpackAt( index);
1070 } catch (Exception e) {
1071 Eina.Log.Warning($"Callback error: {e.ToString()}");
1072 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1076 return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
1079 private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate;
1082 private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd);
1085 public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj);
1086 public static Efl.Eo.FunctionWrapper<efl_ui_direction_get_api_delegate> efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_direction_get_api_delegate>(_Module, "efl_ui_direction_get");
1087 private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd)
1089 Eina.Log.Debug("function efl_ui_direction_get was called");
1090 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1091 if(wrapper != null) {
1092 Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir);
1094 _ret_var = ((Box)wrapper).GetDirection();
1095 } catch (Exception e) {
1096 Eina.Log.Warning($"Callback error: {e.ToString()}");
1097 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1101 return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1104 private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate;
1107 private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir);
1110 public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir);
1111 public static Efl.Eo.FunctionWrapper<efl_ui_direction_set_api_delegate> efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_direction_set_api_delegate>(_Module, "efl_ui_direction_set");
1112 private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir)
1114 Eina.Log.Debug("function efl_ui_direction_set was called");
1115 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1116 if(wrapper != null) {
1119 ((Box)wrapper).SetDirection( dir);
1120 } catch (Exception e) {
1121 Eina.Log.Warning($"Callback error: {e.ToString()}");
1122 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1125 efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
1128 private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate;