2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ImageView
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Widget
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module ccui
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string fileName
|
|
|
|
-- @param #int texType
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool able
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +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
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- 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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #rect_table capInsets
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +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-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ImageView] isScale9Enabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @overload self, string, int
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @function [parent=#ImageView] create
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string imageFileName
|
|
|
|
-- @param #int texType
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return ImageView#ImageView ret (return value: ccui.ImageView)
|
2014-04-04 18:45:34 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ImageView] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ImageView] getVirtualRenderer
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Returns the "class name" of widget.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ImageView] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#ImageView] getVirtualRendererSize
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ImageView] ignoreContentAdaptWithSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool ignore
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Default constructor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ImageView] ImageView
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ImageView#ImageView self (return value: ccui.ImageView)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|