|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.AspectRatioMode>
com.trolltech.qt.core.Qt.AspectRatioMode
public static enum Qt.AspectRatioMode
This enum type defines what happens to the aspect ratio when scaling an rectangle.
Enum Constant Summary | |
---|---|
IgnoreAspectRatio
The size is scaled freely. |
|
KeepAspectRatio
The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio. |
|
KeepAspectRatioByExpanding
The size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio. |
Method Summary | |
---|---|
static Qt.AspectRatioMode |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.AspectRatioMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.AspectRatioMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Qt.AspectRatioMode IgnoreAspectRatio
The size is scaled freely. The aspect ratio is not preserved.
public static final Qt.AspectRatioMode KeepAspectRatio
The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio.
public static final Qt.AspectRatioMode KeepAspectRatioByExpanding
The size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio.
Method Detail |
---|
public static final Qt.AspectRatioMode[] values()
for(Qt.AspectRatioMode c : Qt.AspectRatioMode.values()) System.out.println(c);
public static Qt.AspectRatioMode 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 namepublic int value()
QtEnumerator
value
in interface QtEnumerator
public static Qt.AspectRatioMode resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |