2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Label
|
2014-03-26 14:03:04 +08:00
|
|
|
-- @extend SpriteBatchNode,LabelProtocol
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-25 17:30:11 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] isClipMarginEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] enableShadow
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setDimensions
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int int
|
|
|
|
-- @param #unsigned int int
|
|
|
|
|
2014-03-11 16:38:10 +08:00
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] getString
|
2014-03-11 16:38:10 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
2014-03-11 16:38:10 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] getHeight
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] disableEffect
|
|
|
|
-- @param self
|
|
|
|
|
2014-05-07 16:30:46 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setTTFConfig
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc._ttfConfig _ttfconfig
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-21 15:01:27 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getTextColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @return color4b_table#color4b_table ret (return value: color4b_table)
|
2014-03-21 15:01:27 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getCommonLineHeight
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setWidth
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int int
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getMaxLineWidth
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextHAlignment#TextHAlignment ret (return value: cc.TextHAlignment)
|
|
|
|
|
2014-03-25 17:30:11 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setClipMarginEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setString
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] setSystemFontName
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setBMFontFilePath
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @param #cc.Vec2 vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-27 16:43:46 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getFontAtlas
|
|
|
|
-- @param self
|
|
|
|
-- @return FontAtlas#FontAtlas ret (return value: cc.FontAtlas)
|
|
|
|
|
2014-03-11 16:38:10 +08:00
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] setSystemFontSize
|
2014-03-11 16:38:10 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @param #float float
|
2014-03-11 16:38:10 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] updateContent
|
|
|
|
-- @param self
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getStringLength
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setLineBreakWithoutSpace
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getStringNumLines
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] enableOutline
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color4b_table color4b
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: setCharMap(cc.Texture2D, int, int, int)
|
|
|
|
--
|
|
|
|
-- overload function: setCharMap(string, int, int, int)
|
|
|
|
--
|
|
|
|
-- overload function: setCharMap(string)
|
|
|
|
--
|
|
|
|
-- @function [parent=#Label] setCharMap
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
2014-03-11 16:38:10 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getDimensions
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setMaxLineWidth
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int int
|
|
|
|
|
2014-04-10 11:24:38 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getSystemFontName
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
2014-03-11 16:38:10 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] getTTFConfig
|
2014-03-11 16:38:10 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @return _ttfConfig#_ttfConfig ret (return value: cc._ttfConfig)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextVAlignment#TextVAlignment ret (return value: cc.TextVAlignment)
|
|
|
|
|
2014-03-21 15:01:27 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setTextColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color4b_table color4b
|
2014-03-21 15:01:27 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setHeight
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int int
|
|
|
|
|
2014-03-19 09:56:50 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getWidth
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] enableGlow
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color4b_table color4b
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getLetter
|
|
|
|
-- @param self
|
|
|
|
-- @param #int int
|
|
|
|
-- @return Sprite#Sprite ret (return value: cc.Sprite)
|
|
|
|
|
2014-04-10 11:24:38 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getSystemFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getTextAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextHAlignment#TextHAlignment ret (return value: cc.TextHAlignment)
|
|
|
|
|
2014-03-19 09:56:50 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getBMFontFilePath
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
|
2014-03-11 16:38:10 +08:00
|
|
|
--------------------------------
|
|
|
|
-- overload function: setAlignment(cc.TextHAlignment, cc.TextVAlignment)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
2014-03-11 16:38:10 +08:00
|
|
|
-- overload function: setAlignment(cc.TextHAlignment)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Label] setAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] createWithBMFont
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
-- @param #int int
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @param #cc.Vec2 vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Label#Label ret (return value: cc.Label)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] create
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @return Label#Label ret (return value: cc.Label)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- overload function: createWithCharMap(cc.Texture2D, int, int, int)
|
|
|
|
--
|
|
|
|
-- overload function: createWithCharMap(string, int, int, int)
|
|
|
|
--
|
|
|
|
-- overload function: createWithCharMap(string)
|
|
|
|
--
|
|
|
|
-- @function [parent=#Label] createWithCharMap
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
-- @return Label#Label ret (retunr value: cc.Label)
|
|
|
|
|
2014-03-11 16:38:10 +08:00
|
|
|
--------------------------------
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @function [parent=#Label] createWithSystemFont
|
2014-03-11 16:38:10 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-04-10 11:24:38 +08:00
|
|
|
-- @param #string str
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
2014-03-11 16:38:10 +08:00
|
|
|
-- @return Label#Label ret (return value: cc.Label)
|
|
|
|
|
2014-04-02 17:58:03 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] draw
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @param #cc.Mat4 mat4
|
2014-04-02 17:58:03 +08:00
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] addChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #int int
|
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
2014-04-02 17:58:03 +08:00
|
|
|
-- @function [parent=#Label] setScaleY
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-04-02 17:58:03 +08:00
|
|
|
-- @param #float float
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setScaleX
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] isOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getScaleY
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-03-31 16:52:27 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.BlendFunc blendfunc
|
|
|
|
|
2014-05-23 11:12:39 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] visit
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
|
|
|
-- @param #cc.Mat4 mat4
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-04-02 17:58:03 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getScaleX
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] setScale
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
2014-04-01 10:09:55 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] sortAllChildren
|
|
|
|
-- @param self
|
|
|
|
|
2014-03-21 15:01:27 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] updateDisplayedOpacity
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned char char
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2014-03-28 16:20:29 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] getBoundingBox
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
2014-03-19 14:14:23 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Label] updateDisplayedColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-19 14:14:23 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|