コード例 #1
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #2
0
 public PropertyRegistration(TypeRegistration registered, string name, int index, PropertyType type, SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void setFunc, SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value getFunc) : this(Interop.NDalic.NewPropertyRegistration(TypeRegistration.getCPtr(registered), name, index, (int)type, SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void.getCPtr(setFunc), SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value.getCPtr(getFunc)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
        public void PropertyRegistrationConstructor()
        {
            tlog.Debug(tag, $"PropertyRegistrationConstructor START");

            using (View view = new View())
            {
                TypeRegistration registration = new TypeRegistration(view.SwigCPtr.Handle, false);
                SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void   set = new SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void(View.getCPtr(view).Handle);
                SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value get = new SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value(View.getCPtr(view).Handle);

                var testingTarget = new PropertyRegistration(registration, "mytest", 10000001, PropertyType.Float, set, get);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <PropertyRegistration>(testingTarget, "Should return PropertyRegistration instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"PropertyRegistrationConstructor END (OK)");
        }