Example #1
0
 public static void getBoundSize(String assetPath, out FSize size)
 {
     float width = 0, height = 0;
     NativeManagement.resetCppError();
     CKLBLuaLibASSET_getBoundSize(__MarshallingUtils.NativeUtf8FromString(assetPath), ref width, ref height);
     NativeManagement.intercepCppError();
     size.width = width;
     size.height = height;
 }
Example #2
0
        public static void getBoundSize(String assetPath, out FSize size)
        {
            float width = 0, height = 0;

            NativeManagement.resetCppError();
            CKLBLuaLibASSET_getBoundSize(__MarshallingUtils.NativeUtf8FromString(assetPath), ref width, ref height);
            NativeManagement.intercepCppError();
            size.width  = width;
            size.height = height;
        }
Example #3
0
 public void  setSize(FSize size)
 {
     if (CppObject != IntPtr.Zero)
     {
         CKLBUIClip_setSize(CppObject, size.width, size.height);
     }
     else
     {
         throw new CKLBExceptionNullCppObject();
     }
 }
Example #4
0
 public static void getAssetInfo(String assetPath, out Size imgSize, out FSize boundSize)
 {
     int imgWidth = 0, imgHeight = 0;
     float boundWidth = 0, boundHeight = 0;
     NativeManagement.resetCppError();
     CKLBLuaLibASSET_getAssetInfo(__MarshallingUtils.NativeUtf8FromString(assetPath), ref imgWidth, ref imgHeight, ref boundWidth, ref boundHeight);
     NativeManagement.intercepCppError();
     imgSize.width    = imgWidth;
     imgSize.height   = imgHeight;
     boundSize.width  = boundWidth;
     boundSize.height = boundHeight;
 }
Example #5
0
 public void     setSize(FSize size)
 {
     if (CppObject != IntPtr.Zero)
     {
         CKLBUIProgressBar_setWidth(CppObject, size.width);
         CKLBUIProgressBar_setHeight(CppObject, size.height);
     }
     else
     {
         throw new CKLBExceptionNullCppObject();
     }
 }
Example #6
0
 public void     getSize(out FSize size)
 {
     if (CppObject != IntPtr.Zero)
     {
         size.width  = CKLBUIProgressBar_getWidth(CppObject);
         size.height = CKLBUIProgressBar_getHeight(CppObject);
     }
     else
     {
         throw new CKLBExceptionNullCppObject();
     }
 }
Example #7
0
        public static void getAssetInfo(String assetPath, out Size imgSize, out FSize boundSize)
        {
            int   imgWidth = 0, imgHeight = 0;
            float boundWidth = 0, boundHeight = 0;

            NativeManagement.resetCppError();
            CKLBLuaLibASSET_getAssetInfo(__MarshallingUtils.NativeUtf8FromString(assetPath), ref imgWidth, ref imgHeight, ref boundWidth, ref boundHeight);
            NativeManagement.intercepCppError();
            imgSize.width    = imgWidth;
            imgSize.height   = imgHeight;
            boundSize.width  = boundWidth;
            boundSize.height = boundHeight;
        }
Example #8
0
 public void     setSize(FSize size)
 {
     if(CppObject != IntPtr.Zero) {
         CKLBUIProgressBar_setWidth(CppObject, size.width);
         CKLBUIProgressBar_setHeight(CppObject, size.height);
     } else {
         throw new CKLBExceptionNullCppObject();
     }
 }
Example #9
0
 public void     getSize(out FSize size)
 {
     if(CppObject != IntPtr.Zero) {
         size.width = CKLBUIProgressBar_getWidth(CppObject);
         size.height = CKLBUIProgressBar_getHeight(CppObject);
     } else {
         throw new CKLBExceptionNullCppObject();
     }
 }
Example #10
0
		public void  setSize(FSize size)
		{
			if(CppObject != IntPtr.Zero) {
				CKLBUIClip_setSize(CppObject, size.width, size.height);
			} else {
				throw new CKLBExceptionNullCppObject();
            }
		}