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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
---@class ccui.AbstractCheckButton :ccui.Widget
local AbstractCheckButton={ }
ccui.AbstractCheckButton=AbstractCheckButton
---*
---@return cc.ResourceData
function AbstractCheckButton:getCrossDisabledFile () end
---*
---@return cc.ResourceData
function AbstractCheckButton:getBackDisabledFile () end
---* Load background selected state texture for check button.<br>
---* param backGroundSelected The background selected state image name.<br>
---* param texType @see `Widget::TextureResType`
---@param backGroundSelected string
---@param texType int
---@return self
function AbstractCheckButton:loadTextureBackGroundSelected (backGroundSelected,texType) end
---* Load background disabled state texture for checkbox.<br>
---* param backGroundDisabled The background disabled state texture name.<br>
---* param texType @see `Widget::TextureResType`
---@param backGroundDisabled string
---@param texType int
---@return self
function AbstractCheckButton:loadTextureBackGroundDisabled (backGroundDisabled,texType) end
---*
---@return cc.ResourceData
function AbstractCheckButton:getCrossNormalFile () end
---* Change CheckBox state.<br>
---* Set to true will cause the CheckBox's state to "selected", false otherwise.<br>
---* param selected Set to true will change CheckBox to selected state, false otherwise.
---@param selected boolean
---@return self
function AbstractCheckButton:setSelected (selected) end
---*
---@return cc.ResourceData
function AbstractCheckButton:getBackPressedFile () end
---* brief Return the sprite instance of front cross when disabled<br>
---* return the sprite instance of front cross when disabled
---@return cc.Sprite
function AbstractCheckButton:getRendererFrontCrossDisabled () end
---* brief Return the sprite instance of background<br>
---* return the sprite instance of background.
---@return cc.Sprite
function AbstractCheckButton:getRendererBackground () end
---* Load cross texture for check button.<br>
---* param crossTextureName The cross texture name.<br>
---* param texType @see `Widget::TextureResType`
---@param crossTextureName string
---@param texType int
---@return self
function AbstractCheckButton:loadTextureFrontCross (crossTextureName,texType) end
---* brief Return the sprite instance of background when disabled<br>
---* return the sprite instance of background when disabled
---@return cc.Sprite
function AbstractCheckButton:getRendererBackgroundDisabled () end
---* Query whether CheckBox is selected or not.<br>
---* return true means "selected", false otherwise.
---@return boolean
function AbstractCheckButton:isSelected () end
---*
---@param backGround string
---@param backGroundSelected string
---@param cross string
---@param backGroundDisabled string
---@param frontCrossDisabled string
---@param texType int
---@return boolean
function AbstractCheckButton:init (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end
---*
---@return cc.ResourceData
function AbstractCheckButton:getBackNormalFile () end
---* Load all textures for initializing a check button.<br>
---* param background The background image name.<br>
---* param backgroundSelected The background selected image name.<br>
---* param cross The cross image name.<br>
---* param backgroundDisabled The background disabled state texture.<br>
---* param frontCrossDisabled The front cross disabled state image name.<br>
---* param texType @see `Widget::TextureResType`
---@param background string
---@param backgroundSelected string
---@param cross string
---@param backgroundDisabled string
---@param frontCrossDisabled string
---@param texType int
---@return self
function AbstractCheckButton:loadTextures (background,backgroundSelected,cross,backgroundDisabled,frontCrossDisabled,texType) end
---* brief Return a zoom scale<br>
---* return A zoom scale of Checkbox.<br>
---* since v3.3
---@return float
function AbstractCheckButton:getZoomScale () end
---* brief Return the sprite instance of front cross<br>
---* return the sprite instance of front cross
---@return cc.Sprite
function AbstractCheckButton:getRendererFrontCross () end
---* brief Return the sprite instance of background when selected<br>
---* return the sprite instance of background when selected
---@return cc.Sprite
function AbstractCheckButton:getRendererBackgroundSelected () end
---* Load background texture for check button.<br>
---* param backGround The background image name.<br>
---* param type @see `Widget::TextureResType`
---@param backGround string
---@param type int
---@return self
function AbstractCheckButton:loadTextureBackGround (backGround,type) end
---* When user pressed the CheckBox, the button will zoom to a scale.<br>
---* The final scale of the CheckBox equals (CheckBox original scale + _zoomScale)<br>
---* since v3.3
---@param scale float
---@return self
function AbstractCheckButton:setZoomScale (scale) end
---* Load frontcross disabled texture for checkbox.<br>
---* param frontCrossDisabled The front cross disabled state texture name.<br>
---* param texType @see `Widget::TextureResType`
---@param frontCrossDisabled string
---@param texType int
---@return self
function AbstractCheckButton:loadTextureFrontCrossDisabled (frontCrossDisabled,texType) end
---*
---@return cc.Node
function AbstractCheckButton:getVirtualRenderer () end
---*
---@return boolean
function AbstractCheckButton:init () end
---*
---@return size_table
function AbstractCheckButton:getVirtualRendererSize () end
|