Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #3
0
 public void  setSize(FSize size)
 {
     if (CppObject != IntPtr.Zero)
     {
         CKLBUIClip_setSize(CppObject, size.width, size.height);
     }
     else
     {
         throw new CKLBExceptionNullCppObject();
     }
 }
Beispiel #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;
 }
Beispiel #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();
     }
 }
Beispiel #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();
     }
 }
Beispiel #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;
        }
 public void     setSize(FSize size)
 {
     if(CppObject != IntPtr.Zero) {
         CKLBUIProgressBar_setWidth(CppObject, size.width);
         CKLBUIProgressBar_setHeight(CppObject, size.height);
     } else {
         throw new CKLBExceptionNullCppObject();
     }
 }
 public void     getSize(out FSize size)
 {
     if(CppObject != IntPtr.Zero) {
         size.width = CKLBUIProgressBar_getWidth(CppObject);
         size.height = CKLBUIProgressBar_getHeight(CppObject);
     } else {
         throw new CKLBExceptionNullCppObject();
     }
 }
Beispiel #10
0
		public void  setSize(FSize size)
		{
			if(CppObject != IntPtr.Zero) {
				CKLBUIClip_setSize(CppObject, size.width, size.height);
			} else {
				throw new CKLBExceptionNullCppObject();
            }
		}