2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module LabelTTF
|
2014-03-26 14:03:04 +08:00
|
|
|
-- @extend Node,LabelProtocol,BlendProtocol
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] enableShadow
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setDimensions
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getString
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-12 11:31:17 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setFlippedY
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setFlippedX
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setTextDefinition
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.FontDefinition fontdefinition
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setFontName
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextHAlignment#TextHAlignment ret (return value: cc.TextHAlignment)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] initWithStringAndTextDefinition
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.FontDefinition fontdefinition
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setString
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-12 11:31:17 +08:00
|
|
|
-- @function [parent=#LabelTTF] initWithString
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setFontFillColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-12 11:31:17 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] enableStroke
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @param #color3b_table color3b
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #float float
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getDimensions
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setFontSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getVerticalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @return TextVAlignment#TextVAlignment ret (return value: cc.TextVAlignment)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getTextDefinition
|
|
|
|
-- @param self
|
|
|
|
-- @return FontDefinition#FontDefinition ret (return value: cc.FontDefinition)
|
|
|
|
|
2014-03-12 11:31:17 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.BlendFunc blendfunc
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getFontName
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] setHorizontalAlignment
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] disableShadow
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] disableStroke
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-12 11:31:17 +08:00
|
|
|
-- overload function: create()
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- overload function: create(string, string, float, size_table, cc.TextHAlignment, cc.TextVAlignment)
|
|
|
|
--
|
|
|
|
-- @function [parent=#LabelTTF] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #float float
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #cc.TextHAlignment texthalignment
|
|
|
|
-- @param #cc.TextVAlignment textvalignment
|
|
|
|
-- @return LabelTTF#LabelTTF ret (retunr value: cc.LabelTTF)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] createWithFontDefinition
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #cc.FontDefinition fontdefinition
|
|
|
|
-- @return LabelTTF#LabelTTF ret (return value: cc.LabelTTF)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-03-28 16:20:29 +08:00
|
|
|
-- @function [parent=#LabelTTF] getBoundingBox
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-03-28 16:20:29 +08:00
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] getContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
2014-05-23 11:12:39 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] visit
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #mat4_table mat4
|
2014-06-05 11:01:43 +08:00
|
|
|
-- @param #unsigned int int
|
2014-05-23 11:12:39 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#LabelTTF] LabelTTF
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|