Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


CanvasManager

CanvasManager is the root of the display hierarchy, manages a single canvas, and is essentially
the brain of the system, its responsible things such as driving the component life cycle,
managing CanvasElements, requesting render frames from the browser, etc.
For elements to be rendered to the canvas, they must be added to CanvasManager, or be a descendant of
an element that has been added to CanvasManager.
CanvasManager itself is a subclass of an AnchorContainer and can be used as such, although typically
for more complex layouts you will nest containers inside of CanvasManager.

Inheritance:     CanvasManager ➞ AnchorContainerElementContainerBaseElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
AlertModalClass     :    CanvasElement CanvasManager
CanvasElement constructor to be used for the alert overlay. Defaults to CanvasElement.
This may be set to null if you do not wish to block interactivity with the underlying UI when
an alert is triggered.
 
AlertModalStyle     :    StyleDefinition CanvasManager
The StyleDefinition or [StyleDefinition] array to apply to the alert modal overlay.
Default definition sets BackgroundFill to "rgba(180,180,180,.4)".
If styled to be transparent, the modal element will still block user interactivity.
 
ShowRedrawRegion     :    boolean CanvasManager
When true the canvas redraw region will be displayed.
 


Events
Show Inherited


Public Functions
Show Inherited
Function Defined By
CanvasManager() [Constructor] CanvasManager
Creates new CanvasManager instance.
 
addAlert() CanvasManager
Adds an element to be displayed as an alert. Only one alert may
be displayed at a time, subsequent will be queued and displayed in the
order they have been queued as previous alerts are removed.
If an AlertModalClass style is set (defaults to CanvasElement), the modal
element will be placed covering all content under the alert element.
  returns     :    CanvasElement
The element supplied to addAlert().
 
addCursor(cursorDefinition, priority) CanvasManager
Adds a cursor to be used when the mouse is over the canvas. Cursors are managed
as a priority chain. Element roll-over cursors use priority 0 so setting any explicit
cursor such as a busy cursor should use a priority higher than 0, unless you want Elements
to override the canvas cursor on roll-over.
  cursorDefinition     :    CursorDefinition
The cursor to add. This may be a custom CursorDefinition and CanvasManager will hide
the native browser cursor and render the custom cursor. It also may be a standard
browser CSS cursor String such as "text".
  priority     :    int
The priority to assign to the cursor. Higher priorities override lower priorities.
  returns     :    Object
A "cursor instance" object that is to be used to remove the cursor.
 
getCanvas() CanvasManager
Gets the DOM canvas reference CanvasManager is currently managing.
  returns     :    Canvas
The DOM canvas reference CanvasManager is currently managing.
 
getLocale() CanvasManager
Gets CanvasManager's current locale.
  returns     :    String
String representing CanvasManager's current locale.
 
getLocalMousePos(event, canvas) [Static] CanvasManager
Translates browser mouse event coordinates to canvas relative coordinates.
The system automatically calls this and translates raw browser events to
system events to be consumed by CanvasElements. You probably never need to call this.
  event     :    BrowserEvent
The browser mouse event.
  canvas     :    Canvas
The DOM Canvas reference to translate the mouse coordinates too.
  returns     :    Object
A point object containing {x, y}.
 
removeAlert(element) CanvasManager
Removes an alert element. If this is the last alert, the modal
element will also be removed.
  element     :    CanvasElement
The element to remove from the alert list.
  returns     :    CanvasElement
The element supplied to removeAlert() or null if invalid.
 
removeCursor(cursorInstance) CanvasManager
Removes a cursor via the cursor instance object returned by addCursor().
  cursorInstance     :    Object
The cursor instance Object returned by addCursor().
 
setCanvas(canvas) CanvasManager
Sets the canvas that CanvasManager should manage.
  canvas     :    Canvas
Reference to the DOM canvas that CanvasManager should manage.
 
setLocale(locale) CanvasManager
Sets the locale to be used when using localized strings. The actual
locale value is arbitrary, this simply dispatches an event to notify elements
that the locale has changed. Its up to implementors to store their locale strings
and update/lookup accordingly. CanvasManager defaults locale to "en-us".
  locale     :    String
The locale to change too.
 
updateNow() CanvasManager
This is an internal function and should conceivably *never* be called.
This forces a full pass of the component life cycle and is incredibly expensive.
The system calls this once per render frame with the only known exception being immediately after a canvas resize.
If you think you need to call this, you probably have a design problem.
Documentation added for unforeseen circumstances.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited