Specifies how an element should be scaled within a layout. More...
Public Member Functions | |
LayoutScale (int value) | |
int | getAssignedValue () |
Static Public Member Functions | |
[static initializer] | |
static LayoutScale | getByAssignedValue (int value) |
Public Attributes | |
Contain =(1) | |
Indicates that the element should be uniformly scaled (maintaining aspect ratio) to the largest size such that both its width and its height can fit inside its bounding box. More... | |
Cover =(2) | |
Indicates that the element should be uniformly scaled (maintaining aspect ratio) to be as large as possible so that the bounding box is completely covered. More... | |
Stretch =(3) | |
Indicates that the element should be non-uniformly scaled (not maintaining aspect ratio) so that the bounding box is completely covered, but all parts of the element are in view (no cropping). More... | |
Specifies how an element should be scaled within a layout.
fm.liveswitch.LayoutScale.LayoutScale | ( | int | value | ) |
|
static |
int fm.liveswitch.LayoutScale.getAssignedValue | ( | ) |
|
static |
fm.liveswitch.LayoutScale.Contain =(1) |
Indicates that the element should be uniformly scaled (maintaining aspect ratio) to the largest size such that both its width and its height can fit inside its bounding box.
fm.liveswitch.LayoutScale.Cover =(2) |
Indicates that the element should be uniformly scaled (maintaining aspect ratio) to be as large as possible so that the bounding box is completely covered.
Some parts of the element may not be in view (cropped).
fm.liveswitch.LayoutScale.Stretch =(3) |
Indicates that the element should be non-uniformly scaled (not maintaining aspect ratio) so that the bounding box is completely covered, but all parts of the element are in view (no cropping).