From 04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 13 Aug 2022 01:23:32 +0800 Subject: fix #1431 --- .../Cocos4.0/library/cc/LayerRadialGradient.lua | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua (limited to 'meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua') diff --git a/meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua b/meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua new file mode 100644 index 00000000..0292f71a --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua @@ -0,0 +1,103 @@ +---@meta + +---@class cc.LayerRadialGradient :cc.Layer +local LayerRadialGradient={ } +cc.LayerRadialGradient=LayerRadialGradient + + + + +---* +---@return color4b_table +function LayerRadialGradient:getStartColor () end +---* +---@return cc.BlendFunc +function LayerRadialGradient:getBlendFunc () end +---* +---@return color3b_table +function LayerRadialGradient:getStartColor3B () end +---* +---@return unsigned_char +function LayerRadialGradient:getStartOpacity () end +---* +---@param center vec2_table +---@return self +function LayerRadialGradient:setCenter (center) end +---* +---@return color4b_table +function LayerRadialGradient:getEndColor () end +---* +---@param opacity unsigned_char +---@return self +function LayerRadialGradient:setStartOpacity (opacity) end +---* +---@return vec2_table +function LayerRadialGradient:getCenter () end +---* +---@param opacity unsigned_char +---@return self +function LayerRadialGradient:setEndOpacity (opacity) end +---* +---@param expand float +---@return self +function LayerRadialGradient:setExpand (expand) end +---* +---@return unsigned_char +function LayerRadialGradient:getEndOpacity () end +---* +---@param startColor color4b_table +---@param endColor color4b_table +---@param radius float +---@param center vec2_table +---@param expand float +---@return boolean +function LayerRadialGradient:initWithColor (startColor,endColor,radius,center,expand) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function LayerRadialGradient:setEndColor (color) end +---* +---@return color3b_table +function LayerRadialGradient:getEndColor3B () end +---* +---@param radius float +---@return self +function LayerRadialGradient:setRadius (radius) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function LayerRadialGradient:setStartColor (color) end +---* +---@return float +function LayerRadialGradient:getExpand () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function LayerRadialGradient:setBlendFunc (blendFunc) end +---* +---@return float +function LayerRadialGradient:getRadius () end +---@overload fun():self +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,float:float,vec2_table:vec2_table,float:float):self +---@param startColor color4b_table +---@param endColor color4b_table +---@param radius float +---@param center vec2_table +---@param expand float +---@return self +function LayerRadialGradient:create (startColor,endColor,radius,center,expand) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function LayerRadialGradient:draw (renderer,transform,flags) end +---* +---@param size size_table +---@return self +function LayerRadialGradient:setContentSize (size) end +---* +---@return self +function LayerRadialGradient:LayerRadialGradient () end \ No newline at end of file -- cgit v1.2.3