pxunit library

Enums

PxUnit

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->/?)