Пример #1
0
 internal AlphaFunction(SWIGTYPE_p_f_float__float function) : this(Interop.AlphaFunction.NewAlphaFunction(SWIGTYPE_p_f_float__float.getCPtr(function)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
        internal SWIGTYPE_p_f_float__float GetCustomFunction()
        {
            global::System.IntPtr     cPtr = Interop.AlphaFunction.GetCustomFunction(SwigCPtr);
            SWIGTYPE_p_f_float__float ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_float__float(cPtr);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #3
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();
     }
 }