Skip to content
ben-sangster edited this page Jan 6, 2011 · 3 revisions

Description

JS binding for GraphicsItem.

Signals

N/A

Functions

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.

API

graph

Clone this wiki locally