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

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




---* set header width, affect all tab<br>
---* param headerWidth each tab header's width
---@param headerWidth float
---@return self
function TabControl:setHeaderWidth (headerWidth) end
---* remove the tab from this TabControl<br>
---* param index The index of tab
---@param index int
---@return self
function TabControl:removeTab (index) end
---* get the count of tabs in this TabControl<br>
---* return the count of tabs
---@return unsigned_int
function TabControl:getTabCount () end
---* 
---@return int
function TabControl:getHeaderDockPlace () end
---* get current selected tab's index<br>
---* return the current selected tab index
---@return int
function TabControl:getSelectedTabIndex () end
---* insert tab, and init the position of header and container<br>
---* param index The index tab should be<br>
---* param header The header Button, will be a protected child in TabControl<br>
---* param container The container, will be a protected child in TabControl
---@param index int
---@param header ccui.TabHeader
---@param container ccui.Layout
---@return self
function TabControl:insertTab (index,header,container) end
---* ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br>
---* param ignore is `true`, the header's texture scale with _headerWidth and _headerHeight<br>
---* ignore is `false`, use the texture's size, do not scale them
---@param ignore boolean
---@return self
function TabControl:ignoreHeadersTextureSize (ignore) end
---* get tab header's width<br>
---* return header's width
---@return float
function TabControl:getHeaderWidth () end
---* the header dock place of header in TabControl<br>
---* param dockPlace The strip place
---@param dockPlace int
---@return self
function TabControl:setHeaderDockPlace (dockPlace) end
---@overload fun(int0:ccui.TabHeader):self
---@overload fun(int:int):self
---@param index int
---@return self
function TabControl:setSelectTab (index) end
---* get TabHeader<br>
---* param index The index of tab
---@param index int
---@return ccui.TabHeader
function TabControl:getTabHeader (index) end
---* get whether ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br>
---* return whether ignore the textures' size in header
---@return boolean
function TabControl:isIgnoreHeadersTextureSize () end
---* Add a callback function which would be called when selected tab changed<br>
---* param callback A std::function with type @see `ccTabControlCallback`
---@param callback function
---@return self
function TabControl:setTabChangedEventListener (callback) end
---* set the delta zoom of selected tab<br>
---* param zoom The delta zoom
---@param zoom float
---@return self
function TabControl:setHeaderSelectedZoom (zoom) end
---* set header height, affect all tab<br>
---* param headerHeight each tab header's height
---@param headerHeight float
---@return self
function TabControl:setHeaderHeight (headerHeight) end
---* get the index of tabCell in TabView, return -1 if not exists in.<br>
---* return the index of tabCell in TabView, `-1` means not exists in.
---@param tabCell ccui.TabHeader
---@return int
function TabControl:indexOfTabHeader (tabCell) end
---* get Container<br>
---* param index The index of tab
---@param index int
---@return ccui.Layout
function TabControl:getTabContainer (index) end
---* get the delta zoom of selected tab<br>
---* return zoom, the delta zoom
---@return float
function TabControl:getHeaderSelectedZoom () end
---* get tab header's height<br>
---* return header's height
---@return int
function TabControl:getHeaderHeight () end
---* 
---@return self
function TabControl:create () end