Class ccui.ImageView
- Defined in: UIImageView.js
- Extends ccui.Widget
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccui.Button
|
Method Summary
Class Detail
ccui.ImageView()
Base class for ccui.Button
Method Detail
-
allocates and initializes a UIImageView.
// example var uiImageView = ccui.ImageView.create();
- Returns:
- {ccui.ImageView}
-
{cc.Rect} getCapInsets()Get cap insets.
- Returns:
- {cc.Rect}
-
{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} isScale9Enabled()Get button is using scale9 renderer or not.
- Returns:
- {Boolean}
-
loadTexture(fileName, texType)Load textures for button.
- Parameters:
- {String} fileName
- {ccui.Widget.LOCAL_TEXTURE|ccui.Widget.PLIST_TEXTURE} texType
-
setAnchorPoint(point, y)override "setAnchorPoint" of widget.
- Parameters:
- {cc.Point|Number} point
- The anchor point of UIImageView or The anchor point.x of UIImageView.
- {Number} y Optional
- The anchor point.y of UIImageView.
-
setCapInsets(capInsets)Sets capinsets for button, if button is using scale9 renderer.
- Parameters:
- {cc.Rect} capInsets
-
setScale9Enabled(able)Sets if button is using scale9 renderer.
- Parameters:
- {Boolean} able
-
setTextureRect(rect)set texture rect
- Parameters:
- {cc.Rect} rect