summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/ControlPotentiometer.lua
blob: 21dcac5e40971b9a96f9b3479faf31f6f04c9308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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