summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua
blob: 9f2cfbf409e7bc01c765ed64ca8ac84d2fc20fa3 (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
---@meta

---@class ccui.LoadingBar :ccui.Widget
local LoadingBar={ }
ccui.LoadingBar=LoadingBar




---* Changes the progress value of LoadingBar.<br>
---* param percent   Percent value from 1 to 100.
---@param percent float
---@return self
function LoadingBar:setPercent (percent) end
---* Load texture for LoadingBar.<br>
---* param texture   File name of texture.<br>
---* param texType   Texture resource type,@see TextureResType.
---@param texture string
---@param texType int
---@return self
function LoadingBar:loadTexture (texture,texType) end
---* Change the progress direction of LoadingBar.<br>
---* see Direction  `LEFT` means progress left to right, `RIGHT` otherwise.<br>
---* param direction Direction
---@param direction int
---@return self
function LoadingBar:setDirection (direction) end
---* 
---@return cc.ResourceData
function LoadingBar:getRenderFile () end
---* Enable scale9 renderer.<br>
---* param enabled Set to true will use scale9 renderer, false otherwise.
---@param enabled boolean
---@return self
function LoadingBar:setScale9Enabled (enabled) end
---* Set capInsets for LoadingBar.<br>
---* This setting only take effect when enable scale9 renderer.<br>
---* param capInsets CapInset in `Rect`.
---@param capInsets rect_table
---@return self
function LoadingBar:setCapInsets (capInsets) end
---* Get the progress direction of LoadingBar.<br>
---* see Direction  `LEFT` means progress left to right, `RIGHT` otherwise.<br>
---* return LoadingBar progress direction.
---@return int
function LoadingBar:getDirection () end
---* brief Query LoadingBar's capInsets.<br>
---* return CapInsets of LoadingBar.
---@return rect_table
function LoadingBar:getCapInsets () end
---* brief Query whether LoadingBar is using scale9 renderer or not.<br>
---* return Whether LoadingBar uses scale9 renderer or not.
---@return boolean
function LoadingBar:isScale9Enabled () end
---* Get the progress value of LoadingBar.<br>
---* return Progress value from 1 to 100.
---@return float
function LoadingBar:getPercent () end
---@overload fun(string:string,int1:float):self
---@overload fun():self
---@overload fun(string:string,int:int,float:float):self
---@param textureName string
---@param texType int
---@param percentage float
---@return self
function LoadingBar:create (textureName,texType,percentage) end
---* 
---@return cc.Ref
function LoadingBar:createInstance () end
---* 
---@return cc.Node
function LoadingBar:getVirtualRenderer () end
---* 
---@return string
function LoadingBar:getDescription () end
---* 
---@return size_table
function LoadingBar:getVirtualRendererSize () end
---* 
---@param ignore boolean
---@return self
function LoadingBar:ignoreContentAdaptWithSize (ignore) end
---* Default constructor.<br>
---* js ctor<br>
---* lua new
---@return self
function LoadingBar:LoadingBar () end