示例#1
0
 public static global::haxe.lang.Function callbackDelegateToHaxeFunction(global::System.Delegate @delegate)
 {
                 #line 39 "/my-component/src/maglev/MagLevCs.hx"
     global::haxe.lang.Function func = new global::maglev.MagLevCs_callbackDelegateToHaxeFunction_39__Fun(@delegate);
                 #line 44 "/my-component/src/maglev/MagLevCs.hx"
     return(func);
 }
示例#2
0
 /// <summary>
 /// The constructor.<br />
 /// Creates an alpha function object with the user-defined alpha function.<br />
 /// </summary>
 /// <param name="func">User defined fuction. It must be a method formatted as float alphafunction(float progress)</param>
 /// <since_tizen> 3 </since_tizen>
 public AlphaFunction(global::System.Delegate func) : this(Interop.AlphaFunction.NewAlphaFunction(SWIGTYPE_p_f_float__float.getCPtr(new SWIGTYPE_p_f_float__float(System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate <System.Delegate>(func)))), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public static global::haxe.lang.Function listenerDelegateToHaxeFunction(global::System.Delegate @delegate)
 {
                 #line 28 "/my-component/src/maglev/MagLevCs.hx"
     global::haxe.lang.Function func = new global::maglev.MagLevCs_listenerDelegateToHaxeFunction_28__Fun(@delegate);
                 #line 34 "/my-component/src/maglev/MagLevCs.hx"
     return(func);
 }
示例#4
0
            internal unsafe Vftbl(IntPtr thisPtr)
            {
                var vftblPtr = Marshal.PtrToStructure <VftblPtr>(thisPtr);
                var vftbl    = (IntPtr *)vftblPtr.Vftbl;

                IInspectableVftbl = Marshal.PtrToStructure <IInspectable.Vftbl>(vftblPtr.Vftbl);
                get_Value_0       = Marshal.GetDelegateForFunctionPointer(vftbl[6], get_Value_0_Type);
            }
示例#5
0
 private static void GetObjectData1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle info, global::net.sf.jni4net.utils.JniLocalHandle context)
 {
     // (Lsystem/runtime/serialization/SerializationInfo;Lsystem/runtime/serialization/StreamingContext;)V
     // (LSystem/Runtime/Serialization/SerializationInfo;LSystem/Runtime/Serialization/StreamingContext;)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
         global::System.Delegate @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Delegate>(@__env, @__obj);
         ((global::System.Runtime.Serialization.ISerializable)(@__real)).GetObjectData(global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Runtime.Serialization.SerializationInfo>(@__env, info), global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Runtime.Serialization.StreamingContext>(@__env, context));
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
 }
示例#6
0
            internal unsafe Vftbl(IntPtr thisPtr)
            {
                var vftblPtr = Marshal.PtrToStructure <VftblPtr>(thisPtr);
                var vftbl    = (IntPtr *)vftblPtr.Vftbl;

                IInspectableVftbl = Marshal.PtrToStructure <IInspectable.Vftbl>(vftblPtr.Vftbl);
                GetAt_0           = Marshal.GetDelegateForFunctionPointer(vftbl[6], GetAt_0_Type);
                get_Size_1        = Marshal.GetDelegateForFunctionPointer <_get_PropertyAsUInt32>(vftbl[7]);
                IndexOf_2         = Marshal.GetDelegateForFunctionPointer(vftbl[8], IndexOf_2_Type);
                GetMany_3         = Marshal.GetDelegateForFunctionPointer <IReadOnlyList_Delegates.GetMany_3>(vftbl[9]);
            }
示例#7
0
        public void InternalEvent(bool bAttach, global::System.Delegate e, EventNames n)
        {
            // http://help.dottoro.com/ljrtxexf.php

            IFunction z = ((BCLImplementation.System.__Delegate)(object) e).InvokePointer;

            // does IE9 define both functions?

            if (bAttach)
            {
                if (Expando.InternalIsMember(this, "addEventListener"))
                {
                    // https://developer.mozilla.org/en-US/docs/DOM/element.addEventListener
                    addEventListener(n.EventListener, z);

                    if (n.EventListenerAlt != null)
                    {
                        addEventListener(n.EventListenerAlt, z);
                    }
                }
                else if (Expando.InternalIsMember(this, "attachEvent"))
                {
                    attachEvent(n.Event, z);

                    if (n.EventAlt != null)
                    {
                        attachEvent(n.EventAlt, z);
                    }
                }

                return;
            }

            #region remove
            if (Expando.InternalIsMember(this, "removeEventListener"))
            {
                removeEventListener(n.EventListener, z, false);

                if (n.EventListenerAlt != null)
                {
                    removeEventListener(n.EventListenerAlt, z, false);
                }
            }
            else if (Expando.InternalIsMember(this, "detachEvent"))
            {
                detachEvent(n.Event, z);

                if (n.EventAlt != null)
                {
                    detachEvent(n.EventAlt, z);
                }
            }
            #endregion
        }
示例#8
0
 private static global::net.sf.jni4net.utils.JniHandle DynamicInvoke2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle args)
 {
     // ([Lsystem/Object;)Lsystem/Object;
     // ([LSystem/Object;)LSystem/Object;
     global::net.sf.jni4net.jni.JNIEnv      @__env    = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
     try {
         global::System.Delegate @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Delegate>(@__env, @__obj);
         @__return = global::net.sf.jni4net.utils.Convertor.FullC2J <object>(@__env, @__real.DynamicInvoke(global::net.sf.jni4net.utils.Convertor.ArrayFullJ2C <object[], object>(@__env, args)));
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
     return(@__return);
 }
示例#9
0
 private static global::net.sf.jni4net.utils.JniHandle Clone0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj)
 {
     // ()Lsystem/Object;
     // ()LSystem/Object;
     global::net.sf.jni4net.jni.JNIEnv      @__env    = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
     try {
         global::System.Delegate @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Delegate>(@__env, @__obj);
         @__return = global::net.sf.jni4net.utils.Convertor.FullC2J <object>(@__env, ((global::System.ICloneable)(@__real)).Clone());
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
     return(@__return);
 }
示例#10
0
 private static global::net.sf.jni4net.utils.JniHandle Method6(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj)
 {
     // ()Lsystem/reflection/MethodInfo;
     // ()LSystem/Reflection/MethodInfo;
     global::net.sf.jni4net.jni.JNIEnv      @__env    = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
     try {
         global::System.Delegate @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Delegate>(@__env, @__obj);
         @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp <global::System.Reflection.MethodInfo>(@__env, @__real.Method);
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
     return(@__return);
 }
示例#11
0
 private static global::net.sf.jni4net.utils.JniHandle GetInvocationList5(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj)
 {
     // ()[Lsystem/Delegate;
     // ()[LSystem/Delegate;
     global::net.sf.jni4net.jni.JNIEnv      @__env    = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
     try {
         global::System.Delegate @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.Delegate>(@__env, @__obj);
         @__return = global::net.sf.jni4net.utils.Convertor.ArrayStrongC2Jp <global::System.Delegate[], global::System.Delegate>(@__env, @__real.GetInvocationList());
     }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
     return(@__return);
 }
示例#12
0
        public static IFunction OfDelegate(global::System.Delegate h)
        {
            // called by
            // // chrome.app+runtime.add_Restarted

            if (h == null)
            {
                return(null);
            }


            BCLImplementation.System.__Delegate hh = h;

            return(hh.InvokePointer);
        }
示例#13
0
            internal unsafe Vftbl(IntPtr thisPtr)
            {
                var vftblPtr = Marshal.PtrToStructure <VftblPtr>(thisPtr);
                var vftbl    = (IntPtr *)vftblPtr.Vftbl;

                IInspectableVftbl = Marshal.PtrToStructure <IInspectable.Vftbl>(vftblPtr.Vftbl);
                GetAt_0           = Marshal.GetDelegateForFunctionPointer(vftbl[6], GetAt_0_Type);
                get_Size_1        = Marshal.GetDelegateForFunctionPointer <_get_PropertyAsUInt32>(vftbl[7]);
                GetView_2         = Marshal.GetDelegateForFunctionPointer <IList_Delegates.GetView_2>(vftbl[8]);
                IndexOf_3         = Marshal.GetDelegateForFunctionPointer(vftbl[9], IndexOf_3_Type);
                SetAt_4           = Marshal.GetDelegateForFunctionPointer(vftbl[10], SetAt_4_Type);
                InsertAt_5        = Marshal.GetDelegateForFunctionPointer(vftbl[11], InsertAt_5_Type);
                RemoveAt_6        = Marshal.GetDelegateForFunctionPointer <IList_Delegates.RemoveAt_6>(vftbl[12]);
                Append_7          = Marshal.GetDelegateForFunctionPointer(vftbl[13], Append_7_Type);
                RemoveAtEnd_8     = Marshal.GetDelegateForFunctionPointer <IList_Delegates.RemoveAtEnd_8>(vftbl[14]);
                Clear_9           = Marshal.GetDelegateForFunctionPointer <IList_Delegates.Clear_9>(vftbl[15]);
                GetMany_10        = Marshal.GetDelegateForFunctionPointer <IList_Delegates.GetMany_10>(vftbl[16]);
                ReplaceAll_11     = Marshal.GetDelegateForFunctionPointer <IList_Delegates.ReplaceAll_11>(vftbl[17]);
            }
示例#14
0
        public void InternalEvent(bool bAttach, global::System.Delegate e, string _EventListener, string _Event)
        {
            InternalEvent(bAttach, e, new EventNames {
                Event = _Event, EventListener = _EventListener
            });

            //IFunction z = ((BCLImplementation.System.__Delegate)(object)e).InvokePointer;

            //if (bAttach)
            //{
            //    if (Expando.InternalIsMember(this, "addEventListener"))
            //        addEventListener(_EventListener, z, false);
            //    if (Expando.InternalIsMember(this, "attachEvent"))
            //        attachEvent(_Event, z);
            //}
            //else
            //{
            //    if (Expando.InternalIsMember(this, "removeEventListener"))
            //        removeEventListener(_EventListener, z, false);
            //    if (Expando.InternalIsMember(this, "detachEvent"))
            //        detachEvent(_Event, z);
            //}
        }
示例#15
0
 public MagLevCs_listenerDelegateToHaxeFunction_28__Fun(global::System.Delegate @delegate) : base(2, 0)
 {
                 #line 28 "/my-component/src/maglev/MagLevCs.hx"
     this.@delegate = @delegate;
 }
示例#16
0
 public void InternalEvent(bool bAttach, global::System.Delegate e, string f)
 {
     InternalEvent(bAttach, e, f, "on" + f);
 }
示例#17
0
 public MagLevCs_callbackDelegateToHaxeFunction_39__Fun(global::System.Delegate @delegate) : base(1, 0)
 {
                 #line 39 "/my-component/src/maglev/MagLevCs.hx"
     this.@delegate = @delegate;
 }
示例#18
0
        //public static IFunction Of(string name)
        //{
        //    return Expando.Of(Native.Window).GetMember<IFunction>(name);
        //}



        public static IFunction OfDelegate(global::System.Delegate h)
        {
            return(((BCLImplementation.System.__Delegate)(object) h).InvokePointer);
        }