Skip to content
ben-sangster edited this page Jan 7, 2011 · 1 revision

Description

JS binding for GraphicsScene. Inherits from UIObject.

Signals

N/A

Functions

void addItem (GraphicsItem)

void addLine (LineItem line)

LineItem addLine (Number x1, Number y1, Number x2, Number y2)

PathItem addPath (PainterPath, [Pen pen, [Brush brush] ])

void addRect (RectItem rect)

RectItem addRect (Number x, Number y, Number width, Number height, [Pen pen, [Brush brush] ])

void addText (TextItem)

TextItem addText (String text)

Brush backgroundBrush ([Brush brush])

void clearFocus ()

GraphicsItem [] collidingItems (GraphicsItem item)

GraphicsItem focusItem ([GraphicsItem item])

Brush foregroundBrush ([Brush brush])

activePanel

GraphicsItem [] items (SortOrder order)

GraphicsItem [] items (PainterPath path, ItemSelectionMode ism, SortOrder order)

GraphicsItem [] items (Number x, Number y, ItemSelectionMode ism, SortOrder order)

GraphicsItem [] items (Number x, Number y, Number width, Number height, ItemSelectionMode ism, SortOrder order)

void removeItem (GraphicsItem item)

Object { x, y, width, height } sceneRect (*Object { x, y, width, height } *)

GraphicsItem [] selectedItems ()

Number width ()

Number height ()

Clone this wiki locally