diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
commit | 52097b6ee7cc8f5a770eb851902560b5b8592218 (patch) | |
tree | 6dcbb53ac0104912e950747a37aac6b25039e862 /meta/3rd/Cocos4.0/ccui.RichText.lua | |
parent | 6839cd530c53387df4d5db61f0cb2e5ed1a87298 (diff) | |
download | lua-language-server-52097b6ee7cc8f5a770eb851902560b5b8592218.zip |
add meta/3rd with acknowledgement
Diffstat (limited to 'meta/3rd/Cocos4.0/ccui.RichText.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/ccui.RichText.lua | 210 |
1 files changed, 210 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/ccui.RichText.lua b/meta/3rd/Cocos4.0/ccui.RichText.lua new file mode 100644 index 00000000..3908b431 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichText.lua @@ -0,0 +1,210 @@ + +---@class ccui.RichText :ccui.Widget +local RichText={ } +ccui.RichText=RichText + + + + +---* brief Insert a RichElement at a given index.<br> +---* param element A RichElement type.<br> +---* param index A given index. +---@param element ccui.RichElement +---@param index int +---@return self +function RichText:insertElement (element,index) end +---* @brief enable the outline of a-tag +---@param enable boolean +---@param outlineColor color3b_table +---@param outlineSize int +---@return self +function RichText:setAnchorTextOutline (enable,outlineColor,outlineSize) end +---* +---@return float +function RichText:getFontSize () end +---* brief Add a RichElement at the end of RichText.<br> +---* param element A RichElement instance. +---@param element ccui.RichElement +---@return self +function RichText:pushBackElement (element) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextBold (enable) end +---* +---@return string +function RichText:getAnchorFontColor () end +---* +---@return int +function RichText:getAnchorTextShadowBlurRadius () end +---* @brief enable the shadow of a-tag +---@param enable boolean +---@param shadowColor color3b_table +---@param offset size_table +---@param blurRadius int +---@return self +function RichText:setAnchorTextShadow (enable,shadowColor,offset,blurRadius) end +---* +---@return boolean +function RichText:isAnchorTextItalicEnabled () end +---* +---@param color string +---@return self +function RichText:setAnchorFontColor (color) end +---* +---@param face string +---@return self +function RichText:setFontFace (face) end +---* +---@param enable boolean +---@param glowColor color3b_table +---@return self +function RichText:setAnchorTextGlow (enable,glowColor) end +---* +---@return int +function RichText:getHorizontalAlignment () end +---* +---@param a int +---@return self +function RichText:setHorizontalAlignment (a) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextDel (enable) end +---* +---@return color3b_table +function RichText:getAnchorTextOutlineColor3B () end +---* +---@param color4b color4b_table +---@return string +function RichText:stringWithColor4B (color4b) end +---* +---@param xml string +---@param defaults map_table +---@param handleOpenUrl function +---@return boolean +function RichText:initWithXML (xml,defaults,handleOpenUrl) end +---* +---@return color3b_table +function RichText:getAnchorFontColor3B () end +---* brief Rearrange all RichElement in the RichText.<br> +---* It's usually called internally. +---@return self +function RichText:formatText () end +---* +---@return color3b_table +function RichText:getAnchorTextGlowColor3B () end +---* +---@param url string +---@return self +function RichText:openUrl (url) end +---* +---@return string +function RichText:getFontFace () end +---* +---@param color string +---@return self +function RichText:setFontColor (color) end +---* +---@return boolean +function RichText:isAnchorTextGlowEnabled () end +---* +---@return map_table +function RichText:getDefaults () end +---* +---@return boolean +function RichText:isAnchorTextUnderlineEnabled () end +---* +---@return string +function RichText:getFontColor () end +---* +---@return boolean +function RichText:isAnchorTextShadowEnabled () end +---* +---@return int +function RichText:getAnchorTextOutlineSize () end +---* brief Set vertical space between each RichElement.<br> +---* param space Point in float. +---@param space float +---@return self +function RichText:setVerticalSpace (space) end +---* +---@return boolean +function RichText:isAnchorTextDelEnabled () end +---* +---@param defaults map_table +---@return self +function RichText:setDefaults (defaults) end +---* +---@param wrapMode int +---@return self +function RichText:setWrapMode (wrapMode) end +---* +---@param size float +---@return self +function RichText:setFontSize (size) end +---@overload fun(int0:ccui.RichElement):self +---@overload fun(int:int):self +---@param index int +---@return self +function RichText:removeElement (index) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextItalic (enable) end +---* +---@return size_table +function RichText:getAnchorTextShadowOffset () end +---* +---@return boolean +function RichText:isAnchorTextBoldEnabled () end +---* +---@return color3b_table +function RichText:getAnchorTextShadowColor3B () end +---* +---@param color3b color3b_table +---@return string +function RichText:stringWithColor3B (color3b) end +---* +---@return boolean +function RichText:isAnchorTextOutlineEnabled () end +---* +---@return color3b_table +function RichText:getFontColor3B () end +---* +---@return int +function RichText:getWrapMode () end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextUnderline (enable) end +---* +---@param color string +---@return color3b_table +function RichText:color3BWithString (color) end +---* brief Create a empty RichText.<br> +---* return RichText instance. +---@return self +function RichText:create () end +---* brief Create a RichText from an XML<br> +---* return RichText instance. +---@param xml string +---@param defaults map_table +---@param handleOpenUrl function +---@return self +function RichText:createWithXML (xml,defaults,handleOpenUrl) end +---* +---@return boolean +function RichText:init () end +---* +---@return string +function RichText:getDescription () end +---* +---@param ignore boolean +---@return self +function RichText:ignoreContentAdaptWithSize (ignore) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichText:RichText () end
\ No newline at end of file |