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; }
public void setSize(FSize size) { if (CppObject != IntPtr.Zero) { CKLBUIClip_setSize(CppObject, size.width, size.height); } else { throw new CKLBExceptionNullCppObject(); } }
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(); } }
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(); } }
public void setSize(FSize size) { if(CppObject != IntPtr.Zero) { CKLBUIClip_setSize(CppObject, size.width, size.height); } else { throw new CKLBExceptionNullCppObject(); } }