public enum ScreenSize extends java.lang.Enum<ScreenSize>
| Enum Constant and Description |
|---|
LG
Large window size: 1200px - 1599px
|
MD
Medium window size: 992px - 1199px
|
SM
Small window size: 768px - 991px
|
XL
Extra large window size: 1600px+
|
XS
Extra small window size: 0px - 765px
|
| Modifier and Type | Method and Description |
|---|---|
static org.mini2Dx.gdx.utils.Array<ScreenSize> |
copyOfLargestToSmallest()
Returns a new
ScreenSizes array ordered largest to smallest |
static org.mini2Dx.gdx.utils.Array<ScreenSize> |
copyOfSmallestToLargest()
Returns a new
ScreenSizes array ordered smallest to largest |
static ScreenSize |
fromString(java.lang.String value) |
int |
getMinSize(float scale)
Returns the minimum screen size in pixels
|
boolean |
isGreaterThan(ScreenSize otherSize)
Returns if this
ScreenSize is larger than another ScreenSize instance |
static java.util.Iterator<ScreenSize> |
largestToSmallest()
Returns an
Iterator of largest to smallest ScreenSizes |
static org.mini2Dx.gdx.utils.Array<ScreenSize> |
sharedLargestToSmallest()
Returns the shared
ScreenSizes array ordered largest to smallest. |
static org.mini2Dx.gdx.utils.Array<ScreenSize> |
sharedSmallestToLargest()
Returns the shared
ScreenSizes array ordered smallest to largest. |
static java.util.Iterator<ScreenSize> |
smallestToLargest()
Returns an
Iterator of smallest to largest ScreenSizes |
static ScreenSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenSize XS
public static final ScreenSize SM
public static final ScreenSize MD
public static final ScreenSize LG
public static final ScreenSize XL
public static ScreenSize[] values()
for (ScreenSize c : ScreenSize.values()) System.out.println(c);
public static ScreenSize valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getMinSize(float scale)
public boolean isGreaterThan(ScreenSize otherSize)
ScreenSize is larger than another ScreenSize instanceotherSize - The ScreenSize to check againstpublic static java.util.Iterator<ScreenSize> smallestToLargest()
Iterator of smallest to largest ScreenSizespublic static org.mini2Dx.gdx.utils.Array<ScreenSize> copyOfSmallestToLargest()
ScreenSizes array ordered smallest to largestpublic static org.mini2Dx.gdx.utils.Array<ScreenSize> sharedSmallestToLargest()
ScreenSizes array ordered smallest to largest. WARNING: Only use this for iteration by indexpublic static java.util.Iterator<ScreenSize> largestToSmallest()
Iterator of largest to smallest ScreenSizespublic static org.mini2Dx.gdx.utils.Array<ScreenSize> copyOfLargestToSmallest()
ScreenSizes array ordered largest to smallestpublic static org.mini2Dx.gdx.utils.Array<ScreenSize> sharedLargestToSmallest()
ScreenSizes array ordered largest to smallest. WARNING: Only use this for iteration by indexpublic static ScreenSize fromString(java.lang.String value)