-
public class SizeDefines physical dimensions & scaling characteristics
-
-
Field Summary
Fields Modifier and Type Field Description public static SizeFILLprivate SizeMetricheightprivate SizeMetricwidth
-
Constructor Summary
Constructors Constructor Description Size(float height, SizeMode heightLayoutType, float width, SizeMode widthLayoutType)Convenience constructor. Size(SizeMetric height, SizeMetric width)Creates a new SizeMetrics instance using the specified size layout algorithm and value.
-
Method Summary
Modifier and Type Method Description SizeMetricgetHeight()voidsetHeight(SizeMetric height)SizeMetricgetWidth()voidsetWidth(SizeMetric width)RectFgetRectF(RectF canvasRect)Calculates a RectF with calculated width and height. -
-
Constructor Detail
-
Size
Size(float height, SizeMode heightLayoutType, float width, SizeMode widthLayoutType)
Convenience constructor.- Parameters:
height- Height value used algorithm to calculate the height of the associated widget(s).heightLayoutType- Algorithm used to calculate the height of the associated widget(s).width- Width value used algorithm to calculate the width of the associated widget(s).widthLayoutType- Algorithm used to calculate the width of the associated widget(s).
-
Size
Size(SizeMetric height, SizeMetric width)
Creates a new SizeMetrics instance using the specified size layout algorithm and value.
-
-
Method Detail
-
getHeight
SizeMetric getHeight()
-
setHeight
void setHeight(SizeMetric height)
-
getWidth
SizeMetric getWidth()
-
setWidth
void setWidth(SizeMetric width)
-
-
-
-