fm.liveswitch.LayoutScale Enum Reference

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...
 

Detailed Description

Specifies how an element should be scaled within a layout.

Constructor & Destructor Documentation

◆ LayoutScale()

fm.liveswitch.LayoutScale.LayoutScale ( int  value)

Member Function Documentation

◆ [static initializer]()

fm.liveswitch.LayoutScale.[static initializer]
static

◆ getAssignedValue()

int fm.liveswitch.LayoutScale.getAssignedValue ( )

◆ getByAssignedValue()

static LayoutScale fm.liveswitch.LayoutScale.getByAssignedValue ( int  value)
static

Member Data Documentation

◆ Contain

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.

◆ Cover

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).

◆ Stretch

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).