axmol/cocos/scripting/lua-bindings/auto/api/ImageView.lua

94 lines
2.7 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module ImageView
-- @extend Widget
-- @parent_module ccui
2014-03-10 14:04:58 +08:00
--------------------------------
-- Load texture for imageview.<br>
-- param fileName file name of texture.<br>
-- param texType @see TextureResType
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] loadTexture
-- @param self
-- @param #string fileName
-- @param #int texType
2014-03-10 14:04:58 +08:00
--------------------------------
-- Sets if imageview is using scale9 renderer.<br>
-- param able true that using scale9 renderer, false otherwise.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] setScale9Enabled
-- @param self
-- @param #bool able
2014-03-10 14:04:58 +08:00
--------------------------------
-- Updates the texture rect of the ImageView in points.<br>
-- It will call setTextureRect:rotated:untrimmedSize with rotated = NO, and utrimmedSize = rect.size.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] setTextureRect
-- @param self
-- @param #rect_table rect
--------------------------------
-- Sets capinsets for imageview, if imageview is using scale9 renderer.<br>
-- param capInsets capinsets for imageview
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] setCapInsets
-- @param self
-- @param #rect_table capInsets
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] getCapInsets
-- @param self
-- @return rect_table#rect_table ret (return value: rect_table)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] isScale9Enabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @overload self, string, int
-- @overload self
-- @function [parent=#ImageView] create
2014-03-10 14:04:58 +08:00
-- @param self
-- @param #string imageFileName
-- @param #int texType
-- @return ImageView#ImageView ret (retunr value: ccui.ImageView)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] createInstance
-- @param self
-- @return Ref#Ref ret (return value: cc.Ref)
--------------------------------
--
-- @function [parent=#ImageView] getVirtualRenderer
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- Returns the "class name" of widget.
-- @function [parent=#ImageView] getDescription
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#ImageView] getVirtualRendererSize
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
--
-- @function [parent=#ImageView] ignoreContentAdaptWithSize
-- @param self
-- @param #bool ignore
2014-03-10 14:04:58 +08:00
--------------------------------
-- Default constructor
2014-03-10 14:04:58 +08:00
-- @function [parent=#ImageView] ImageView
-- @param self
return nil