2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module RichText
|
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-13 14:51:53 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Insert a RichElement at a given index.<br>
|
|
|
|
-- param element A RichElement type.<br>
|
|
|
|
-- param index A given index.
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] insertElement
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccui.RichElement element
|
|
|
|
-- @param #int index
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Add a RichElement at the end of RichText.<br>
|
|
|
|
-- param element A RichElement instance.
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] pushBackElement
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccui.RichElement element
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Set vertical space between each RichElement.<br>
|
|
|
|
-- param space Point in float.
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] setVerticalSpace
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float space
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Rearrange all RichElement in the RichText.<br>
|
|
|
|
-- It's usually called internally.
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#RichText] formatText
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, ccui.RichElement
|
|
|
|
-- @overload self, int
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] removeElement
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int index
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- brief Create a empty RichText.<br>
|
|
|
|
-- return RichText instance.
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] create
|
|
|
|
-- @param self
|
|
|
|
-- @return RichText#RichText ret (return value: ccui.RichText)
|
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#RichText] setAnchorPoint
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table pt
|
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
|
|
|
|
2014-03-25 16:13:42 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-25 16:13:42 +08:00
|
|
|
-- @function [parent=#RichText] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-04-18 10:51:14 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-04-18 10:51:14 +08:00
|
|
|
-- @function [parent=#RichText] getVirtualRendererSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#RichText] ignoreContentAdaptWithSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool ignore
|
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
|
|
|
|
2014-03-13 14:51:53 +08:00
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- brief Default constructor.<br>
|
|
|
|
-- js ctor<br>
|
|
|
|
-- lua new
|
2014-03-13 14:51:53 +08:00
|
|
|
-- @function [parent=#RichText] RichText
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return RichText#RichText self (return value: ccui.RichText)
|
2014-03-13 14:51:53 +08:00
|
|
|
|
|
|
|
return nil
|