|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Enum
com.trolltech.qt.core.Qt.AspectRatioMode
public static final class Qt.AspectRatioMode
This enum type defines what happens to the aspect ratio when scaling an rectangle.

QSize::scale(), and QImage::scaled().
| Field Summary | |
|---|---|
static Qt.AspectRatioMode |
IgnoreAspectRatio
The size is scaled freely. |
static Qt.AspectRatioMode |
KeepAspectRatio
The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio. |
static Qt.AspectRatioMode |
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)
|
static Qt.AspectRatioMode[] |
values()
|
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Qt.AspectRatioMode IgnoreAspectRatio
public static final Qt.AspectRatioMode KeepAspectRatio
public static final Qt.AspectRatioMode KeepAspectRatioByExpanding
| Method Detail |
|---|
public static Qt.AspectRatioMode[] values()
public static Qt.AspectRatioMode valueOf(java.lang.String name)
public int value()
value in interface QtEnumeratorpublic static Qt.AspectRatioMode resolve(int value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||