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

---@class ccui.TabHeader :ccui.AbstractCheckButton
local TabHeader={ }
ccui.TabHeader=TabHeader




---* get the index this header in the TabControl<br>
---* return -1 means not in any TabControl
---@return int
function TabHeader:getIndexInTabControl () end
---* get the TabHeader text<br>
---* return he TabHeader text
---@return string
function TabHeader:getTitleText () end
---* Change the font size of TabHeader text<br>
---* param size TabHeader text's font size in float.
---@param size float
---@return self
function TabHeader:setTitleFontSize (size) end
---* Change the font name of TabHeader text<br>
---* param fontName a font name string.
---@param fontName string
---@return self
function TabHeader:setTitleFontName (fontName) end
---* get the font size of TabHeader text<br>
---* return TabHeader text's font size in float.
---@return float
function TabHeader:getTitleFontSize () end
---* get the font name of TabHeader text<br>
---* return font name in std::string
---@return string
function TabHeader:getTitleFontName () end
---* get the TabHeader text color.<br>
---* return Color4B of TabHeader text.
---@return color4b_table
function TabHeader:getTitleColor () end
---* Return the inner Label renderer of TabHeader.<br>
---* return The TabHeader Label.
---@return cc.Label
function TabHeader:getTitleRenderer () end
---* Change the content of Header's text.<br>
---* param text The Header's text.
---@param text string
---@return self
function TabHeader:setTitleText (text) end
---* Change the color of he TabHeader text<br>
---* param color The he TabHeader text's color in Color4B.
---@param color color4b_table
---@return self
function TabHeader:setTitleColor (color) end
---@overload fun(string:string,string:string,string:string,string3:int):self
---@overload fun():self
---@overload fun(string:string,string:string,string:string,string:string,string:string,string:string,int:int):self
---@param titleStr string
---@param backGround string
---@param backGroundSelected string
---@param cross string
---@param backGroundDisabled string
---@param frontCrossDisabled string
---@param texType int
---@return self
function TabHeader:create (titleStr,backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end