Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

UI Object In Depth

janesconference edited this page Mar 10, 2011 · 2 revisions

Constructor

function UI(domElement)

Handling Events

this.getPosition = function (obj) 
this.getEventPosition = function (e, obj, scale)
this.onMouseMoveFunc = function ()
this.onMouseDownFunc = function ()
this.onMouseUpFunc = function () 
this.elementsNotifyEvent = function (x, y, event)

Adding Elements

this.addElement = function (element, drawClass, elementParameters)

Chaining Elements

this.connectSlots  = function (senderElement, senderSlot, receiverElement, receiverSlot, connectParameters)

Setting Values

this.setValue = function (elementName, slot, value, history)

Handling Refresh

this.refreshZ = function (z)
this.refresh = function ()