Lines Matching defs:aValue
60 inline nscoord NSToCoordFloor(float aValue)
62 return ((0.0f <= aValue) ? nscoord(aValue) : nscoord(aValue - CEIL_CONST_FLOAT));
65 inline nscoord NSToCoordCeil(float aValue)
67 return ((0.0f <= aValue) ? nscoord(aValue + CEIL_CONST_FLOAT) : nscoord(aValue));
70 inline nscoord NSToCoordRound(float aValue)
72 return ((0.0f <= aValue) ? nscoord(aValue + ROUND_CONST_FLOAT) : nscoord(aValue - ROUND_CONST_FLOAT));
75 inline nscoord NSToCoordRoundExclusive(float aValue)
77 return ((0.0f <= aValue) ? nscoord(aValue + ROUND_EXCLUSIVE_CONST_FLOAT) :
78 nscoord(aValue - ROUND_EXCLUSIVE_CONST_FLOAT));
85 inline PRInt32 NSToIntFloor(float aValue)
87 return ((0.0f <= aValue) ? PRInt32(aValue) : PRInt32(aValue - CEIL_CONST_FLOAT));
90 inline PRInt32 NSToIntCeil(float aValue)
92 return ((0.0f <= aValue) ? PRInt32(aValue + CEIL_CONST_FLOAT) : PRInt32(aValue));
95 inline PRInt32 NSToIntRound(float aValue)
97 return ((0.0f <= aValue) ? PRInt32(aValue + ROUND_CONST_FLOAT) : PRInt32(aValue - ROUND_CONST_FLOAT));
100 inline PRInt32 NSToIntRoundExclusive(float aValue)
102 return ((0.0f <= aValue) ? PRInt32(aValue + ROUND_EXCLUSIVE_CONST_FLOAT) :
103 PRInt32(aValue - ROUND_EXCLUSIVE_CONST_FLOAT));
166 inline nscoord NSUnitsToTwips(float aValue, float aPointsPerUnit)
168 return NSToCoordRound(aValue * aPointsPerUnit * TWIPS_PER_POINT_FLOAT);