diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
commit | 8fefb8f3e100976235dc83d6ae3785952d11c710 (patch) | |
tree | 459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua | |
parent | b6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff) | |
download | lua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip |
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua b/meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua new file mode 100644 index 00000000..21dcac5e --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.ControlPotentiometer.lua @@ -0,0 +1,116 @@ +---@meta + +---@class cc.ControlPotentiometer :cc.Control +local ControlPotentiometer={ } +cc.ControlPotentiometer=ControlPotentiometer + + + + +---* +---@param var vec2_table +---@return self +function ControlPotentiometer:setPreviousLocation (var) end +---* +---@param value float +---@return self +function ControlPotentiometer:setValue (value) end +---* +---@return cc.ProgressTimer +function ControlPotentiometer:getProgressTimer () end +---* +---@return float +function ControlPotentiometer:getMaximumValue () end +---* Returns the angle in degree between line1 and line2. +---@param beginLineA vec2_table +---@param endLineA vec2_table +---@param beginLineB vec2_table +---@param endLineB vec2_table +---@return float +function ControlPotentiometer:angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint (beginLineA,endLineA,beginLineB,endLineB) end +---* Factorize the event dispatch into these methods. +---@param location vec2_table +---@return self +function ControlPotentiometer:potentiometerBegan (location) end +---* +---@param maximumValue float +---@return self +function ControlPotentiometer:setMaximumValue (maximumValue) end +---* +---@return float +function ControlPotentiometer:getMinimumValue () end +---* +---@param var cc.Sprite +---@return self +function ControlPotentiometer:setThumbSprite (var) end +---* +---@return float +function ControlPotentiometer:getValue () end +---* Returns the distance between the point1 and point2. +---@param point1 vec2_table +---@param point2 vec2_table +---@return float +function ControlPotentiometer:distanceBetweenPointAndPoint (point1,point2) end +---* +---@param location vec2_table +---@return self +function ControlPotentiometer:potentiometerEnded (location) end +---* +---@return vec2_table +function ControlPotentiometer:getPreviousLocation () end +---* +---@param var cc.ProgressTimer +---@return self +function ControlPotentiometer:setProgressTimer (var) end +---* +---@param minimumValue float +---@return self +function ControlPotentiometer:setMinimumValue (minimumValue) end +---* +---@return cc.Sprite +function ControlPotentiometer:getThumbSprite () end +---* Initializes a potentiometer with a track sprite and a progress bar.<br> +---* param trackSprite Sprite, that is used as a background.<br> +---* param progressTimer ProgressTimer, that is used as a progress bar. +---@param trackSprite cc.Sprite +---@param progressTimer cc.ProgressTimer +---@param thumbSprite cc.Sprite +---@return boolean +function ControlPotentiometer:initWithTrackSprite_ProgressTimer_ThumbSprite (trackSprite,progressTimer,thumbSprite) end +---* +---@param location vec2_table +---@return self +function ControlPotentiometer:potentiometerMoved (location) end +---* Creates potentiometer with a track filename and a progress filename. +---@param backgroundFile char +---@param progressFile char +---@param thumbFile char +---@return self +function ControlPotentiometer:create (backgroundFile,progressFile,thumbFile) end +---* +---@param touch cc.Touch +---@return boolean +function ControlPotentiometer:isTouchInside (touch) end +---* +---@param enabled boolean +---@return self +function ControlPotentiometer:setEnabled (enabled) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return self +function ControlPotentiometer:onTouchMoved (pTouch,pEvent) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return self +function ControlPotentiometer:onTouchEnded (pTouch,pEvent) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return boolean +function ControlPotentiometer:onTouchBegan (pTouch,pEvent) end +---* js ctor<br> +---* lua new +---@return self +function ControlPotentiometer:ControlPotentiometer () end
\ No newline at end of file |