summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/ccui.RichText.lua
blob: c00940fa27075e3120a5bd1aa68468c7441a1e2f (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
---@meta

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




---* brief Insert a RichElement at a given index.<br>
---* param element A RichElement type.<br>
---* param index A given index.
---@param element ccui.RichElement
---@param index int
---@return self
function RichText:insertElement (element,index) end
---*  @brief enable the outline of a-tag 
---@param enable boolean
---@param outlineColor color3b_table
---@param outlineSize int
---@return self
function RichText:setAnchorTextOutline (enable,outlineColor,outlineSize) end
---* 
---@return float
function RichText:getFontSize () end
---* brief Add a RichElement at the end of RichText.<br>
---* param element A RichElement instance.
---@param element ccui.RichElement
---@return self
function RichText:pushBackElement (element) end
---* 
---@param enable boolean
---@return self
function RichText:setAnchorTextBold (enable) end
---* 
---@return string
function RichText:getAnchorFontColor () end
---* 
---@return int
function RichText:getAnchorTextShadowBlurRadius () end
---*  @brief enable the shadow of a-tag 
---@param enable boolean
---@param shadowColor color3b_table
---@param offset size_table
---@param blurRadius int
---@return self
function RichText:setAnchorTextShadow (enable,shadowColor,offset,blurRadius) end
---* 
---@return boolean
function RichText:isAnchorTextItalicEnabled () end
---* 
---@param color string
---@return self
function RichText:setAnchorFontColor (color) end
---* 
---@param face string
---@return self
function RichText:setFontFace (face) end
---* 
---@param enable boolean
---@param glowColor color3b_table
---@return self
function RichText:setAnchorTextGlow (enable,glowColor) end
---* 
---@return int
function RichText:getHorizontalAlignment () end
---* 
---@param a int
---@return self
function RichText:setHorizontalAlignment (a) end
---* 
---@param enable boolean
---@return self
function RichText:setAnchorTextDel (enable) end
---* 
---@return color3b_table
function RichText:getAnchorTextOutlineColor3B () end
---* 
---@param color4b color4b_table
---@return string
function RichText:stringWithColor4B (color4b) end
---* 
---@param xml string
---@param defaults map_table
---@param handleOpenUrl function
---@return boolean
function RichText:initWithXML (xml,defaults,handleOpenUrl) end
---* 
---@return color3b_table
function RichText:getAnchorFontColor3B () end
---* brief Rearrange all RichElement in the RichText.<br>
---* It's usually called internally.
---@return self
function RichText:formatText () end
---* 
---@return color3b_table
function RichText:getAnchorTextGlowColor3B () end
---* 
---@param url string
---@return self
function RichText:openUrl (url) end
---* 
---@return string
function RichText:getFontFace () end
---* 
---@param color string
---@return self
function RichText:setFontColor (color) end
---* 
---@return boolean
function RichText:isAnchorTextGlowEnabled () end
---* 
---@return map_table
function RichText:getDefaults () end
---* 
---@return boolean
function RichText:isAnchorTextUnderlineEnabled () end
---* 
---@return string
function RichText:getFontColor () end
---* 
---@return boolean
function RichText:isAnchorTextShadowEnabled () end
---* 
---@return int
function RichText:getAnchorTextOutlineSize () end
---* brief Set vertical space between each RichElement.<br>
---* param space Point in float.
---@param space float
---@return self
function RichText:setVerticalSpace (space) end
---* 
---@return boolean
function RichText:isAnchorTextDelEnabled () end
---* 
---@param defaults map_table
---@return self
function RichText:setDefaults (defaults) end
---* 
---@param wrapMode int
---@return self
function RichText:setWrapMode (wrapMode) end
---* 
---@param size float
---@return self
function RichText:setFontSize (size) end
---@overload fun(int0:ccui.RichElement):self
---@overload fun(int:int):self
---@param index int
---@return self
function RichText:removeElement (index) end
---* 
---@param enable boolean
---@return self
function RichText:setAnchorTextItalic (enable) end
---* 
---@return size_table
function RichText:getAnchorTextShadowOffset () end
---* 
---@return boolean
function RichText:isAnchorTextBoldEnabled () end
---* 
---@return color3b_table
function RichText:getAnchorTextShadowColor3B () end
---* 
---@param color3b color3b_table
---@return string
function RichText:stringWithColor3B (color3b) end
---* 
---@return boolean
function RichText:isAnchorTextOutlineEnabled () end
---* 
---@return color3b_table
function RichText:getFontColor3B () end
---* 
---@return int
function RichText:getWrapMode () end
---* 
---@param enable boolean
---@return self
function RichText:setAnchorTextUnderline (enable) end
---* 
---@param color string
---@return color3b_table
function RichText:color3BWithString (color) end
---* brief Create a empty RichText.<br>
---* return RichText instance.
---@return self
function RichText:create () end
---* brief Create a RichText from an XML<br>
---* return RichText instance.
---@param xml string
---@param defaults map_table
---@param handleOpenUrl function
---@return self
function RichText:createWithXML (xml,defaults,handleOpenUrl) end
---* 
---@return boolean
function RichText:init () end
---* 
---@return string
function RichText:getDescription () end
---* 
---@param ignore boolean
---@return self
function RichText:ignoreContentAdaptWithSize (ignore) end
---* brief Default constructor.<br>
---* js ctor<br>
---* lua new
---@return self
function RichText:RichText () end