1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
14 /// <summary>This defines the inheriting widget as Composition widget.
15 /// A composition widget is a widget that's the logical parent of another set of widgets which can be used for interaction.</summary>
16 [Efl.Ui.Focus.ICompositionConcrete.NativeMethods]
17 public interface IComposition :
18 Efl.Eo.IWrapper, IDisposable
20 /// <summary>Set the order of elements that will be used for composition
21 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
23 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
25 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
27 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
28 /// <returns>The order to use</returns>
29 Eina.List<Efl.Gfx.IEntity> GetCompositionElements();
30 /// <summary>Set the order of elements that will be used for composition
31 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
33 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
35 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
37 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
38 /// <param name="logical_order">The order to use</param>
39 void SetCompositionElements(Eina.List<Efl.Gfx.IEntity> logical_order);
40 /// <summary>Set to true if all children should be registered as logicals</summary>
41 /// <returns><c>true</c> or <c>false</c></returns>
42 bool GetLogicalMode();
43 /// <summary>Set to true if all children should be registered as logicals</summary>
44 /// <param name="logical_mode"><c>true</c> or <c>false</c></param>
45 void SetLogicalMode(bool logical_mode);
46 /// <summary>Mark this widget as dirty, the children can be considered to be changed after that call</summary>
48 /// <summary>A call to prepare the children of this element, called if marked as dirty
49 /// You can use this function to call composition_elements.</summary>
51 /// <summary>Set the order of elements that will be used for composition
52 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
54 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
56 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
58 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
59 /// <value>The order to use</value>
60 Eina.List<Efl.Gfx.IEntity> CompositionElements {
64 /// <summary>Set to true if all children should be registered as logicals</summary>
65 /// <value><c>true</c> or <c>false</c></value>
71 /// <summary>This defines the inheriting widget as Composition widget.
72 /// A composition widget is a widget that's the logical parent of another set of widgets which can be used for interaction.</summary>
73 sealed public class ICompositionConcrete :
78 ///<summary>Pointer to the native class description.</summary>
79 public override System.IntPtr NativeClass
83 if (((object)this).GetType() == typeof(ICompositionConcrete))
85 return GetEflClassStatic();
89 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
94 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
95 efl_ui_focus_composition_mixin_get();
96 /// <summary>Initializes a new instance of the <see cref="IComposition"/> class.
97 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
98 private ICompositionConcrete(System.IntPtr raw) : base(raw)
102 /// <summary>Set the order of elements that will be used for composition
103 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
105 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
107 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
109 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
110 /// <returns>The order to use</returns>
111 public Eina.List<Efl.Gfx.IEntity> GetCompositionElements() {
112 var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_get_ptr.Value.Delegate(this.NativeHandle);
113 Eina.Error.RaiseIfUnhandledException();
114 return new Eina.List<Efl.Gfx.IEntity>(_ret_var, true, false);
116 /// <summary>Set the order of elements that will be used for composition
117 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
119 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
121 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
123 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
124 /// <param name="logical_order">The order to use</param>
125 public void SetCompositionElements(Eina.List<Efl.Gfx.IEntity> logical_order) {
126 var _in_logical_order = logical_order.Handle;
127 logical_order.Own = false;
128 Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_set_ptr.Value.Delegate(this.NativeHandle,_in_logical_order);
129 Eina.Error.RaiseIfUnhandledException();
131 /// <summary>Set to true if all children should be registered as logicals</summary>
132 /// <returns><c>true</c> or <c>false</c></returns>
133 public bool GetLogicalMode() {
134 var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(this.NativeHandle);
135 Eina.Error.RaiseIfUnhandledException();
138 /// <summary>Set to true if all children should be registered as logicals</summary>
139 /// <param name="logical_mode"><c>true</c> or <c>false</c></param>
140 public void SetLogicalMode(bool logical_mode) {
141 Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(this.NativeHandle,logical_mode);
142 Eina.Error.RaiseIfUnhandledException();
144 /// <summary>Mark this widget as dirty, the children can be considered to be changed after that call</summary>
145 public void Dirty() {
146 Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_dirty_ptr.Value.Delegate(this.NativeHandle);
147 Eina.Error.RaiseIfUnhandledException();
149 /// <summary>A call to prepare the children of this element, called if marked as dirty
150 /// You can use this function to call composition_elements.</summary>
151 public void Prepare() {
152 Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_prepare_ptr.Value.Delegate(this.NativeHandle);
153 Eina.Error.RaiseIfUnhandledException();
155 /// <summary>Set the order of elements that will be used for composition
156 /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
158 /// If the element is an Efl.Gfx.Entity, then the geometry is used as focus geometry, the focus property is redirected to the evas focus property. The mixin will take care of registration.
160 /// If the element is an Efl.Ui.Focus.Object, then the mixin will take care of registering the element.
162 /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order.</summary>
163 /// <value>The order to use</value>
164 public Eina.List<Efl.Gfx.IEntity> CompositionElements {
165 get { return GetCompositionElements(); }
166 set { SetCompositionElements(value); }
168 /// <summary>Set to true if all children should be registered as logicals</summary>
169 /// <value><c>true</c> or <c>false</c></value>
170 public bool LogicalMode {
171 get { return GetLogicalMode(); }
172 set { SetLogicalMode(value); }
174 private static IntPtr GetEflClassStatic()
176 return Efl.Ui.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get();
178 /// <summary>Wrapper for native methods and virtual method delegates.
179 /// For internal use by generated code only.</summary>
180 public class NativeMethods : Efl.Eo.NativeClass
182 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
183 /// <summary>Gets the list of Eo operations to override.</summary>
184 /// <returns>The list of Eo operations to be overload.</returns>
185 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
187 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
188 var methods = Efl.Eo.Globals.GetUserMethods(type);
190 if (efl_ui_focus_composition_elements_get_static_delegate == null)
192 efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get);
195 if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null)
197 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate) });
200 if (efl_ui_focus_composition_elements_set_static_delegate == null)
202 efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set);
205 if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null)
207 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate) });
210 if (efl_ui_focus_composition_logical_mode_get_static_delegate == null)
212 efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get);
215 if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null)
217 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate) });
220 if (efl_ui_focus_composition_logical_mode_set_static_delegate == null)
222 efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set);
225 if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null)
227 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate) });
230 if (efl_ui_focus_composition_dirty_static_delegate == null)
232 efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty);
235 if (methods.FirstOrDefault(m => m.Name == "Dirty") != null)
237 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate) });
240 if (efl_ui_focus_composition_prepare_static_delegate == null)
242 efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare);
245 if (methods.FirstOrDefault(m => m.Name == "Prepare") != null)
247 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate) });
252 /// <summary>Returns the Eo class for the native methods of this class.</summary>
253 /// <returns>The native class pointer.</returns>
254 public override IntPtr GetEflClass()
256 return Efl.Ui.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get();
259 #pragma warning disable CA1707, CS1591, SA1300, SA1600
262 private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
265 public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj);
267 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_get_api_delegate> efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_get_api_delegate>(Module, "efl_ui_focus_composition_elements_get");
269 private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd)
271 Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called");
272 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
275 Eina.List<Efl.Gfx.IEntity> _ret_var = default(Eina.List<Efl.Gfx.IEntity>);
278 _ret_var = ((ICompositionConcrete)ws.Target).GetCompositionElements();
282 Eina.Log.Warning($"Callback error: {e.ToString()}");
283 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
286 _ret_var.Own = false; return _ret_var.Handle;
291 return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
295 private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate;
298 private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order);
301 public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order);
303 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_set_api_delegate> efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_elements_set_api_delegate>(Module, "efl_ui_focus_composition_elements_set");
305 private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order)
307 Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called");
308 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
311 var _in_logical_order = new Eina.List<Efl.Gfx.IEntity>(logical_order, true, false);
315 ((ICompositionConcrete)ws.Target).SetCompositionElements(_in_logical_order);
319 Eina.Log.Warning($"Callback error: {e.ToString()}");
320 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
327 efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order);
331 private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate;
333 [return: MarshalAs(UnmanagedType.U1)]
334 private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
336 [return: MarshalAs(UnmanagedType.U1)]
337 public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj);
339 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_get_api_delegate> efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_get_api_delegate>(Module, "efl_ui_focus_composition_logical_mode_get");
341 private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd)
343 Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called");
344 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
347 bool _ret_var = default(bool);
350 _ret_var = ((ICompositionConcrete)ws.Target).GetLogicalMode();
354 Eina.Log.Warning($"Callback error: {e.ToString()}");
355 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
363 return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
367 private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate;
370 private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode);
373 public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode);
375 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_set_api_delegate> efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_logical_mode_set_api_delegate>(Module, "efl_ui_focus_composition_logical_mode_set");
377 private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode)
379 Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called");
380 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
386 ((ICompositionConcrete)ws.Target).SetLogicalMode(logical_mode);
390 Eina.Log.Warning($"Callback error: {e.ToString()}");
391 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
398 efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode);
402 private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate;
405 private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd);
408 public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj);
410 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_dirty_api_delegate> efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_dirty_api_delegate>(Module, "efl_ui_focus_composition_dirty");
412 private static void dirty(System.IntPtr obj, System.IntPtr pd)
414 Eina.Log.Debug("function efl_ui_focus_composition_dirty was called");
415 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
421 ((ICompositionConcrete)ws.Target).Dirty();
425 Eina.Log.Warning($"Callback error: {e.ToString()}");
426 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
433 efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
437 private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate;
440 private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd);
443 public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj);
445 public static Efl.Eo.FunctionWrapper<efl_ui_focus_composition_prepare_api_delegate> efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_composition_prepare_api_delegate>(Module, "efl_ui_focus_composition_prepare");
447 private static void prepare(System.IntPtr obj, System.IntPtr pd)
449 Eina.Log.Debug("function efl_ui_focus_composition_prepare was called");
450 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
456 ((ICompositionConcrete)ws.Target).Prepare();
460 Eina.Log.Warning($"Callback error: {e.ToString()}");
461 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
468 efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
472 private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate;
474 #pragma warning restore CA1707, CS1591, SA1300, SA1600