|
|||||||||
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.ItemSelectionMode
public static final class Qt.ItemSelectionMode
This enum is used in QGraphicsItem
, QGraphicsScene
and QGraphicsView
to specify how items are selected, or how to determine if a shapes and items collide.
QGraphicsScene::items()
, QGraphicsScene::collidingItems()
, QGraphicsView::items()
, QGraphicsItem::collidesWithItem()
, and QGraphicsItem::collidesWithPath()
.
Field Summary | |
---|---|
static Qt.ItemSelectionMode |
ContainsItemBoundingRect
The output list contains only items whose bounding rectangle is fully contained inside the selection area. |
static Qt.ItemSelectionMode |
ContainsItemShape
The output list contains only items whose shape is fully contained inside the selection area. |
static Qt.ItemSelectionMode |
IntersectsItemBoundingRect
The output list contains both items whose bounding rectangle is fully contained inside the selection area, and items that intersect with the area's outline. |
static Qt.ItemSelectionMode |
IntersectsItemShape
The output list contains both items whose shape is fully contained inside the selection area, and items that intersect with the area's outline. |
Method Summary | |
---|---|
static Qt.ItemSelectionMode |
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.ItemSelectionMode |
valueOf(java.lang.String name)
|
static Qt.ItemSelectionMode[] |
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.ItemSelectionMode ContainsItemShape
shape
is fully contained inside the selection area. Items that intersect with the area's outline are not included.
public static final Qt.ItemSelectionMode IntersectsItemShape
shape
is fully contained inside the selection area, and items that intersect with the area's outline. This is a common mode for rubber band selection.
public static final Qt.ItemSelectionMode ContainsItemBoundingRect
bounding rectangle
is fully contained inside the selection area. Items that intersect with the area's outline are not included.
public static final Qt.ItemSelectionMode IntersectsItemBoundingRect
bounding rectangle
is fully contained inside the selection area, and items that intersect with the area's outline. This method is commonly used for determining areas that need redrawing.
Method Detail |
---|
public static Qt.ItemSelectionMode[] values()
public static Qt.ItemSelectionMode valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static Qt.ItemSelectionMode resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |