[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_layout_orientable_readonly.eo.cs
1 #define EFL_BETA
2 #pragma warning disable CS1591
3 using System;
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Threading;
8 using System.ComponentModel;
9 namespace Efl {
10
11 namespace Ui {
12
13 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
14 [Efl.Ui.ILayoutOrientableReadonlyConcrete.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public interface ILayoutOrientableReadonly : 
17     Efl.Ui.ILayoutOrientable ,
18     Efl.Eo.IWrapper, IDisposable
19 {
20 }
21 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
22 sealed public  class ILayoutOrientableReadonlyConcrete :
23     Efl.Eo.EoWrapper
24     , ILayoutOrientableReadonly
25     , Efl.Ui.ILayoutOrientable
26 {
27     /// <summary>Pointer to the native class description.</summary>
28     public override System.IntPtr NativeClass
29     {
30         get
31         {
32             if (((object)this).GetType() == typeof(ILayoutOrientableReadonlyConcrete))
33             {
34                 return GetEflClassStatic();
35             }
36             else
37             {
38                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
39             }
40         }
41     }
42
43     /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
44     /// Do not call this constructor directly.</summary>
45     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46     private ILayoutOrientableReadonlyConcrete(ConstructingHandle ch) : base(ch)
47     {
48     }
49
50     [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
51         efl_ui_layout_orientable_readonly_mixin_get();
52     /// <summary>Initializes a new instance of the <see cref="ILayoutOrientableReadonly"/> class.
53     /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
54     /// <param name="wh">The native pointer to be wrapped.</param>
55     private ILayoutOrientableReadonlyConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
56     {
57     }
58
59     /// <summary>Control the direction of a given widget.
60     /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
61     /// 
62     /// 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>
63     /// <returns>Direction of the widget.</returns>
64     public Efl.Ui.LayoutOrientation GetOrientation() {
65          var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate(this.NativeHandle);
66         Eina.Error.RaiseIfUnhandledException();
67         return _ret_var;
68  }
69     /// <summary>Control the direction of a given widget.
70     /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
71     /// 
72     /// 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>
73     /// <param name="dir">Direction of the widget.</param>
74     public void SetOrientation(Efl.Ui.LayoutOrientation dir) {
75                                  Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate(this.NativeHandle,dir);
76         Eina.Error.RaiseIfUnhandledException();
77                          }
78     /// <summary>Control the direction of a given widget.
79     /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
80     /// 
81     /// 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>
82     /// <value>Direction of the widget.</value>
83     public Efl.Ui.LayoutOrientation Orientation {
84         get { return GetOrientation(); }
85         set { SetOrientation(value); }
86     }
87     private static IntPtr GetEflClassStatic()
88     {
89         return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get();
90     }
91     /// <summary>Wrapper for native methods and virtual method delegates.
92     /// For internal use by generated code only.</summary>
93     public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
94     {
95         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Efl);
96         /// <summary>Gets the list of Eo operations to override.</summary>
97         /// <returns>The list of Eo operations to be overload.</returns>
98         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
99         {
100             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
101             var methods = Efl.Eo.Globals.GetUserMethods(type);
102
103             if (efl_ui_layout_orientation_get_static_delegate == null)
104             {
105                 efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get);
106             }
107
108             if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null)
109             {
110                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) });
111             }
112
113             if (efl_ui_layout_orientation_set_static_delegate == null)
114             {
115                 efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set);
116             }
117
118             if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null)
119             {
120                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) });
121             }
122
123             return descs;
124         }
125         /// <summary>Returns the Eo class for the native methods of this class.</summary>
126         /// <returns>The native class pointer.</returns>
127         public override IntPtr GetEflClass()
128         {
129             return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get();
130         }
131
132         #pragma warning disable CA1707, CS1591, SA1300, SA1600
133
134         
135         private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
136
137         
138         public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj);
139
140         public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate> efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate>(Module, "efl_ui_layout_orientation_get");
141
142         private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd)
143         {
144             Eina.Log.Debug("function efl_ui_layout_orientation_get was called");
145             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
146             if (ws != null)
147             {
148             Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation);
149                 try
150                 {
151                     _ret_var = ((ILayoutOrientableReadonly)ws.Target).GetOrientation();
152                 }
153                 catch (Exception e)
154                 {
155                     Eina.Log.Warning($"Callback error: {e.ToString()}");
156                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
157                 }
158
159         return _ret_var;
160
161             }
162             else
163             {
164                 return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
165             }
166         }
167
168         private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate;
169
170         
171         private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd,  Efl.Ui.LayoutOrientation dir);
172
173         
174         public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj,  Efl.Ui.LayoutOrientation dir);
175
176         public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate> efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate>(Module, "efl_ui_layout_orientation_set");
177
178         private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir)
179         {
180             Eina.Log.Debug("function efl_ui_layout_orientation_set was called");
181             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
182             if (ws != null)
183             {
184                                     
185                 try
186                 {
187                     ((ILayoutOrientableReadonly)ws.Target).SetOrientation(dir);
188                 }
189                 catch (Exception e)
190                 {
191                     Eina.Log.Warning($"Callback error: {e.ToString()}");
192                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
193                 }
194
195                         
196             }
197             else
198             {
199                 efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
200             }
201         }
202
203         private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate;
204
205         #pragma warning restore CA1707, CS1591, SA1300, SA1600
206
207 }
208 }
209 }
210
211 }
212
213 #if EFL_BETA
214 #pragma warning disable CS1591
215 public static class Efl_UiILayoutOrientableReadonlyConcrete_ExtensionMethods {
216     public static Efl.BindableProperty<Efl.Ui.LayoutOrientation> Orientation<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.ILayoutOrientableReadonly, T>magic = null) where T : Efl.Ui.ILayoutOrientableReadonly {
217         return new Efl.BindableProperty<Efl.Ui.LayoutOrientation>("orientation", fac);
218     }
219
220 }
221 #pragma warning restore CS1591
222 #endif