-
Notifications
You must be signed in to change notification settings - Fork 1
GraphicsItem
JS binding for GraphicsItem.
N/A
bool acceptDrops ([bool accept])
bool active ([bool active])
Object { x, y, width, height } boundingRect ()
GraphicsItem [] childItems ()
Object { x, y, width, height } childrenBoundingRect ()
void clearFocus ()
bool collidesWithItem ( GraphicsItem item )
bool collidesWithPath ( PathItem path )
GraphicsItem [] collidingItems ()
bool contains ( Number x, Number y )
Object {} data ( [*Object {} *] )
bool enabled (bool enabled)
void ensureVisible (Number x, Number y, Number width, Number height)
void focusItem ( GraphicsItem item )
bool hasFocus ( GraphicsItem item )
void hide ()
GraphicsItem parentItem ([GraphicsItem parent])
void show ()
void stackBefore (GraphicsItem sibling)
bool visible ([bool visible])
Number z ([Number z])
[Number, Number] pos (Number x, Number y)
[Number, Number] scenePos (Number x, Number y)
Number rotation ([Number rotation])
-
Rotation is given in degrees (that is, [0, 360) ). Number flag (GraphicsItemFlag flag, [bool enabled])
-
This function sets the specified flag to the enable value.
-
The result is a bitmask of the currently active flags and flag.