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.IPack.GetPackPadding"/> and <see cref="Efl.IPack.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.IContainer,Efl.IPack,Efl.IPackLayout,Efl.IPackLinear,Efl.Ui.IDirection
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass {
20 if (((object)this).GetType() == typeof (Box))
21 return Efl.Ui.BoxNativeInherit.GetEflClassStatic();
23 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
26 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
27 efl_ui_box_class_get();
28 ///<summary>Creates a new instance.</summary>
29 ///<param name="parent">Parent instance.</param>
30 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
31 public Box(Efl.Object parent
32 , System.String style = null) :
33 base(efl_ui_box_class_get(), typeof(Box), parent)
35 if (Efl.Eo.Globals.ParamHelperCheck(style))
36 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
37 FinishInstantiation();
39 ///<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>
40 protected Box(System.IntPtr raw) : base(raw)
42 RegisterEventProxies();
44 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
45 protected Box(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
46 ///<summary>Verifies if the given object is equal to this one.</summary>
47 public override bool Equals(object obj)
49 var other = obj as Efl.Object;
52 return this.NativeHandle == other.NativeHandle;
54 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
55 public override int GetHashCode()
57 return this.NativeHandle.ToInt32();
59 ///<summary>Turns the native pointer into a string representation.</summary>
60 public override String ToString()
62 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
64 private static object ContentAddedEvtKey = new object();
65 /// <summary>Sent after a new item was added.
66 /// (Since EFL 1.22)</summary>
67 public event EventHandler<Efl.IContainerContentAddedEvt_Args> ContentAddedEvt
71 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
72 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) {
73 eventHandlers.AddHandler(ContentAddedEvtKey , value);
75 Eina.Log.Error($"Error adding proxy for event {key}");
80 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
81 if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) {
82 eventHandlers.RemoveHandler(ContentAddedEvtKey , value);
84 Eina.Log.Error($"Error removing proxy for event {key}");
88 ///<summary>Method to raise event ContentAddedEvt.</summary>
89 public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e)
91 EventHandler<Efl.IContainerContentAddedEvt_Args> evt;
93 evt = (EventHandler<Efl.IContainerContentAddedEvt_Args>)eventHandlers[ContentAddedEvtKey];
97 Efl.EventCb evt_ContentAddedEvt_delegate;
98 private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
100 Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args();
101 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
103 On_ContentAddedEvt(args);
104 } catch (Exception e) {
105 Eina.Log.Error(e.ToString());
106 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
110 private static object ContentRemovedEvtKey = new object();
111 /// <summary>Sent after an item was removed, before unref.
112 /// (Since EFL 1.22)</summary>
113 public event EventHandler<Efl.IContainerContentRemovedEvt_Args> ContentRemovedEvt
117 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
118 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) {
119 eventHandlers.AddHandler(ContentRemovedEvtKey , value);
121 Eina.Log.Error($"Error adding proxy for event {key}");
126 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
127 if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) {
128 eventHandlers.RemoveHandler(ContentRemovedEvtKey , value);
130 Eina.Log.Error($"Error removing proxy for event {key}");
134 ///<summary>Method to raise event ContentRemovedEvt.</summary>
135 public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e)
137 EventHandler<Efl.IContainerContentRemovedEvt_Args> evt;
139 evt = (EventHandler<Efl.IContainerContentRemovedEvt_Args>)eventHandlers[ContentRemovedEvtKey];
141 evt?.Invoke(this, e);
143 Efl.EventCb evt_ContentRemovedEvt_delegate;
144 private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
146 Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args();
147 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
149 On_ContentRemovedEvt(args);
150 } catch (Exception e) {
151 Eina.Log.Error(e.ToString());
152 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
156 private static object LayoutUpdatedEvtKey = new object();
157 /// <summary>Sent after the layout was updated.</summary>
158 public event EventHandler LayoutUpdatedEvt
162 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
163 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) {
164 eventHandlers.AddHandler(LayoutUpdatedEvtKey , value);
166 Eina.Log.Error($"Error adding proxy for event {key}");
171 string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED";
172 if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) {
173 eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value);
175 Eina.Log.Error($"Error removing proxy for event {key}");
179 ///<summary>Method to raise event LayoutUpdatedEvt.</summary>
180 public void On_LayoutUpdatedEvt(EventArgs e)
184 evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey];
186 evt?.Invoke(this, e);
188 Efl.EventCb evt_LayoutUpdatedEvt_delegate;
189 private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
191 EventArgs args = EventArgs.Empty;
193 On_LayoutUpdatedEvt(args);
194 } catch (Exception e) {
195 Eina.Log.Error(e.ToString());
196 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
200 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
201 protected override void RegisterEventProxies()
203 base.RegisterEventProxies();
204 evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback);
205 evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback);
206 evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback);
208 /// <summary>Control homogeneous mode.
209 /// 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>
210 /// <returns><c>true</c> if the box is homogeneous, <c>false</c> otherwise</returns>
211 virtual public bool GetHomogeneous() {
212 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));
213 Eina.Error.RaiseIfUnhandledException();
216 /// <summary>Control homogeneous mode.
217 /// 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>
218 /// <param name="homogeneous"><c>true</c> if the box is homogeneous, <c>false</c> otherwise</param>
219 /// <returns></returns>
220 virtual public void SetHomogeneous( bool homogeneous) {
221 Efl.Ui.BoxNativeInherit.efl_ui_box_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), homogeneous);
222 Eina.Error.RaiseIfUnhandledException();
224 /// <summary>Begin iterating over this object's contents.
225 /// (Since EFL 1.22)</summary>
226 /// <returns>Iterator to object content</returns>
227 virtual public Eina.Iterator<Efl.Gfx.IEntity> ContentIterate() {
228 var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
229 Eina.Error.RaiseIfUnhandledException();
230 return new Eina.Iterator<Efl.Gfx.IEntity>(_ret_var, true, false);
232 /// <summary>Returns the number of UI elements packed in this container.
233 /// (Since EFL 1.22)</summary>
234 /// <returns>Number of packed UI elements</returns>
235 virtual public int ContentCount() {
236 var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
237 Eina.Error.RaiseIfUnhandledException();
240 /// <summary>Alignment of the container within its bounds</summary>
241 /// <param name="align_horiz">Horizontal alignment</param>
242 /// <param name="align_vert">Vertical alignment</param>
243 /// <returns></returns>
244 virtual public void GetPackAlign( out double align_horiz, out double align_vert) {
245 Efl.IPackNativeInherit.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);
246 Eina.Error.RaiseIfUnhandledException();
248 /// <summary>Alignment of the container within its bounds</summary>
249 /// <param name="align_horiz">Horizontal alignment</param>
250 /// <param name="align_vert">Vertical alignment</param>
251 /// <returns></returns>
252 virtual public void SetPackAlign( double align_horiz, double align_vert) {
253 Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert);
254 Eina.Error.RaiseIfUnhandledException();
256 /// <summary>Padding between items contained in this object.</summary>
257 /// <param name="pad_horiz">Horizontal padding</param>
258 /// <param name="pad_vert">Vertical padding</param>
259 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
260 /// <returns></returns>
261 virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) {
262 Efl.IPackNativeInherit.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);
263 Eina.Error.RaiseIfUnhandledException();
265 /// <summary>Padding between items contained in this object.</summary>
266 /// <param name="pad_horiz">Horizontal padding</param>
267 /// <param name="pad_vert">Vertical padding</param>
268 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
269 /// <returns></returns>
270 virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) {
271 Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable);
272 Eina.Error.RaiseIfUnhandledException();
274 /// <summary>Removes all packed contents, and unreferences them.</summary>
275 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
276 virtual public bool ClearPack() {
277 var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
278 Eina.Error.RaiseIfUnhandledException();
281 /// <summary>Removes all packed contents, without unreferencing them.
282 /// Use with caution.</summary>
283 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
284 virtual public bool UnpackAll() {
285 var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
286 Eina.Error.RaiseIfUnhandledException();
289 /// <summary>Removes an existing item from the container, without deleting it.</summary>
290 /// <param name="subobj">The unpacked object.</param>
291 /// <returns><c>false</c> if <c>subobj</c> wasn't a child or can't be removed</returns>
292 virtual public bool Unpack( Efl.Gfx.IEntity subobj) {
293 var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
294 Eina.Error.RaiseIfUnhandledException();
297 /// <summary>Adds an item to this container.
298 /// 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.
300 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
301 /// <param name="subobj">An object to pack.</param>
302 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
303 virtual public bool DoPack( Efl.Gfx.IEntity subobj) {
304 var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
305 Eina.Error.RaiseIfUnhandledException();
308 /// <summary>Requests EFL to call the <see cref="Efl.IPackLayout.UpdateLayout"/> method on this object.
309 /// This <see cref="Efl.IPackLayout.UpdateLayout"/> may be called asynchronously.</summary>
310 /// <returns></returns>
311 virtual public void LayoutRequest() {
312 Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
313 Eina.Error.RaiseIfUnhandledException();
315 /// <summary>Implementation of this container's layout algorithm.
316 /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas.
318 /// This can be overriden to implement custom layout behaviors.</summary>
319 /// <returns></returns>
320 virtual public void UpdateLayout() {
321 Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
322 Eina.Error.RaiseIfUnhandledException();
324 /// <summary>Prepend an object at the beginning of this container.
325 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, 0).
327 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
328 /// <param name="subobj">Item to pack.</param>
329 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
330 virtual public bool PackBegin( Efl.Gfx.IEntity subobj) {
331 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
332 Eina.Error.RaiseIfUnhandledException();
335 /// <summary>Append object at the end of this container.
336 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, -1).
338 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
339 /// <param name="subobj">Item to pack at the end.</param>
340 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
341 virtual public bool PackEnd( Efl.Gfx.IEntity subobj) {
342 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
343 Eina.Error.RaiseIfUnhandledException();
346 /// <summary>Prepend item before other sub object.
347 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
348 /// <param name="subobj">Item to pack before <c>existing</c>.</param>
349 /// <param name="existing">Item to refer to.</param>
350 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
351 virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
352 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing);
353 Eina.Error.RaiseIfUnhandledException();
356 /// <summary>Append item after other sub object.
357 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
358 /// <param name="subobj">Item to pack after <c>existing</c>.</param>
359 /// <param name="existing">Item to refer to.</param>
360 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
361 virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
362 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing);
363 Eina.Error.RaiseIfUnhandledException();
366 /// <summary>Inserts <c>subobj</c> at the specified <c>index</c>.
367 /// Valid range: -<c>count</c> to +<c>count</c>. -1 refers to the last element. Out of range indices will trigger an append.
369 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
370 /// <param name="subobj">Item to pack at given index.</param>
371 /// <param name="index">A position.</param>
372 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
373 virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) {
374 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index);
375 Eina.Error.RaiseIfUnhandledException();
378 /// <summary>Content at a given index in this container.
379 /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1).</summary>
380 /// <param name="index">Index number</param>
381 /// <returns>The object contained at the given <c>index</c>.</returns>
382 virtual public Efl.Gfx.IEntity GetPackContent( int index) {
383 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index);
384 Eina.Error.RaiseIfUnhandledException();
387 /// <summary>Get the index of a child in this container.</summary>
388 /// <param name="subobj">An object contained in this pack.</param>
389 /// <returns>-1 in case of failure, or the index of this item.</returns>
390 virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) {
391 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj);
392 Eina.Error.RaiseIfUnhandledException();
395 /// <summary>Pop out item at specified <c>index</c>.
396 /// Equivalent to unpack(content_at(<c>index</c>)).</summary>
397 /// <param name="index">Index number</param>
398 /// <returns>The child item if it could be removed.</returns>
399 virtual public Efl.Gfx.IEntity PackUnpackAt( int index) {
400 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index);
401 Eina.Error.RaiseIfUnhandledException();
404 /// <summary>Control the direction of a given widget.
405 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
407 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> 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>
408 /// <returns>Direction of the widget.</returns>
409 virtual public Efl.Ui.Dir GetDirection() {
410 var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
411 Eina.Error.RaiseIfUnhandledException();
414 /// <summary>Control the direction of a given widget.
415 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
417 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> 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>
418 /// <param name="dir">Direction of the widget.</param>
419 /// <returns></returns>
420 virtual public void SetDirection( Efl.Ui.Dir dir) {
421 Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir);
422 Eina.Error.RaiseIfUnhandledException();
424 /// <summary>Control homogeneous mode.
425 /// 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>
426 /// <value><c>true</c> if the box is homogeneous, <c>false</c> otherwise</value>
427 public bool Homogeneous {
428 get { return GetHomogeneous(); }
429 set { SetHomogeneous( value); }
431 /// <summary>Control the direction of a given widget.
432 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
434 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> 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>
435 /// <value>Direction of the widget.</value>
436 public Efl.Ui.Dir Direction {
437 get { return GetDirection(); }
438 set { SetDirection( value); }
440 private static IntPtr GetEflClassStatic()
442 return Efl.Ui.Box.efl_ui_box_class_get();
445 public class BoxNativeInherit : Efl.Ui.WidgetNativeInherit{
446 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
447 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
449 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
450 var methods = Efl.Eo.Globals.GetUserMethods(type);
451 if (efl_ui_box_homogeneous_get_static_delegate == null)
452 efl_ui_box_homogeneous_get_static_delegate = new efl_ui_box_homogeneous_get_delegate(homogeneous_get);
453 if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null)
454 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)});
455 if (efl_ui_box_homogeneous_set_static_delegate == null)
456 efl_ui_box_homogeneous_set_static_delegate = new efl_ui_box_homogeneous_set_delegate(homogeneous_set);
457 if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null)
458 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)});
459 if (efl_content_iterate_static_delegate == null)
460 efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate);
461 if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null)
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 if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null)
466 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)});
467 if (efl_pack_align_get_static_delegate == null)
468 efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get);
469 if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null)
470 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)});
471 if (efl_pack_align_set_static_delegate == null)
472 efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set);
473 if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null)
474 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)});
475 if (efl_pack_padding_get_static_delegate == null)
476 efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get);
477 if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null)
478 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)});
479 if (efl_pack_padding_set_static_delegate == null)
480 efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set);
481 if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null)
482 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)});
483 if (efl_pack_clear_static_delegate == null)
484 efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear);
485 if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null)
486 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)});
487 if (efl_pack_unpack_all_static_delegate == null)
488 efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all);
489 if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null)
490 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)});
491 if (efl_pack_unpack_static_delegate == null)
492 efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack);
493 if (methods.FirstOrDefault(m => m.Name == "Unpack") != null)
494 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)});
495 if (efl_pack_static_delegate == null)
496 efl_pack_static_delegate = new efl_pack_delegate(pack);
497 if (methods.FirstOrDefault(m => m.Name == "DoPack") != null)
498 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)});
499 if (efl_pack_layout_request_static_delegate == null)
500 efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request);
501 if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null)
502 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)});
503 if (efl_pack_layout_update_static_delegate == null)
504 efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update);
505 if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null)
506 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)});
507 if (efl_pack_begin_static_delegate == null)
508 efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin);
509 if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null)
510 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)});
511 if (efl_pack_end_static_delegate == null)
512 efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end);
513 if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null)
514 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)});
515 if (efl_pack_before_static_delegate == null)
516 efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before);
517 if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null)
518 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)});
519 if (efl_pack_after_static_delegate == null)
520 efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after);
521 if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null)
522 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)});
523 if (efl_pack_at_static_delegate == null)
524 efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at);
525 if (methods.FirstOrDefault(m => m.Name == "PackAt") != null)
526 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)});
527 if (efl_pack_content_get_static_delegate == null)
528 efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get);
529 if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null)
530 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)});
531 if (efl_pack_index_get_static_delegate == null)
532 efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get);
533 if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null)
534 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)});
535 if (efl_pack_unpack_at_static_delegate == null)
536 efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at);
537 if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null)
538 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)});
539 if (efl_ui_direction_get_static_delegate == null)
540 efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get);
541 if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null)
542 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)});
543 if (efl_ui_direction_set_static_delegate == null)
544 efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set);
545 if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null)
546 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)});
547 descs.AddRange(base.GetEoOps(type));
550 public override IntPtr GetEflClass()
552 return Efl.Ui.Box.efl_ui_box_class_get();
554 public static new IntPtr GetEflClassStatic()
556 return Efl.Ui.Box.efl_ui_box_class_get();
560 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_box_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd);
563 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_box_homogeneous_get_api_delegate(System.IntPtr obj);
564 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");
565 private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd)
567 Eina.Log.Debug("function efl_ui_box_homogeneous_get was called");
568 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
569 if(wrapper != null) {
570 bool _ret_var = default(bool);
572 _ret_var = ((Box)wrapper).GetHomogeneous();
573 } catch (Exception e) {
574 Eina.Log.Warning($"Callback error: {e.ToString()}");
575 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
579 return efl_ui_box_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
582 private static efl_ui_box_homogeneous_get_delegate efl_ui_box_homogeneous_get_static_delegate;
585 private delegate void efl_ui_box_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous);
588 public delegate void efl_ui_box_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous);
589 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");
590 private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous)
592 Eina.Log.Debug("function efl_ui_box_homogeneous_set was called");
593 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
594 if(wrapper != null) {
597 ((Box)wrapper).SetHomogeneous( homogeneous);
598 } catch (Exception e) {
599 Eina.Log.Warning($"Callback error: {e.ToString()}");
600 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
603 efl_ui_box_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous);
606 private static efl_ui_box_homogeneous_set_delegate efl_ui_box_homogeneous_set_static_delegate;
609 private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
612 public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj);
613 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");
614 private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
616 Eina.Log.Debug("function efl_content_iterate was called");
617 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
618 if(wrapper != null) {
619 Eina.Iterator<Efl.Gfx.IEntity> _ret_var = default(Eina.Iterator<Efl.Gfx.IEntity>);
621 _ret_var = ((Box)wrapper).ContentIterate();
622 } catch (Exception e) {
623 Eina.Log.Warning($"Callback error: {e.ToString()}");
624 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
626 _ret_var.Own = false; return _ret_var.Handle;
628 return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
631 private static efl_content_iterate_delegate efl_content_iterate_static_delegate;
634 private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd);
637 public delegate int efl_content_count_api_delegate(System.IntPtr obj);
638 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");
639 private static int content_count(System.IntPtr obj, System.IntPtr pd)
641 Eina.Log.Debug("function efl_content_count was called");
642 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
643 if(wrapper != null) {
644 int _ret_var = default(int);
646 _ret_var = ((Box)wrapper).ContentCount();
647 } catch (Exception e) {
648 Eina.Log.Warning($"Callback error: {e.ToString()}");
649 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
653 return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
656 private static efl_content_count_delegate efl_content_count_static_delegate;
659 private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert);
662 public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert);
663 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");
664 private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert)
666 Eina.Log.Debug("function efl_pack_align_get was called");
667 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
668 if(wrapper != null) {
669 align_horiz = default(double); align_vert = default(double);
671 ((Box)wrapper).GetPackAlign( out align_horiz, out align_vert);
672 } catch (Exception e) {
673 Eina.Log.Warning($"Callback error: {e.ToString()}");
674 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
677 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);
680 private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate;
683 private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert);
686 public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert);
687 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");
688 private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert)
690 Eina.Log.Debug("function efl_pack_align_set was called");
691 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
692 if(wrapper != null) {
695 ((Box)wrapper).SetPackAlign( align_horiz, align_vert);
696 } catch (Exception e) {
697 Eina.Log.Warning($"Callback error: {e.ToString()}");
698 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
701 efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert);
704 private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate;
707 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);
710 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);
711 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");
712 private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable)
714 Eina.Log.Debug("function efl_pack_padding_get was called");
715 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
716 if(wrapper != null) {
717 pad_horiz = default(double); pad_vert = default(double); scalable = default(bool);
719 ((Box)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable);
720 } catch (Exception e) {
721 Eina.Log.Warning($"Callback error: {e.ToString()}");
722 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
725 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);
728 private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate;
731 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);
734 public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
735 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");
736 private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable)
738 Eina.Log.Debug("function efl_pack_padding_set was called");
739 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
740 if(wrapper != null) {
743 ((Box)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable);
744 } catch (Exception e) {
745 Eina.Log.Warning($"Callback error: {e.ToString()}");
746 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
749 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);
752 private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate;
755 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd);
758 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj);
759 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");
760 private static bool pack_clear(System.IntPtr obj, System.IntPtr pd)
762 Eina.Log.Debug("function efl_pack_clear was called");
763 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
764 if(wrapper != null) {
765 bool _ret_var = default(bool);
767 _ret_var = ((Box)wrapper).ClearPack();
768 } catch (Exception e) {
769 Eina.Log.Warning($"Callback error: {e.ToString()}");
770 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
774 return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
777 private static efl_pack_clear_delegate efl_pack_clear_static_delegate;
780 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd);
783 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj);
784 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");
785 private static bool unpack_all(System.IntPtr obj, System.IntPtr pd)
787 Eina.Log.Debug("function efl_pack_unpack_all was called");
788 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
789 if(wrapper != null) {
790 bool _ret_var = default(bool);
792 _ret_var = ((Box)wrapper).UnpackAll();
793 } catch (Exception e) {
794 Eina.Log.Warning($"Callback error: {e.ToString()}");
795 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
799 return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
802 private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate;
805 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
808 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
809 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");
810 private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
812 Eina.Log.Debug("function efl_pack_unpack was called");
813 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
814 if(wrapper != null) {
815 bool _ret_var = default(bool);
817 _ret_var = ((Box)wrapper).Unpack( subobj);
818 } catch (Exception e) {
819 Eina.Log.Warning($"Callback error: {e.ToString()}");
820 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
824 return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
827 private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate;
830 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
833 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
834 public static Efl.Eo.FunctionWrapper<efl_pack_api_delegate> efl_pack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_api_delegate>(_Module, "efl_pack");
835 private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
837 Eina.Log.Debug("function efl_pack was called");
838 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
839 if(wrapper != null) {
840 bool _ret_var = default(bool);
842 _ret_var = ((Box)wrapper).DoPack( subobj);
843 } catch (Exception e) {
844 Eina.Log.Warning($"Callback error: {e.ToString()}");
845 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
849 return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
852 private static efl_pack_delegate efl_pack_static_delegate;
855 private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd);
858 public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj);
859 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");
860 private static void layout_request(System.IntPtr obj, System.IntPtr pd)
862 Eina.Log.Debug("function efl_pack_layout_request was called");
863 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
864 if(wrapper != null) {
867 ((Box)wrapper).LayoutRequest();
868 } catch (Exception e) {
869 Eina.Log.Warning($"Callback error: {e.ToString()}");
870 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
873 efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
876 private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate;
879 private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd);
882 public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj);
883 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");
884 private static void layout_update(System.IntPtr obj, System.IntPtr pd)
886 Eina.Log.Debug("function efl_pack_layout_update was called");
887 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
888 if(wrapper != null) {
891 ((Box)wrapper).UpdateLayout();
892 } catch (Exception e) {
893 Eina.Log.Warning($"Callback error: {e.ToString()}");
894 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
897 efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
900 private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate;
903 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
906 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
907 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");
908 private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
910 Eina.Log.Debug("function efl_pack_begin was called");
911 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
912 if(wrapper != null) {
913 bool _ret_var = default(bool);
915 _ret_var = ((Box)wrapper).PackBegin( subobj);
916 } catch (Exception e) {
917 Eina.Log.Warning($"Callback error: {e.ToString()}");
918 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
922 return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
925 private static efl_pack_begin_delegate efl_pack_begin_static_delegate;
928 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
931 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
932 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");
933 private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
935 Eina.Log.Debug("function efl_pack_end was called");
936 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
937 if(wrapper != null) {
938 bool _ret_var = default(bool);
940 _ret_var = ((Box)wrapper).PackEnd( subobj);
941 } catch (Exception e) {
942 Eina.Log.Warning($"Callback error: {e.ToString()}");
943 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
947 return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
950 private static efl_pack_end_delegate efl_pack_end_static_delegate;
953 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
956 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
957 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");
958 private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
960 Eina.Log.Debug("function efl_pack_before was called");
961 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
962 if(wrapper != null) {
963 bool _ret_var = default(bool);
965 _ret_var = ((Box)wrapper).PackBefore( subobj, existing);
966 } catch (Exception e) {
967 Eina.Log.Warning($"Callback error: {e.ToString()}");
968 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
972 return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
975 private static efl_pack_before_delegate efl_pack_before_static_delegate;
978 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
981 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
982 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");
983 private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
985 Eina.Log.Debug("function efl_pack_after was called");
986 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
987 if(wrapper != null) {
988 bool _ret_var = default(bool);
990 _ret_var = ((Box)wrapper).PackAfter( subobj, existing);
991 } catch (Exception e) {
992 Eina.Log.Warning($"Callback error: {e.ToString()}");
993 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
997 return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
1000 private static efl_pack_after_delegate efl_pack_after_static_delegate;
1003 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
1006 [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.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
1007 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");
1008 private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
1010 Eina.Log.Debug("function efl_pack_at was called");
1011 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1012 if(wrapper != null) {
1013 bool _ret_var = default(bool);
1015 _ret_var = ((Box)wrapper).PackAt( subobj, index);
1016 } catch (Exception e) {
1017 Eina.Log.Warning($"Callback error: {e.ToString()}");
1018 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1022 return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
1025 private static efl_pack_at_delegate efl_pack_at_static_delegate;
1028 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index);
1031 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index);
1032 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");
1033 private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index)
1035 Eina.Log.Debug("function efl_pack_content_get was called");
1036 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1037 if(wrapper != null) {
1038 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
1040 _ret_var = ((Box)wrapper).GetPackContent( index);
1041 } catch (Exception e) {
1042 Eina.Log.Warning($"Callback error: {e.ToString()}");
1043 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1047 return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
1050 private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate;
1053 private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
1056 public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
1057 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");
1058 private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
1060 Eina.Log.Debug("function efl_pack_index_get was called");
1061 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1062 if(wrapper != null) {
1063 int _ret_var = default(int);
1065 _ret_var = ((Box)wrapper).GetPackIndex( subobj);
1066 } catch (Exception e) {
1067 Eina.Log.Warning($"Callback error: {e.ToString()}");
1068 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1072 return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
1075 private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate;
1078 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index);
1081 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index);
1082 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");
1083 private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
1085 Eina.Log.Debug("function efl_pack_unpack_at was called");
1086 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1087 if(wrapper != null) {
1088 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
1090 _ret_var = ((Box)wrapper).PackUnpackAt( index);
1091 } catch (Exception e) {
1092 Eina.Log.Warning($"Callback error: {e.ToString()}");
1093 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1097 return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
1100 private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate;
1103 private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd);
1106 public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj);
1107 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");
1108 private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd)
1110 Eina.Log.Debug("function efl_ui_direction_get was called");
1111 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1112 if(wrapper != null) {
1113 Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir);
1115 _ret_var = ((Box)wrapper).GetDirection();
1116 } catch (Exception e) {
1117 Eina.Log.Warning($"Callback error: {e.ToString()}");
1118 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1122 return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1125 private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate;
1128 private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir);
1131 public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir);
1132 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");
1133 private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir)
1135 Eina.Log.Debug("function efl_ui_direction_set was called");
1136 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1137 if(wrapper != null) {
1140 ((Box)wrapper).SetDirection( dir);
1141 } catch (Exception e) {
1142 Eina.Log.Warning($"Callback error: {e.ToString()}");
1143 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1146 efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
1149 private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate;