diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
commit | 04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch) | |
tree | c0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua | |
parent | c30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff) | |
download | lua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip |
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua b/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua new file mode 100644 index 00000000..9f9170ba --- /dev/null +++ b/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua @@ -0,0 +1,68 @@ +---@meta + +---@class ccui.TextAtlas :ccui.Widget +local TextAtlas={ } +ccui.TextAtlas=TextAtlas + + + + +---* Gets the string length of the label.<br> +---* Note: This length will be larger than the raw string length,<br> +---* if you want to get the raw string length, you should call this->getString().size() instead<br> +---* return string length. +---@return int +function TextAtlas:getStringLength () end +---* Get string value for labelatlas.<br> +---* return The string value of TextAtlas. +---@return string +function TextAtlas:getString () end +---* Set string value for labelatlas.<br> +---* param value A given string needs to be displayed. +---@param value string +---@return self +function TextAtlas:setString (value) end +---* +---@return cc.ResourceData +function TextAtlas:getRenderFile () end +---* Initializes the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas.<br> +---* param stringValue A given string needs to be displayed.<br> +---* param charMapFile A given char map file name.<br> +---* param itemWidth The element width.<br> +---* param itemHeight The element height.<br> +---* param startCharMap The starting char of the atlas. +---@param stringValue string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap string +---@return self +function TextAtlas:setProperty (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end +---* js NA +---@return self +function TextAtlas:adaptRenderers () end +---@overload fun(string:string,string:string,int:int,int:int,string:string):self +---@overload fun():self +---@param stringValue string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap string +---@return self +function TextAtlas:create (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end +---* +---@return cc.Ref +function TextAtlas:createInstance () end +---* +---@return cc.Node +function TextAtlas:getVirtualRenderer () end +---* Returns the "class name" of widget. +---@return string +function TextAtlas:getDescription () end +---* +---@return size_table +function TextAtlas:getVirtualRendererSize () end +---* Default constructor.<br> +---* lua new +---@return self +function TextAtlas:TextAtlas () end
\ No newline at end of file |