[EflSharp] Update Circle and efl cs files (#896)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_gfx_view.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Gfx {
11
12 /// <summary>Efl graphics view interface</summary>
13 [Efl.Gfx.IViewConcrete.NativeMethods]
14 public interface IView : 
15     Efl.Eo.IWrapper, IDisposable
16 {
17     /// <summary>The dimensions of this object&apos;s viewport.
18 /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
19 /// 
20 /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
21 /// 
22 /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
23 /// 
24 /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
25 /// 
26 /// Refer to each implementing class specific documentation for more details.</summary>
27 /// <returns>Size of the view.</returns>
28 Eina.Size2D GetViewSize();
29     /// <summary>The dimensions of this object&apos;s viewport.
30 /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
31 /// 
32 /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
33 /// 
34 /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
35 /// 
36 /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
37 /// 
38 /// Refer to each implementing class specific documentation for more details.</summary>
39 /// <param name="size">Size of the view.</param>
40 void SetViewSize(Eina.Size2D size);
41             /// <summary>The dimensions of this object&apos;s viewport.
42     /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
43     /// 
44     /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
45     /// 
46     /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
47     /// 
48     /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
49     /// 
50     /// Refer to each implementing class specific documentation for more details.</summary>
51     /// <value>Size of the view.</value>
52     Eina.Size2D ViewSize {
53         get ;
54         set ;
55     }
56 }
57 /// <summary>Efl graphics view interface</summary>
58 sealed public class IViewConcrete :
59     Efl.Eo.EoWrapper
60     , IView
61     
62 {
63     ///<summary>Pointer to the native class description.</summary>
64     public override System.IntPtr NativeClass
65     {
66         get
67         {
68             if (((object)this).GetType() == typeof(IViewConcrete))
69             {
70                 return GetEflClassStatic();
71             }
72             else
73             {
74                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
75             }
76         }
77     }
78
79     [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
80         efl_gfx_view_interface_get();
81     /// <summary>Initializes a new instance of the <see cref="IView"/> class.
82     /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
83     private IViewConcrete(System.IntPtr raw) : base(raw)
84     {
85     }
86
87     /// <summary>The dimensions of this object&apos;s viewport.
88     /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
89     /// 
90     /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
91     /// 
92     /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
93     /// 
94     /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
95     /// 
96     /// Refer to each implementing class specific documentation for more details.</summary>
97     /// <returns>Size of the view.</returns>
98     public Eina.Size2D GetViewSize() {
99          var _ret_var = Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_get_ptr.Value.Delegate(this.NativeHandle);
100         Eina.Error.RaiseIfUnhandledException();
101         return _ret_var;
102  }
103     /// <summary>The dimensions of this object&apos;s viewport.
104     /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
105     /// 
106     /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
107     /// 
108     /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
109     /// 
110     /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
111     /// 
112     /// Refer to each implementing class specific documentation for more details.</summary>
113     /// <param name="size">Size of the view.</param>
114     public void SetViewSize(Eina.Size2D size) {
115          Eina.Size2D.NativeStruct _in_size = size;
116                         Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size);
117         Eina.Error.RaiseIfUnhandledException();
118                          }
119     /// <summary>The dimensions of this object&apos;s viewport.
120     /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window.
121     /// 
122     /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view.
123     /// 
124     /// In most cases the view should have the same dimensions as the object on the canvas, for best quality.
125     /// 
126     /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data.
127     /// 
128     /// Refer to each implementing class specific documentation for more details.</summary>
129     /// <value>Size of the view.</value>
130     public Eina.Size2D ViewSize {
131         get { return GetViewSize(); }
132         set { SetViewSize(value); }
133     }
134     private static IntPtr GetEflClassStatic()
135     {
136         return Efl.Gfx.IViewConcrete.efl_gfx_view_interface_get();
137     }
138     /// <summary>Wrapper for native methods and virtual method delegates.
139     /// For internal use by generated code only.</summary>
140     public class NativeMethods  : Efl.Eo.NativeClass
141     {
142         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Efl);
143         /// <summary>Gets the list of Eo operations to override.</summary>
144         /// <returns>The list of Eo operations to be overload.</returns>
145         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
146         {
147             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
148             var methods = Efl.Eo.Globals.GetUserMethods(type);
149
150             if (efl_gfx_view_size_get_static_delegate == null)
151             {
152                 efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get);
153             }
154
155             if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null)
156             {
157                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate) });
158             }
159
160             if (efl_gfx_view_size_set_static_delegate == null)
161             {
162                 efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set);
163             }
164
165             if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null)
166             {
167                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate) });
168             }
169
170             return descs;
171         }
172         /// <summary>Returns the Eo class for the native methods of this class.</summary>
173         /// <returns>The native class pointer.</returns>
174         public override IntPtr GetEflClass()
175         {
176             return Efl.Gfx.IViewConcrete.efl_gfx_view_interface_get();
177         }
178
179         #pragma warning disable CA1707, CS1591, SA1300, SA1600
180
181         
182         private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
183
184         
185         public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj);
186
187         public static Efl.Eo.FunctionWrapper<efl_gfx_view_size_get_api_delegate> efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_view_size_get_api_delegate>(Module, "efl_gfx_view_size_get");
188
189         private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd)
190         {
191             Eina.Log.Debug("function efl_gfx_view_size_get was called");
192             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
193             if (ws != null)
194             {
195             Eina.Size2D _ret_var = default(Eina.Size2D);
196                 try
197                 {
198                     _ret_var = ((IView)ws.Target).GetViewSize();
199                 }
200                 catch (Exception e)
201                 {
202                     Eina.Log.Warning($"Callback error: {e.ToString()}");
203                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
204                 }
205
206         return _ret_var;
207
208             }
209             else
210             {
211                 return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
212             }
213         }
214
215         private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate;
216
217         
218         private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd,  Eina.Size2D.NativeStruct size);
219
220         
221         public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj,  Eina.Size2D.NativeStruct size);
222
223         public static Efl.Eo.FunctionWrapper<efl_gfx_view_size_set_api_delegate> efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_view_size_set_api_delegate>(Module, "efl_gfx_view_size_set");
224
225         private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size)
226         {
227             Eina.Log.Debug("function efl_gfx_view_size_set was called");
228             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
229             if (ws != null)
230             {
231         Eina.Size2D _in_size = size;
232                             
233                 try
234                 {
235                     ((IView)ws.Target).SetViewSize(_in_size);
236                 }
237                 catch (Exception e)
238                 {
239                     Eina.Log.Warning($"Callback error: {e.ToString()}");
240                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
241                 }
242
243                         
244             }
245             else
246             {
247                 efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size);
248             }
249         }
250
251         private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate;
252
253         #pragma warning restore CA1707, CS1591, SA1300, SA1600
254
255 }
256 }
257 }
258
259 }
260