pxunit library
Enums
Functions
-
heightPercentToPxUnitDoubleGetter(
double hpcValue, [PxUnit toPu = PxUnit.hpc]) → PxUnitValueGetter< PxUnitDouble> - 高度百分比 的 值转换((Y,hpc)->(M,?)), 默认 1:1转换为 hpc
-
heightPercentToPxUnitGetter(
PxUnit toPu) → PxUnitDoubleGetter - 高度百分比 的 单位转换(/hpc->/?)
-
pxIntToDouble(
PxUnitValue< int> pxInt) → PxUnitDouble -
pxUnitDouble(
double value, PxUnit unit) → PxUnitDouble -
pxUnitDoubleGetter(
PxUnitDouble value) → PxUnitDoubleGetter -
pxUnitDoubleHeightPercentGetter(
PxUnitDouble value) → PercentGetter -
pxUnitDoubleWidthPercentGetter(
PxUnitDouble value) → PercentGetter -
pxUnitGetter(
PxUnit pu) → PxUnitValueGetter< double> -
pxUnitHeightPercentGetter(
PxUnit pu) → PercentGetter -
pxUnitWidthPercentGetter(
PxUnit pu) → PercentGetter -
rpx(
double value) → PxUnitDoubleGetter -
vh(
double value) → PxUnitDoubleGetter -
vhOffset(
Offset offset) → PxUnitValueGetter< Offset> -
vhRect(
Rect rect) → PxUnitValueGetter< Rect> -
vhRectOnlySize(
Rect rect) → PxUnitValueGetter< Rect> -
vhSize(
Size size) → PxUnitValueGetter< Size> -
vmax(
double value) → PxUnitDoubleGetter -
vmin(
double value) → PxUnitDoubleGetter -
vw(
double value) → PxUnitDoubleGetter -
widthPercentToPxUnitDoubleGetter(
double wpcValue, [PxUnit toPu = PxUnit.wpc]) → PxUnitValueGetter< PxUnitDouble> - 宽度百分比 的 值转换((X,wpc)->(N,?)), 默认 1:1转换为 wpc
-
widthPercentToPxUnitGetter(
PxUnit toPu) → PxUnitDoubleGetter - 宽度百分比 的 单位转换(/wpc->/?)
Typedefs
- LiteralGetter = PxUnitDouble Function(Size size)
- PercentGetter = double Function(Size size)
-
PxUnitDouble
= PxUnitValue<
double> -
PxUnitDoubleGetter
= PxUnitValueGetter<
double> -
PxUnitValue<
T> = (T, PxUnit) -
PxUnitValueGetter<
T> = T Function(Size viewport) -
PxUnitVector
= PxUnitValue<
Vector2> -
PxUnitVectorGetter
= PxUnitValueGetter<
Vector2>