1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 public partial class Constants
14 /// <summary>Use with <see cref="Efl.Gfx.IHint.GetHintWeight"/>.</summary>
15 public static readonly double HintExpand = 1.000000;
25 /// <summary>Efl graphics hint interface
26 /// (Since EFL 1.22)</summary>
27 [Efl.Gfx.IHintConcrete.NativeMethods]
28 public interface IHint :
29 Efl.Eo.IWrapper, IDisposable
31 /// <summary>Defines the aspect ratio to respect when scaling this object.
32 /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected.
34 /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy.
35 /// (Since EFL 1.22)</summary>
36 /// <param name="mode">Mode of interpretation.</param>
37 /// <param name="sz">Base size to use for aspecting.</param>
38 void GetHintAspect(out Efl.Gfx.HintAspect mode, out Eina.Size2D sz);
39 /// <summary>Defines the aspect ratio to respect when scaling this object.
40 /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected.
42 /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy.
43 /// (Since EFL 1.22)</summary>
44 /// <param name="mode">Mode of interpretation.</param>
45 /// <param name="sz">Base size to use for aspecting.</param>
46 void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz);
47 /// <summary>Hints on the object's maximum size.
48 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
50 /// The object container is in charge of fetching this property and placing the object accordingly.
52 /// Values -1 will be treated as unset hint components, when queried by managers.
54 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
55 /// (Since EFL 1.22)</summary>
56 /// <returns>Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</returns>
57 Eina.Size2D GetHintSizeMax();
58 /// <summary>Hints on the object's maximum size.
59 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
61 /// The object container is in charge of fetching this property and placing the object accordingly.
63 /// Values -1 will be treated as unset hint components, when queried by managers.
65 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
66 /// (Since EFL 1.22)</summary>
67 /// <param name="sz">Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</param>
68 void SetHintSizeMax(Eina.Size2D sz);
69 /// <summary>Hints on the object's minimum size.
70 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
72 /// Value 0 will be treated as unset hint components, when queried by managers.
74 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
75 /// (Since EFL 1.22)</summary>
76 /// <returns>Minimum size (hint) in pixels.</returns>
77 Eina.Size2D GetHintSizeMin();
78 /// <summary>Hints on the object's minimum size.
79 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
81 /// Value 0 will be treated as unset hint components, when queried by managers.
83 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
84 /// (Since EFL 1.22)</summary>
85 /// <param name="sz">Minimum size (hint) in pixels.</param>
86 void SetHintSizeMin(Eina.Size2D sz);
87 /// <summary>Get the "intrinsic" minimum size of this object.
88 /// (Since EFL 1.22)</summary>
89 /// <returns>Minimum size (hint) in pixels.</returns>
90 Eina.Size2D GetHintSizeRestrictedMin();
91 /// <summary>This function is protected as it is meant for widgets to indicate their "intrinsic" minimum size.
92 /// (Since EFL 1.22)</summary>
93 /// <param name="sz">Minimum size (hint) in pixels.</param>
94 void SetHintSizeRestrictedMin(Eina.Size2D sz);
95 /// <summary>Read-only minimum size combining both <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> and <see cref="Efl.Gfx.IHint.HintSizeMin"/> hints.
96 /// <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> is intended for mostly internal usage and widget developers, and <see cref="Efl.Gfx.IHint.HintSizeMin"/> is intended to be set from application side. <see cref="Efl.Gfx.IHint.GetHintSizeCombinedMin"/> combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size.
97 /// (Since EFL 1.22)</summary>
98 /// <returns>Minimum size (hint) in pixels.</returns>
99 Eina.Size2D GetHintSizeCombinedMin();
100 /// <summary>Hints for an object's margin or padding space.
101 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
103 /// The object container is in charge of fetching this property and placing the object accordingly.
105 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
106 /// (Since EFL 1.22)</summary>
107 /// <param name="l">Integer to specify left padding.</param>
108 /// <param name="r">Integer to specify right padding.</param>
109 /// <param name="t">Integer to specify top padding.</param>
110 /// <param name="b">Integer to specify bottom padding.</param>
111 void GetHintMargin(out int l, out int r, out int t, out int b);
112 /// <summary>Hints for an object's margin or padding space.
113 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
115 /// The object container is in charge of fetching this property and placing the object accordingly.
117 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
118 /// (Since EFL 1.22)</summary>
119 /// <param name="l">Integer to specify left padding.</param>
120 /// <param name="r">Integer to specify right padding.</param>
121 /// <param name="t">Integer to specify top padding.</param>
122 /// <param name="b">Integer to specify bottom padding.</param>
123 void SetHintMargin(int l, int r, int t, int b);
124 /// <summary>Hints for an object's weight.
125 /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the <see cref="Efl.Gfx.Constants.HintExpand"/> helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.
127 /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.
129 /// Note: Default weight hint values are 0.0, for both axis.
130 /// (Since EFL 1.22)</summary>
131 /// <param name="x">Non-negative double value to use as horizontal weight hint.</param>
132 /// <param name="y">Non-negative double value to use as vertical weight hint.</param>
133 void GetHintWeight(out double x, out double y);
134 /// <summary>Hints for an object's weight.
135 /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the <see cref="Efl.Gfx.Constants.HintExpand"/> helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.
137 /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.
139 /// Note: Default weight hint values are 0.0, for both axis.
140 /// (Since EFL 1.22)</summary>
141 /// <param name="x">Non-negative double value to use as horizontal weight hint.</param>
142 /// <param name="y">Non-negative double value to use as vertical weight hint.</param>
143 void SetHintWeight(double x, double y);
144 /// <summary>Hints for an object's alignment.
145 /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range.
147 /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom.
149 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
151 /// Note: Default alignment hint values are 0.5, for both axes.
152 /// (Since EFL 1.22)</summary>
153 /// <param name="x">Double, ranging from 0.0 to 1.0.</param>
154 /// <param name="y">Double, ranging from 0.0 to 1.0.</param>
155 void GetHintAlign(out double x, out double y);
156 /// <summary>Hints for an object's alignment.
157 /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range.
159 /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom.
161 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
163 /// Note: Default alignment hint values are 0.5, for both axes.
164 /// (Since EFL 1.22)</summary>
165 /// <param name="x">Double, ranging from 0.0 to 1.0.</param>
166 /// <param name="y">Double, ranging from 0.0 to 1.0.</param>
167 void SetHintAlign(double x, double y);
168 /// <summary>Hints for an object's fill property that used to specify "justify" or "fill" by some users. <see cref="Efl.Gfx.IHint.GetHintFill"/> specify whether to fill the space inside the boundaries of a container/manager.
169 /// Maximum hints should be enforced with higher priority, if they are set. Also, any <see cref="Efl.Gfx.IHint.GetHintMargin"/> set on objects should add up to the object space on the final scene composition.
171 /// See documentation of possible users: in Evas, they are the <see cref="Efl.Ui.Box"/> "box" and <see cref="Efl.Ui.Table"/> "table" smart objects.
173 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
175 /// Note: Default fill hint values are true, for both axes.
176 /// (Since EFL 1.22)</summary>
177 /// <param name="x"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as horizontal fill hint.</param>
178 /// <param name="y"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as vertical fill hint.</param>
179 void GetHintFill(out bool x, out bool y);
180 /// <summary>Hints for an object's fill property that used to specify "justify" or "fill" by some users. <see cref="Efl.Gfx.IHint.GetHintFill"/> specify whether to fill the space inside the boundaries of a container/manager.
181 /// Maximum hints should be enforced with higher priority, if they are set. Also, any <see cref="Efl.Gfx.IHint.GetHintMargin"/> set on objects should add up to the object space on the final scene composition.
183 /// See documentation of possible users: in Evas, they are the <see cref="Efl.Ui.Box"/> "box" and <see cref="Efl.Ui.Table"/> "table" smart objects.
185 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
187 /// Note: Default fill hint values are true, for both axes.
188 /// (Since EFL 1.22)</summary>
189 /// <param name="x"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as horizontal fill hint.</param>
190 /// <param name="y"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as vertical fill hint.</param>
191 void SetHintFill(bool x, bool y);
192 /// <summary>Object hints changed.
193 /// (Since EFL 1.22)</summary>
194 event EventHandler HintsChangedEvt;
195 /// <summary>Hints on the object's maximum size.
196 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
198 /// The object container is in charge of fetching this property and placing the object accordingly.
200 /// Values -1 will be treated as unset hint components, when queried by managers.
202 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
203 /// (Since EFL 1.22)</summary>
204 /// <value>Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</value>
205 Eina.Size2D HintSizeMax {
209 /// <summary>Hints on the object's minimum size.
210 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
212 /// Value 0 will be treated as unset hint components, when queried by managers.
214 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
215 /// (Since EFL 1.22)</summary>
216 /// <value>Minimum size (hint) in pixels.</value>
217 Eina.Size2D HintSizeMin {
221 /// <summary>Internal hints for an object's minimum size.
222 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
224 /// Values 0 will be treated as unset hint components, when queried by managers.
226 /// Note: This property is internal and meant for widget developers to define the absolute minimum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Use <see cref="Efl.Gfx.IHint.HintSizeMin"/> instead.
227 /// (Since EFL 1.22)</summary>
228 /// <value>Minimum size (hint) in pixels.</value>
229 Eina.Size2D HintSizeRestrictedMin {
233 /// <summary>Read-only minimum size combining both <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> and <see cref="Efl.Gfx.IHint.HintSizeMin"/> hints.
234 /// <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> is intended for mostly internal usage and widget developers, and <see cref="Efl.Gfx.IHint.HintSizeMin"/> is intended to be set from application side. <see cref="Efl.Gfx.IHint.GetHintSizeCombinedMin"/> combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size.
235 /// (Since EFL 1.22)</summary>
236 /// <value>Minimum size (hint) in pixels.</value>
237 Eina.Size2D HintSizeCombinedMin {
241 /// <summary>Efl graphics hint interface
242 /// (Since EFL 1.22)</summary>
243 sealed public class IHintConcrete :
248 ///<summary>Pointer to the native class description.</summary>
249 public override System.IntPtr NativeClass
253 if (((object)this).GetType() == typeof(IHintConcrete))
255 return GetEflClassStatic();
259 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
264 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
265 efl_gfx_hint_interface_get();
266 /// <summary>Initializes a new instance of the <see cref="IHint"/> class.
267 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
268 private IHintConcrete(System.IntPtr raw) : base(raw)
272 /// <summary>Object hints changed.
273 /// (Since EFL 1.22)</summary>
274 public event EventHandler HintsChangedEvt
280 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
282 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
285 EventArgs args = EventArgs.Empty;
288 value?.Invoke(obj, args);
292 Eina.Log.Error(e.ToString());
293 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
298 string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED";
299 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
307 string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED";
308 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
312 ///<summary>Method to raise event HintsChangedEvt.</summary>
313 public void OnHintsChangedEvt(EventArgs e)
315 var key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED";
316 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
317 if (desc == IntPtr.Zero)
319 Eina.Log.Error($"Failed to get native event {key}");
323 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
325 /// <summary>Defines the aspect ratio to respect when scaling this object.
326 /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected.
328 /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy.
329 /// (Since EFL 1.22)</summary>
330 /// <param name="mode">Mode of interpretation.</param>
331 /// <param name="sz">Base size to use for aspecting.</param>
332 public void GetHintAspect(out Efl.Gfx.HintAspect mode, out Eina.Size2D sz) {
333 var _out_sz = new Eina.Size2D.NativeStruct();
334 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_get_ptr.Value.Delegate(this.NativeHandle,out mode, out _out_sz);
335 Eina.Error.RaiseIfUnhandledException();
338 /// <summary>Defines the aspect ratio to respect when scaling this object.
339 /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected.
341 /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy.
342 /// (Since EFL 1.22)</summary>
343 /// <param name="mode">Mode of interpretation.</param>
344 /// <param name="sz">Base size to use for aspecting.</param>
345 public void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz) {
346 Eina.Size2D.NativeStruct _in_sz = sz;
347 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_set_ptr.Value.Delegate(this.NativeHandle,mode, _in_sz);
348 Eina.Error.RaiseIfUnhandledException();
350 /// <summary>Hints on the object's maximum size.
351 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
353 /// The object container is in charge of fetching this property and placing the object accordingly.
355 /// Values -1 will be treated as unset hint components, when queried by managers.
357 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
358 /// (Since EFL 1.22)</summary>
359 /// <returns>Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</returns>
360 public Eina.Size2D GetHintSizeMax() {
361 var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_get_ptr.Value.Delegate(this.NativeHandle);
362 Eina.Error.RaiseIfUnhandledException();
365 /// <summary>Hints on the object's maximum size.
366 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
368 /// The object container is in charge of fetching this property and placing the object accordingly.
370 /// Values -1 will be treated as unset hint components, when queried by managers.
372 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
373 /// (Since EFL 1.22)</summary>
374 /// <param name="sz">Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</param>
375 public void SetHintSizeMax(Eina.Size2D sz) {
376 Eina.Size2D.NativeStruct _in_sz = sz;
377 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_set_ptr.Value.Delegate(this.NativeHandle,_in_sz);
378 Eina.Error.RaiseIfUnhandledException();
380 /// <summary>Hints on the object's minimum size.
381 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
383 /// Value 0 will be treated as unset hint components, when queried by managers.
385 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
386 /// (Since EFL 1.22)</summary>
387 /// <returns>Minimum size (hint) in pixels.</returns>
388 public Eina.Size2D GetHintSizeMin() {
389 var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_get_ptr.Value.Delegate(this.NativeHandle);
390 Eina.Error.RaiseIfUnhandledException();
393 /// <summary>Hints on the object's minimum size.
394 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
396 /// Value 0 will be treated as unset hint components, when queried by managers.
398 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
399 /// (Since EFL 1.22)</summary>
400 /// <param name="sz">Minimum size (hint) in pixels.</param>
401 public void SetHintSizeMin(Eina.Size2D sz) {
402 Eina.Size2D.NativeStruct _in_sz = sz;
403 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_set_ptr.Value.Delegate(this.NativeHandle,_in_sz);
404 Eina.Error.RaiseIfUnhandledException();
406 /// <summary>Get the "intrinsic" minimum size of this object.
407 /// (Since EFL 1.22)</summary>
408 /// <returns>Minimum size (hint) in pixels.</returns>
409 public Eina.Size2D GetHintSizeRestrictedMin() {
410 var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(this.NativeHandle);
411 Eina.Error.RaiseIfUnhandledException();
414 /// <summary>This function is protected as it is meant for widgets to indicate their "intrinsic" minimum size.
415 /// (Since EFL 1.22)</summary>
416 /// <param name="sz">Minimum size (hint) in pixels.</param>
417 public void SetHintSizeRestrictedMin(Eina.Size2D sz) {
418 Eina.Size2D.NativeStruct _in_sz = sz;
419 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(this.NativeHandle,_in_sz);
420 Eina.Error.RaiseIfUnhandledException();
422 /// <summary>Read-only minimum size combining both <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> and <see cref="Efl.Gfx.IHint.HintSizeMin"/> hints.
423 /// <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> is intended for mostly internal usage and widget developers, and <see cref="Efl.Gfx.IHint.HintSizeMin"/> is intended to be set from application side. <see cref="Efl.Gfx.IHint.GetHintSizeCombinedMin"/> combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size.
424 /// (Since EFL 1.22)</summary>
425 /// <returns>Minimum size (hint) in pixels.</returns>
426 public Eina.Size2D GetHintSizeCombinedMin() {
427 var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(this.NativeHandle);
428 Eina.Error.RaiseIfUnhandledException();
431 /// <summary>Hints for an object's margin or padding space.
432 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
434 /// The object container is in charge of fetching this property and placing the object accordingly.
436 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
437 /// (Since EFL 1.22)</summary>
438 /// <param name="l">Integer to specify left padding.</param>
439 /// <param name="r">Integer to specify right padding.</param>
440 /// <param name="t">Integer to specify top padding.</param>
441 /// <param name="b">Integer to specify bottom padding.</param>
442 public void GetHintMargin(out int l, out int r, out int t, out int b) {
443 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b);
444 Eina.Error.RaiseIfUnhandledException();
446 /// <summary>Hints for an object's margin or padding space.
447 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
449 /// The object container is in charge of fetching this property and placing the object accordingly.
451 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
452 /// (Since EFL 1.22)</summary>
453 /// <param name="l">Integer to specify left padding.</param>
454 /// <param name="r">Integer to specify right padding.</param>
455 /// <param name="t">Integer to specify top padding.</param>
456 /// <param name="b">Integer to specify bottom padding.</param>
457 public void SetHintMargin(int l, int r, int t, int b) {
458 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_set_ptr.Value.Delegate(this.NativeHandle,l, r, t, b);
459 Eina.Error.RaiseIfUnhandledException();
461 /// <summary>Hints for an object's weight.
462 /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the <see cref="Efl.Gfx.Constants.HintExpand"/> helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.
464 /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.
466 /// Note: Default weight hint values are 0.0, for both axis.
467 /// (Since EFL 1.22)</summary>
468 /// <param name="x">Non-negative double value to use as horizontal weight hint.</param>
469 /// <param name="y">Non-negative double value to use as vertical weight hint.</param>
470 public void GetHintWeight(out double x, out double y) {
471 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_get_ptr.Value.Delegate(this.NativeHandle,out x, out y);
472 Eina.Error.RaiseIfUnhandledException();
474 /// <summary>Hints for an object's weight.
475 /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the <see cref="Efl.Gfx.Constants.HintExpand"/> helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.
477 /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.
479 /// Note: Default weight hint values are 0.0, for both axis.
480 /// (Since EFL 1.22)</summary>
481 /// <param name="x">Non-negative double value to use as horizontal weight hint.</param>
482 /// <param name="y">Non-negative double value to use as vertical weight hint.</param>
483 public void SetHintWeight(double x, double y) {
484 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_set_ptr.Value.Delegate(this.NativeHandle,x, y);
485 Eina.Error.RaiseIfUnhandledException();
487 /// <summary>Hints for an object's alignment.
488 /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range.
490 /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom.
492 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
494 /// Note: Default alignment hint values are 0.5, for both axes.
495 /// (Since EFL 1.22)</summary>
496 /// <param name="x">Double, ranging from 0.0 to 1.0.</param>
497 /// <param name="y">Double, ranging from 0.0 to 1.0.</param>
498 public void GetHintAlign(out double x, out double y) {
499 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_get_ptr.Value.Delegate(this.NativeHandle,out x, out y);
500 Eina.Error.RaiseIfUnhandledException();
502 /// <summary>Hints for an object's alignment.
503 /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range.
505 /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom.
507 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
509 /// Note: Default alignment hint values are 0.5, for both axes.
510 /// (Since EFL 1.22)</summary>
511 /// <param name="x">Double, ranging from 0.0 to 1.0.</param>
512 /// <param name="y">Double, ranging from 0.0 to 1.0.</param>
513 public void SetHintAlign(double x, double y) {
514 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_set_ptr.Value.Delegate(this.NativeHandle,x, y);
515 Eina.Error.RaiseIfUnhandledException();
517 /// <summary>Hints for an object's fill property that used to specify "justify" or "fill" by some users. <see cref="Efl.Gfx.IHint.GetHintFill"/> specify whether to fill the space inside the boundaries of a container/manager.
518 /// Maximum hints should be enforced with higher priority, if they are set. Also, any <see cref="Efl.Gfx.IHint.GetHintMargin"/> set on objects should add up to the object space on the final scene composition.
520 /// See documentation of possible users: in Evas, they are the <see cref="Efl.Ui.Box"/> "box" and <see cref="Efl.Ui.Table"/> "table" smart objects.
522 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
524 /// Note: Default fill hint values are true, for both axes.
525 /// (Since EFL 1.22)</summary>
526 /// <param name="x"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as horizontal fill hint.</param>
527 /// <param name="y"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as vertical fill hint.</param>
528 public void GetHintFill(out bool x, out bool y) {
529 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_get_ptr.Value.Delegate(this.NativeHandle,out x, out y);
530 Eina.Error.RaiseIfUnhandledException();
532 /// <summary>Hints for an object's fill property that used to specify "justify" or "fill" by some users. <see cref="Efl.Gfx.IHint.GetHintFill"/> specify whether to fill the space inside the boundaries of a container/manager.
533 /// Maximum hints should be enforced with higher priority, if they are set. Also, any <see cref="Efl.Gfx.IHint.GetHintMargin"/> set on objects should add up to the object space on the final scene composition.
535 /// See documentation of possible users: in Evas, they are the <see cref="Efl.Ui.Box"/> "box" and <see cref="Efl.Ui.Table"/> "table" smart objects.
537 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
539 /// Note: Default fill hint values are true, for both axes.
540 /// (Since EFL 1.22)</summary>
541 /// <param name="x"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as horizontal fill hint.</param>
542 /// <param name="y"><c>true</c> if to fill the object space, <c>false</c> otherwise, to use as vertical fill hint.</param>
543 public void SetHintFill(bool x, bool y) {
544 Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_set_ptr.Value.Delegate(this.NativeHandle,x, y);
545 Eina.Error.RaiseIfUnhandledException();
547 /// <summary>Hints on the object's maximum size.
548 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
550 /// The object container is in charge of fetching this property and placing the object accordingly.
552 /// Values -1 will be treated as unset hint components, when queried by managers.
554 /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects.
555 /// (Since EFL 1.22)</summary>
556 /// <value>Maximum size (hint) in pixels, (-1, -1) by default for canvas objects).</value>
557 public Eina.Size2D HintSizeMax {
558 get { return GetHintSizeMax(); }
559 set { SetHintSizeMax(value); }
561 /// <summary>Hints on the object's minimum size.
562 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly.
564 /// Value 0 will be treated as unset hint components, when queried by managers.
566 /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size).
567 /// (Since EFL 1.22)</summary>
568 /// <value>Minimum size (hint) in pixels.</value>
569 public Eina.Size2D HintSizeMin {
570 get { return GetHintSizeMin(); }
571 set { SetHintSizeMin(value); }
573 /// <summary>Internal hints for an object's minimum size.
574 /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.
576 /// Values 0 will be treated as unset hint components, when queried by managers.
578 /// Note: This property is internal and meant for widget developers to define the absolute minimum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Use <see cref="Efl.Gfx.IHint.HintSizeMin"/> instead.
579 /// (Since EFL 1.22)</summary>
580 /// <value>Minimum size (hint) in pixels.</value>
581 public Eina.Size2D HintSizeRestrictedMin {
582 get { return GetHintSizeRestrictedMin(); }
583 set { SetHintSizeRestrictedMin(value); }
585 /// <summary>Read-only minimum size combining both <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> and <see cref="Efl.Gfx.IHint.HintSizeMin"/> hints.
586 /// <see cref="Efl.Gfx.IHint.HintSizeRestrictedMin"/> is intended for mostly internal usage and widget developers, and <see cref="Efl.Gfx.IHint.HintSizeMin"/> is intended to be set from application side. <see cref="Efl.Gfx.IHint.GetHintSizeCombinedMin"/> combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size.
587 /// (Since EFL 1.22)</summary>
588 /// <value>Minimum size (hint) in pixels.</value>
589 public Eina.Size2D HintSizeCombinedMin {
590 get { return GetHintSizeCombinedMin(); }
592 private static IntPtr GetEflClassStatic()
594 return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get();
596 /// <summary>Wrapper for native methods and virtual method delegates.
597 /// For internal use by generated code only.</summary>
598 public class NativeMethods : Efl.Eo.NativeClass
600 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
601 /// <summary>Gets the list of Eo operations to override.</summary>
602 /// <returns>The list of Eo operations to be overload.</returns>
603 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
605 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
606 var methods = Efl.Eo.Globals.GetUserMethods(type);
608 if (efl_gfx_hint_aspect_get_static_delegate == null)
610 efl_gfx_hint_aspect_get_static_delegate = new efl_gfx_hint_aspect_get_delegate(hint_aspect_get);
613 if (methods.FirstOrDefault(m => m.Name == "GetHintAspect") != null)
615 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_get_static_delegate) });
618 if (efl_gfx_hint_aspect_set_static_delegate == null)
620 efl_gfx_hint_aspect_set_static_delegate = new efl_gfx_hint_aspect_set_delegate(hint_aspect_set);
623 if (methods.FirstOrDefault(m => m.Name == "SetHintAspect") != null)
625 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_set_static_delegate) });
628 if (efl_gfx_hint_size_max_get_static_delegate == null)
630 efl_gfx_hint_size_max_get_static_delegate = new efl_gfx_hint_size_max_get_delegate(hint_size_max_get);
633 if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMax") != null)
635 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_get_static_delegate) });
638 if (efl_gfx_hint_size_max_set_static_delegate == null)
640 efl_gfx_hint_size_max_set_static_delegate = new efl_gfx_hint_size_max_set_delegate(hint_size_max_set);
643 if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMax") != null)
645 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate) });
648 if (efl_gfx_hint_size_min_get_static_delegate == null)
650 efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get);
653 if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMin") != null)
655 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_get_static_delegate) });
658 if (efl_gfx_hint_size_min_set_static_delegate == null)
660 efl_gfx_hint_size_min_set_static_delegate = new efl_gfx_hint_size_min_set_delegate(hint_size_min_set);
663 if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMin") != null)
665 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_set_static_delegate) });
668 if (efl_gfx_hint_size_restricted_min_get_static_delegate == null)
670 efl_gfx_hint_size_restricted_min_get_static_delegate = new efl_gfx_hint_size_restricted_min_get_delegate(hint_size_restricted_min_get);
673 if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMin") != null)
675 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_get_static_delegate) });
678 if (efl_gfx_hint_size_restricted_min_set_static_delegate == null)
680 efl_gfx_hint_size_restricted_min_set_static_delegate = new efl_gfx_hint_size_restricted_min_set_delegate(hint_size_restricted_min_set);
683 if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMin") != null)
685 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_set_static_delegate) });
688 if (efl_gfx_hint_size_combined_min_get_static_delegate == null)
690 efl_gfx_hint_size_combined_min_get_static_delegate = new efl_gfx_hint_size_combined_min_get_delegate(hint_size_combined_min_get);
693 if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMin") != null)
695 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_combined_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_min_get_static_delegate) });
698 if (efl_gfx_hint_margin_get_static_delegate == null)
700 efl_gfx_hint_margin_get_static_delegate = new efl_gfx_hint_margin_get_delegate(hint_margin_get);
703 if (methods.FirstOrDefault(m => m.Name == "GetHintMargin") != null)
705 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_get_static_delegate) });
708 if (efl_gfx_hint_margin_set_static_delegate == null)
710 efl_gfx_hint_margin_set_static_delegate = new efl_gfx_hint_margin_set_delegate(hint_margin_set);
713 if (methods.FirstOrDefault(m => m.Name == "SetHintMargin") != null)
715 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_set_static_delegate) });
718 if (efl_gfx_hint_weight_get_static_delegate == null)
720 efl_gfx_hint_weight_get_static_delegate = new efl_gfx_hint_weight_get_delegate(hint_weight_get);
723 if (methods.FirstOrDefault(m => m.Name == "GetHintWeight") != null)
725 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_get_static_delegate) });
728 if (efl_gfx_hint_weight_set_static_delegate == null)
730 efl_gfx_hint_weight_set_static_delegate = new efl_gfx_hint_weight_set_delegate(hint_weight_set);
733 if (methods.FirstOrDefault(m => m.Name == "SetHintWeight") != null)
735 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_set_static_delegate) });
738 if (efl_gfx_hint_align_get_static_delegate == null)
740 efl_gfx_hint_align_get_static_delegate = new efl_gfx_hint_align_get_delegate(hint_align_get);
743 if (methods.FirstOrDefault(m => m.Name == "GetHintAlign") != null)
745 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_get_static_delegate) });
748 if (efl_gfx_hint_align_set_static_delegate == null)
750 efl_gfx_hint_align_set_static_delegate = new efl_gfx_hint_align_set_delegate(hint_align_set);
753 if (methods.FirstOrDefault(m => m.Name == "SetHintAlign") != null)
755 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_set_static_delegate) });
758 if (efl_gfx_hint_fill_get_static_delegate == null)
760 efl_gfx_hint_fill_get_static_delegate = new efl_gfx_hint_fill_get_delegate(hint_fill_get);
763 if (methods.FirstOrDefault(m => m.Name == "GetHintFill") != null)
765 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_get_static_delegate) });
768 if (efl_gfx_hint_fill_set_static_delegate == null)
770 efl_gfx_hint_fill_set_static_delegate = new efl_gfx_hint_fill_set_delegate(hint_fill_set);
773 if (methods.FirstOrDefault(m => m.Name == "SetHintFill") != null)
775 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_set_static_delegate) });
780 /// <summary>Returns the Eo class for the native methods of this class.</summary>
781 /// <returns>The native class pointer.</returns>
782 public override IntPtr GetEflClass()
784 return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get();
787 #pragma warning disable CA1707, CS1591, SA1300, SA1600
790 private delegate void efl_gfx_hint_aspect_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz);
793 public delegate void efl_gfx_hint_aspect_get_api_delegate(System.IntPtr obj, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz);
795 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_aspect_get_api_delegate> efl_gfx_hint_aspect_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_aspect_get_api_delegate>(Module, "efl_gfx_hint_aspect_get");
797 private static void hint_aspect_get(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz)
799 Eina.Log.Debug("function efl_gfx_hint_aspect_get was called");
800 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
803 mode = default(Efl.Gfx.HintAspect); Eina.Size2D _out_sz = default(Eina.Size2D);
807 ((IHint)ws.Target).GetHintAspect(out mode, out _out_sz);
811 Eina.Log.Warning($"Callback error: {e.ToString()}");
812 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
820 efl_gfx_hint_aspect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out mode, out sz);
824 private static efl_gfx_hint_aspect_get_delegate efl_gfx_hint_aspect_get_static_delegate;
827 private delegate void efl_gfx_hint_aspect_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz);
830 public delegate void efl_gfx_hint_aspect_set_api_delegate(System.IntPtr obj, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz);
832 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_aspect_set_api_delegate> efl_gfx_hint_aspect_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_aspect_set_api_delegate>(Module, "efl_gfx_hint_aspect_set");
834 private static void hint_aspect_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz)
836 Eina.Log.Debug("function efl_gfx_hint_aspect_set was called");
837 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
840 Eina.Size2D _in_sz = sz;
844 ((IHint)ws.Target).SetHintAspect(mode, _in_sz);
848 Eina.Log.Warning($"Callback error: {e.ToString()}");
849 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
856 efl_gfx_hint_aspect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, sz);
860 private static efl_gfx_hint_aspect_set_delegate efl_gfx_hint_aspect_set_static_delegate;
863 private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
866 public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_api_delegate(System.IntPtr obj);
868 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_max_get_api_delegate> efl_gfx_hint_size_max_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_max_get_api_delegate>(Module, "efl_gfx_hint_size_max_get");
870 private static Eina.Size2D.NativeStruct hint_size_max_get(System.IntPtr obj, System.IntPtr pd)
872 Eina.Log.Debug("function efl_gfx_hint_size_max_get was called");
873 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
876 Eina.Size2D _ret_var = default(Eina.Size2D);
879 _ret_var = ((IHint)ws.Target).GetHintSizeMax();
883 Eina.Log.Warning($"Callback error: {e.ToString()}");
884 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
892 return efl_gfx_hint_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
896 private static efl_gfx_hint_size_max_get_delegate efl_gfx_hint_size_max_get_static_delegate;
899 private delegate void efl_gfx_hint_size_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz);
902 public delegate void efl_gfx_hint_size_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz);
904 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_max_set_api_delegate> efl_gfx_hint_size_max_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_max_set_api_delegate>(Module, "efl_gfx_hint_size_max_set");
906 private static void hint_size_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz)
908 Eina.Log.Debug("function efl_gfx_hint_size_max_set was called");
909 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
912 Eina.Size2D _in_sz = sz;
916 ((IHint)ws.Target).SetHintSizeMax(_in_sz);
920 Eina.Log.Warning($"Callback error: {e.ToString()}");
921 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
928 efl_gfx_hint_size_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz);
932 private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate;
935 private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
938 public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_api_delegate(System.IntPtr obj);
940 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_min_get_api_delegate> efl_gfx_hint_size_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_min_get_api_delegate>(Module, "efl_gfx_hint_size_min_get");
942 private static Eina.Size2D.NativeStruct hint_size_min_get(System.IntPtr obj, System.IntPtr pd)
944 Eina.Log.Debug("function efl_gfx_hint_size_min_get was called");
945 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
948 Eina.Size2D _ret_var = default(Eina.Size2D);
951 _ret_var = ((IHint)ws.Target).GetHintSizeMin();
955 Eina.Log.Warning($"Callback error: {e.ToString()}");
956 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
964 return efl_gfx_hint_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
968 private static efl_gfx_hint_size_min_get_delegate efl_gfx_hint_size_min_get_static_delegate;
971 private delegate void efl_gfx_hint_size_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz);
974 public delegate void efl_gfx_hint_size_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz);
976 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_min_set_api_delegate> efl_gfx_hint_size_min_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_min_set_api_delegate>(Module, "efl_gfx_hint_size_min_set");
978 private static void hint_size_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz)
980 Eina.Log.Debug("function efl_gfx_hint_size_min_set was called");
981 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
984 Eina.Size2D _in_sz = sz;
988 ((IHint)ws.Target).SetHintSizeMin(_in_sz);
992 Eina.Log.Warning($"Callback error: {e.ToString()}");
993 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1000 efl_gfx_hint_size_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz);
1004 private static efl_gfx_hint_size_min_set_delegate efl_gfx_hint_size_min_set_static_delegate;
1007 private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
1010 public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_api_delegate(System.IntPtr obj);
1012 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_restricted_min_get_api_delegate> efl_gfx_hint_size_restricted_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_restricted_min_get_api_delegate>(Module, "efl_gfx_hint_size_restricted_min_get");
1014 private static Eina.Size2D.NativeStruct hint_size_restricted_min_get(System.IntPtr obj, System.IntPtr pd)
1016 Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_get was called");
1017 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1020 Eina.Size2D _ret_var = default(Eina.Size2D);
1023 _ret_var = ((IHint)ws.Target).GetHintSizeRestrictedMin();
1027 Eina.Log.Warning($"Callback error: {e.ToString()}");
1028 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1036 return efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1040 private static efl_gfx_hint_size_restricted_min_get_delegate efl_gfx_hint_size_restricted_min_get_static_delegate;
1043 private delegate void efl_gfx_hint_size_restricted_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz);
1046 public delegate void efl_gfx_hint_size_restricted_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz);
1048 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_restricted_min_set_api_delegate> efl_gfx_hint_size_restricted_min_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_restricted_min_set_api_delegate>(Module, "efl_gfx_hint_size_restricted_min_set");
1050 private static void hint_size_restricted_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz)
1052 Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_set was called");
1053 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1056 Eina.Size2D _in_sz = sz;
1060 ((IHint)ws.Target).SetHintSizeRestrictedMin(_in_sz);
1064 Eina.Log.Warning($"Callback error: {e.ToString()}");
1065 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1072 efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz);
1076 private static efl_gfx_hint_size_restricted_min_set_delegate efl_gfx_hint_size_restricted_min_set_static_delegate;
1079 private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
1082 public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_api_delegate(System.IntPtr obj);
1084 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_size_combined_min_get_api_delegate> efl_gfx_hint_size_combined_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_size_combined_min_get_api_delegate>(Module, "efl_gfx_hint_size_combined_min_get");
1086 private static Eina.Size2D.NativeStruct hint_size_combined_min_get(System.IntPtr obj, System.IntPtr pd)
1088 Eina.Log.Debug("function efl_gfx_hint_size_combined_min_get was called");
1089 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1092 Eina.Size2D _ret_var = default(Eina.Size2D);
1095 _ret_var = ((IHint)ws.Target).GetHintSizeCombinedMin();
1099 Eina.Log.Warning($"Callback error: {e.ToString()}");
1100 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1108 return efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1112 private static efl_gfx_hint_size_combined_min_get_delegate efl_gfx_hint_size_combined_min_get_static_delegate;
1115 private delegate void efl_gfx_hint_margin_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b);
1118 public delegate void efl_gfx_hint_margin_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b);
1120 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_margin_get_api_delegate> efl_gfx_hint_margin_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_margin_get_api_delegate>(Module, "efl_gfx_hint_margin_get");
1122 private static void hint_margin_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b)
1124 Eina.Log.Debug("function efl_gfx_hint_margin_get was called");
1125 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1128 l = default(int); r = default(int); t = default(int); b = default(int);
1131 ((IHint)ws.Target).GetHintMargin(out l, out r, out t, out b);
1135 Eina.Log.Warning($"Callback error: {e.ToString()}");
1136 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1143 efl_gfx_hint_margin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b);
1147 private static efl_gfx_hint_margin_get_delegate efl_gfx_hint_margin_get_static_delegate;
1150 private delegate void efl_gfx_hint_margin_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b);
1153 public delegate void efl_gfx_hint_margin_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b);
1155 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_margin_set_api_delegate> efl_gfx_hint_margin_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_margin_set_api_delegate>(Module, "efl_gfx_hint_margin_set");
1157 private static void hint_margin_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b)
1159 Eina.Log.Debug("function efl_gfx_hint_margin_set was called");
1160 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1166 ((IHint)ws.Target).SetHintMargin(l, r, t, b);
1170 Eina.Log.Warning($"Callback error: {e.ToString()}");
1171 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1178 efl_gfx_hint_margin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b);
1182 private static efl_gfx_hint_margin_set_delegate efl_gfx_hint_margin_set_static_delegate;
1185 private delegate void efl_gfx_hint_weight_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
1188 public delegate void efl_gfx_hint_weight_get_api_delegate(System.IntPtr obj, out double x, out double y);
1190 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_weight_get_api_delegate> efl_gfx_hint_weight_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_weight_get_api_delegate>(Module, "efl_gfx_hint_weight_get");
1192 private static void hint_weight_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y)
1194 Eina.Log.Debug("function efl_gfx_hint_weight_get was called");
1195 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1198 x = default(double); y = default(double);
1201 ((IHint)ws.Target).GetHintWeight(out x, out y);
1205 Eina.Log.Warning($"Callback error: {e.ToString()}");
1206 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1213 efl_gfx_hint_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
1217 private static efl_gfx_hint_weight_get_delegate efl_gfx_hint_weight_get_static_delegate;
1220 private delegate void efl_gfx_hint_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
1223 public delegate void efl_gfx_hint_weight_set_api_delegate(System.IntPtr obj, double x, double y);
1225 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_weight_set_api_delegate> efl_gfx_hint_weight_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_weight_set_api_delegate>(Module, "efl_gfx_hint_weight_set");
1227 private static void hint_weight_set(System.IntPtr obj, System.IntPtr pd, double x, double y)
1229 Eina.Log.Debug("function efl_gfx_hint_weight_set was called");
1230 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1236 ((IHint)ws.Target).SetHintWeight(x, y);
1240 Eina.Log.Warning($"Callback error: {e.ToString()}");
1241 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1248 efl_gfx_hint_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
1252 private static efl_gfx_hint_weight_set_delegate efl_gfx_hint_weight_set_static_delegate;
1255 private delegate void efl_gfx_hint_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
1258 public delegate void efl_gfx_hint_align_get_api_delegate(System.IntPtr obj, out double x, out double y);
1260 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_align_get_api_delegate> efl_gfx_hint_align_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_align_get_api_delegate>(Module, "efl_gfx_hint_align_get");
1262 private static void hint_align_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y)
1264 Eina.Log.Debug("function efl_gfx_hint_align_get was called");
1265 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1268 x = default(double); y = default(double);
1271 ((IHint)ws.Target).GetHintAlign(out x, out y);
1275 Eina.Log.Warning($"Callback error: {e.ToString()}");
1276 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1283 efl_gfx_hint_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
1287 private static efl_gfx_hint_align_get_delegate efl_gfx_hint_align_get_static_delegate;
1290 private delegate void efl_gfx_hint_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
1293 public delegate void efl_gfx_hint_align_set_api_delegate(System.IntPtr obj, double x, double y);
1295 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_align_set_api_delegate> efl_gfx_hint_align_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_align_set_api_delegate>(Module, "efl_gfx_hint_align_set");
1297 private static void hint_align_set(System.IntPtr obj, System.IntPtr pd, double x, double y)
1299 Eina.Log.Debug("function efl_gfx_hint_align_set was called");
1300 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1306 ((IHint)ws.Target).SetHintAlign(x, y);
1310 Eina.Log.Warning($"Callback error: {e.ToString()}");
1311 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1318 efl_gfx_hint_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
1322 private static efl_gfx_hint_align_set_delegate efl_gfx_hint_align_set_static_delegate;
1325 private delegate void efl_gfx_hint_fill_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y);
1328 public delegate void efl_gfx_hint_fill_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y);
1330 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_fill_get_api_delegate> efl_gfx_hint_fill_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_fill_get_api_delegate>(Module, "efl_gfx_hint_fill_get");
1332 private static void hint_fill_get(System.IntPtr obj, System.IntPtr pd, out bool x, out bool y)
1334 Eina.Log.Debug("function efl_gfx_hint_fill_get was called");
1335 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1338 x = default(bool); y = default(bool);
1341 ((IHint)ws.Target).GetHintFill(out x, out y);
1345 Eina.Log.Warning($"Callback error: {e.ToString()}");
1346 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1353 efl_gfx_hint_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
1357 private static efl_gfx_hint_fill_get_delegate efl_gfx_hint_fill_get_static_delegate;
1360 private delegate void efl_gfx_hint_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y);
1363 public delegate void efl_gfx_hint_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y);
1365 public static Efl.Eo.FunctionWrapper<efl_gfx_hint_fill_set_api_delegate> efl_gfx_hint_fill_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_hint_fill_set_api_delegate>(Module, "efl_gfx_hint_fill_set");
1367 private static void hint_fill_set(System.IntPtr obj, System.IntPtr pd, bool x, bool y)
1369 Eina.Log.Debug("function efl_gfx_hint_fill_set was called");
1370 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1376 ((IHint)ws.Target).SetHintFill(x, y);
1380 Eina.Log.Warning($"Callback error: {e.ToString()}");
1381 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1388 efl_gfx_hint_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
1392 private static efl_gfx_hint_fill_set_delegate efl_gfx_hint_fill_set_static_delegate;
1394 #pragma warning restore CA1707, CS1591, SA1300, SA1600