2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Text
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Widget
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getStringLength
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setFontName
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setTouchScaleChangeEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getTextVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextVAlignment#TextVAlignment ret (return value: cc.TextVAlignment)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getStringValue
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setText
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getTextHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextHAlignment#TextHAlignment ret (return value: cc.TextHAlignment)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getTextAreaSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setTextVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] isTouchScaleChangeEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setTextHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getFontName
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setTextAreaSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-04 18:45:34 +08:00
|
|
|
-- overload function: create(string, string, int)
|
|
|
|
--
|
|
|
|
-- overload function: create()
|
|
|
|
--
|
|
|
|
-- @function [parent=#Text] create
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-04-04 18:45:34 +08:00
|
|
|
-- @param #string str
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #int int
|
|
|
|
-- @return Text#Text ret (retunr value: ccui.Text)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] setAnchorPoint
|
|
|
|
-- @param self
|
|
|
|
-- @param #point_table point
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getVirtualRenderer
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] getContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Text] Text
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|