2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module RichElementImage
|
|
|
|
-- @extend RichElement
|
|
|
|
-- @parent_module ccui
|
|
|
|
|
2016-01-20 18:21:41 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#RichElementImage] setHeight
|
|
|
|
-- @param self
|
|
|
|
-- @param #int height
|
|
|
|
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Initialize a RichElementImage with various arguments.<br>
|
|
|
|
-- param tag A integer tag value.<br>
|
|
|
|
-- param color A color in Color3B.<br>
|
|
|
|
-- param opacity A opacity in GLubyte.<br>
|
|
|
|
-- param filePath A image file name.<br>
|
2016-04-21 15:07:41 +08:00
|
|
|
-- param url uniform resource locator<br>
|
2017-07-26 17:03:19 +08:00
|
|
|
-- param texType texture type, may be a valid file path, or a sprite frame name<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- return True if initialize success, false otherwise.
|
|
|
|
-- @function [parent=#RichElementImage] init
|
|
|
|
-- @param self
|
|
|
|
-- @param #int tag
|
|
|
|
-- @param #color3b_table color
|
|
|
|
-- @param #unsigned char opacity
|
|
|
|
-- @param #string filePath
|
2016-04-21 15:07:41 +08:00
|
|
|
-- @param #string url
|
2017-07-26 17:03:19 +08:00
|
|
|
-- @param #int texType
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2016-01-20 18:21:41 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#RichElementImage] setWidth
|
|
|
|
-- @param self
|
|
|
|
-- @param #int width
|
|
|
|
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
|
|
|
|
|
2016-04-21 15:07:41 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#RichElementImage] setUrl
|
|
|
|
-- @param self
|
|
|
|
-- @param #string url
|
|
|
|
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Create a RichElementImage with various arguments.<br>
|
|
|
|
-- param tag A integer tag value.<br>
|
|
|
|
-- param color A color in Color3B.<br>
|
|
|
|
-- param opacity A opacity in GLubyte.<br>
|
|
|
|
-- param filePath A image file name.<br>
|
2016-04-21 15:07:41 +08:00
|
|
|
-- param url uniform resource locator<br>
|
2017-07-26 17:03:19 +08:00
|
|
|
-- param texType texture type, may be a valid file path, or a sprite frame name<br>
|
2015-09-29 15:45:48 +08:00
|
|
|
-- return A RichElementImage instance.
|
|
|
|
-- @function [parent=#RichElementImage] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #int tag
|
|
|
|
-- @param #color3b_table color
|
|
|
|
-- @param #unsigned char opacity
|
|
|
|
-- @param #string filePath
|
2016-04-21 15:07:41 +08:00
|
|
|
-- @param #string url
|
2017-07-26 17:03:19 +08:00
|
|
|
-- @param #int texType
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return RichElementImage#RichElementImage ret (return value: ccui.RichElementImage)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Default constructor.<br>
|
|
|
|
-- js ctor<br>
|
|
|
|
-- lua new
|
|
|
|
-- @function [parent=#RichElementImage] RichElementImage
|
|
|
|
-- @param self
|
|
|
|
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
|
|
|
|
|
|
|
|
return nil
|