[EflSharp] Separate efl and Circle cs files and Update cs files (#786)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_snapshot.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.ComponentModel;
7 namespace Efl { namespace Canvas { 
8 /// <summary>Low-level snapshot image object.
9 /// A snapshot is a special kind of image containing the pixels from all the objects below it. This allows applications to save screenshots of all or part of their UI, or apply filters to parts of the UI.</summary>
10 [SnapshotNativeInherit]
11 public class Snapshot : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper
12 {
13     ///<summary>Pointer to the native class description.</summary>
14     public override System.IntPtr NativeClass {
15         get {
16             if (((object)this).GetType() == typeof (Snapshot))
17                 return Efl.Canvas.SnapshotNativeInherit.GetEflClassStatic();
18             else
19                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
20         }
21     }
22     [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
23         efl_canvas_snapshot_class_get();
24     ///<summary>Creates a new instance.</summary>
25     ///<param name="parent">Parent instance.</param>
26     public Snapshot(Efl.Object parent= null
27             ) :
28         base(efl_canvas_snapshot_class_get(), typeof(Snapshot), parent)
29     {
30         FinishInstantiation();
31     }
32     ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
33     protected Snapshot(System.IntPtr raw) : base(raw)
34     {
35                 RegisterEventProxies();
36     }
37     ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
38     protected Snapshot(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
39     ///<summary>Verifies if the given object is equal to this one.</summary>
40     public override bool Equals(object obj)
41     {
42         var other = obj as Efl.Object;
43         if (other == null)
44             return false;
45         return this.NativeHandle == other.NativeHandle;
46     }
47     ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
48     public override int GetHashCode()
49     {
50         return this.NativeHandle.ToInt32();
51     }
52     ///<summary>Turns the native pointer into a string representation.</summary>
53     public override String ToString()
54     {
55         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
56     }
57     ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
58     protected override void RegisterEventProxies()
59     {
60         base.RegisterEventProxies();
61     }
62     private static IntPtr GetEflClassStatic()
63     {
64         return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get();
65     }
66 }
67 public class SnapshotNativeInherit : Efl.Canvas.ImageInternalNativeInherit{
68     public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas);
69     public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
70     {
71         var descs = new System.Collections.Generic.List<Efl_Op_Description>();
72         var methods = Efl.Eo.Globals.GetUserMethods(type);
73         descs.AddRange(base.GetEoOps(type));
74         return descs;
75     }
76     public override IntPtr GetEflClass()
77     {
78         return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get();
79     }
80     public static new  IntPtr GetEflClassStatic()
81     {
82         return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get();
83     }
84 }
85 } }