Class lime.RoundedRect
Extends
lime.Sprite.
Defined in: roundedrect.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Rounded rectangle
|
| Field Attributes | Field Name and Description |
|---|---|
|
Common name for RoundedRect objects
|
|
- Fields borrowed from class lime.Sprite:
- fill_, getCanvasContextName_
- Fields borrowed from class lime.Node:
- customEvent_, eventHandlers_, inTree_, transitionsAdd_, transitionsClear_
| Method Attributes | Method Name and Description |
|---|---|
|
Return corner radius
|
|
|
Return true if radius is in percentage units
|
|
|
setRadius(value, opt_percentage)
Sets the corner radius for object
|
- Methods borrowed from class lime.Sprite:
- getFill, getStroke, setFill, setStroke
- Methods borrowed from class lime.Node:
- addDependency, addEventListener, addTransition, appendChild, calcRelativeQuality, clearTransition, createDomElement, getAnchorPoint, getAutoResize, getBoundingBox, getChildAt, getChildIndex, getDeepestDomElement, getDeepestParentWithDom, getDirector, getDirty, getFrame, getHidden, getMask, getNumberOfChildren, getOpacity, getParent, getParentStack_, getPosition, getQuality, getRelativeQuality, getRotation, getScale, getScene, getSize, hitTest, localToNode, localToParent, localToScreen, measureContents, needsDomElement, parentToLocal, releaseDependencies, removeAllChildren, removeChild, removeChildAt, removeDependency, removeDomElement, removeEventListener, runAction, screenToLocal, setAnchorPoint, setAutoResize, setChildIndex, setDirty, setHidden, setMask, setOpacity, setPosition, setQuality, setRenderer, setRotation, setScale, setSize, setupDependencies, update, updateDomElement, updateLayout, wasAddedToTree, wasRemovedFromTree
Field Detail
id
Common name for RoundedRect objects
supportedRenderers
Method Detail
{number}
getRadius()
Return corner radius
- Returns:
- {number} Radius.
{boolean}
getUnitPercentage()
Return true if radius is in percentage units
- Returns:
- {boolean} Unit is percentage?
setRadius(value, opt_percentage)
Sets the corner radius for object
- Parameters:
- {number} value
- Radius.
- {boolean=} opt_percentage
- use percentage units.