Class ccs.UIImageView
- Defined in: UIImageView.js
- Extends ccs.UIWidget
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.UIButton
|
Method Summary
Class Detail
ccs.UIImageView()
Base class for ccs.UIButton
Method Detail
-
allocates and initializes a UIImageView.
// example var uiImageView = ccs.UIImageView.create();
- Returns:
- {ccs.UIImageView}
-
{cc.Size} getContentSize()override "getContentSize" method of widget.
- Returns:
- {cc.Size}
-
{string} getDescription()Returns the "class name" of widget.
- Returns:
- {string}
-
{cc.Node} getVirtualRenderer()override "getVirtualRenderer" method of widget.
- Returns:
- {cc.Node}
-
ignoreContentAdaptWithSize(ignore)ignoreContentAdaptWithSize
- Parameters:
- {Boolean} ignore
-
{Boolean} isFlippedX()override "isFlippedX" of widget.
- Returns:
- {Boolean}
-
{Boolean} isFlippedY()override "isFlippedY" of widget.
- Returns:
- {Boolean}
-
loadTexture(fileName, texType)Load textures for button.
- Parameters:
- {String} fileName
- {ccs.TextureResType} texType
-
setAnchorPoint(pt)override "setAnchorPoint" of widget.
- Parameters:
- {cc.Point} pt
-
setCapInsets(capInsets)Sets capinsets for button, if button is using scale9 renderer.
- Parameters:
- {cc.Rect} capInsets
-
setFlippedX(flipX)Sets whether the widget should be flipped horizontally or not.
- Parameters:
- {Boolean} flipX
-
setFlippedY(flipY)override "setFlippedY" of widget.
- Parameters:
- {Boolean} flipY
-
setScale9Enabled(able)Sets if button is using scale9 renderer.
- Parameters:
- {Boolean} able
-
setTextureRect(rect)set texture rect
- Parameters:
- {cc.Rect} rect