cui2d is a light-weight collection of JavaScript functions for creating
graphical user interfaces in an HTML5 canvas 2d context.
Examples are available in the wikibook "Canvas 2D Web Apps"
(http://en.wikibooks.org/wiki/Canvas_2D_Web_Apps).
Comments are formatted for JSDoc 3 (see http://usejsdoc.org).
The version number specifies major version, last digit of year, month and day. Quicklinks:
- globals:
- methods: cuiInit, cuiRepaint, cuiPlayTransition, cuiIsInsideRectangle, cuiFillMultiLineText
- members: cuiCurrentPage, cuiContext, cuiCanvas, cuiBackgroundFillStyle, cuiDefaultFillStyle, cuiDefaultFont, cuiDefaultTextAlign, cuiDefaultTextBaseline, cuiIgnoringEventsEnd, cuiAnimationStep, cuiAnimationsArePlaying, cuiTimeUntilHold
- cuiPage class:
- cuiConstants class:
- members: none, isDraggableWithOneFinger, isDraggableWithTwoFingers, isRotatableWithTwoFingers, isUniformlyScalableWithTwoFingers, isTransformableWithTwoFingers, isDraggableWithThreeFingers, isRotatableWithThreeFingers, isUniformlyScalableWithThreeFingers, isNonUniformlyScalableWithThreeFingers, isShearableWithThreeFingers, isDeformableWithThreeFingers, isLimitedToHorizontalDragging, isLimitedToVerticalDragging
- cuiButton class:
- methods: process, isClicked, isDoubleClicked, isHeldDown
- members: isPointerDown, isPointerInside
- cuiDraggable class:
- methods: process, isClicked, isDoubleClicked, isHeldDown
- members: translationX, translationY, isPointerDown, isPointerInside
- cuiTransformable class:
- methods: process, isClicked, isDoubleClicked, isHeldDown0, isHeldDown1
- members: translationX, translationY, rotation, scale, isPointerDown0, isPointerDown1, isPointerInside0, isProcessingOuterEvents
- cuiAnimation class:
- methods: play, animateValues, isPlaying, stopLooping
- cuiKeyframe class: