|
|||||||||
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.AlignmentFlag
public static final class Qt.AlignmentFlag
This enum type is used to describe alignment. It contains horizontal and vertical flags that can be combined to produce the required effect.
The TextElideMode
enum can also be used in many situations to fine-tune the appearance of aligned text.
The horizontal flags are: The vertical flags are: You can use only one of the horizontal flags at a time. There is one two-dimensional flag: You can use at most one horizontal and one vertical flag at a time. Qt::AlignCenter
counts as both horizontal and vertical.
Three enum values are useful in applications that can be run in right-to-left mode: Masks: Conflicting combinations of flags have undefined meanings.
Field Summary | |
---|---|
static Qt.AlignmentFlag |
AlignAbsolute
If the widget's layout direction is Qt::RightToLeft (instead of Qt::LeftToRight , the default), Qt::AlignLeft refers to the right edge and Qt::AlignRight to the left edge. |
static Qt.AlignmentFlag |
AlignBottom
Aligns with the bottom. |
static Qt.AlignmentFlag |
AlignCenter
Centers in both dimensions. |
static Qt.AlignmentFlag |
AlignHCenter
Centers horizontally in the available space. |
static Qt.AlignmentFlag |
AlignHorizontal_Mask
Value: AlignHorizontal_Mask |
static Qt.AlignmentFlag |
AlignJustify
Justifies the text in the available space. |
static Qt.AlignmentFlag |
AlignLeft
Aligns with the left edge. |
static Qt.AlignmentFlag |
AlignRight
Aligns with the right edge. |
static Qt.AlignmentFlag |
AlignTop
Aligns with the top. |
static Qt.AlignmentFlag |
AlignVCenter
Centers vertically in the available space. |
static Qt.AlignmentFlag |
AlignVertical_Mask
Value: AlignVertical_Mask |
Method Summary | |
---|---|
static Qt.Alignment |
createQFlags(Qt.AlignmentFlag[] values)
|
static Qt.AlignmentFlag |
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.AlignmentFlag |
valueOf(java.lang.String name)
|
static Qt.AlignmentFlag[] |
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.AlignmentFlag AlignLeft
public static final Qt.AlignmentFlag AlignRight
public static final Qt.AlignmentFlag AlignHCenter
public static final Qt.AlignmentFlag AlignJustify
public static final Qt.AlignmentFlag AlignAbsolute
Qt::RightToLeft
(instead of Qt::LeftToRight
, the default), Qt::AlignLeft
refers to the right edge and Qt::AlignRight
to the left edge. This is normally the desired behavior. If you want Qt::AlignLeft
to always mean "left" and Qt::AlignRight
to always mean "right", combine the flag with Qt::AlignAbsolute
.
public static final Qt.AlignmentFlag AlignHorizontal_Mask
public static final Qt.AlignmentFlag AlignTop
public static final Qt.AlignmentFlag AlignBottom
public static final Qt.AlignmentFlag AlignVCenter
public static final Qt.AlignmentFlag AlignVertical_Mask
public static final Qt.AlignmentFlag AlignCenter
Method Detail |
---|
public static Qt.AlignmentFlag[] values()
public static Qt.AlignmentFlag valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static Qt.Alignment createQFlags(Qt.AlignmentFlag[] values)
public static Qt.AlignmentFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |