[EflSharp] Separate efl and Circle cs files and Update cs files (#786)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_page_transition.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 Page { 
8 /// <summary>Page transition for <see cref="Efl.Ui.Pager"/>
9 /// A page transition is essential to <see cref="Efl.Ui.Pager"/> object and invoked whenever pages are rearranged or scrolled (see <see cref="Efl.Ui.Pager"/>).</summary>
10 [TransitionNativeInherit]
11 public class Transition : Efl.Object, 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 (Transition))
17                 return Efl.Page.TransitionNativeInherit.GetEflClassStatic();
18             else
19                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
20         }
21     }
22     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
23         efl_page_transition_class_get();
24     ///<summary>Creates a new instance.</summary>
25     ///<param name="parent">Parent instance.</param>
26     public Transition(Efl.Object parent= null
27             ) :
28         base(efl_page_transition_class_get(), typeof(Transition), 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 Transition(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 Transition(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     /// <summary>set object</summary>
63     /// <param name="pager">pager object</param>
64     /// <param name="group">a dummy object for layer adjustment</param>
65     /// <returns></returns>
66     virtual public void Bind( Efl.Ui.Pager pager,  Efl.Canvas.Group group) {
67                                                          Efl.Page.TransitionNativeInherit.efl_page_transition_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pager,  group);
68         Eina.Error.RaiseIfUnhandledException();
69                                          }
70     private static IntPtr GetEflClassStatic()
71     {
72         return Efl.Page.Transition.efl_page_transition_class_get();
73     }
74 }
75 public class TransitionNativeInherit : Efl.ObjectNativeInherit{
76     public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
77     public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
78     {
79         var descs = new System.Collections.Generic.List<Efl_Op_Description>();
80         var methods = Efl.Eo.Globals.GetUserMethods(type);
81         if (efl_page_transition_bind_static_delegate == null)
82             efl_page_transition_bind_static_delegate = new efl_page_transition_bind_delegate(bind);
83         if (methods.FirstOrDefault(m => m.Name == "Bind") != null)
84             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_page_transition_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_bind_static_delegate)});
85         descs.AddRange(base.GetEoOps(type));
86         return descs;
87     }
88     public override IntPtr GetEflClass()
89     {
90         return Efl.Page.Transition.efl_page_transition_class_get();
91     }
92     public static new  IntPtr GetEflClassStatic()
93     {
94         return Efl.Page.Transition.efl_page_transition_class_get();
95     }
96
97
98      private delegate void efl_page_transition_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Ui.Pager, Efl.Eo.NonOwnTag>))]  Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Group, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Group group);
99
100
101      public delegate void efl_page_transition_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Ui.Pager, Efl.Eo.NonOwnTag>))]  Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Group, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Group group);
102      public static Efl.Eo.FunctionWrapper<efl_page_transition_bind_api_delegate> efl_page_transition_bind_ptr = new Efl.Eo.FunctionWrapper<efl_page_transition_bind_api_delegate>(_Module, "efl_page_transition_bind");
103      private static void bind(System.IntPtr obj, System.IntPtr pd,  Efl.Ui.Pager pager,  Efl.Canvas.Group group)
104     {
105         Eina.Log.Debug("function efl_page_transition_bind was called");
106         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
107         if(wrapper != null) {
108                                                                         
109             try {
110                 ((Transition)wrapper).Bind( pager,  group);
111             } catch (Exception e) {
112                 Eina.Log.Warning($"Callback error: {e.ToString()}");
113                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
114             }
115                                                 } else {
116             efl_page_transition_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  pager,  group);
117         }
118     }
119     private static efl_page_transition_bind_delegate efl_page_transition_bind_static_delegate;
120 }
121 } }