@triniwiz/nativescript-masonkit 1.0.0-beta.96 → 1.0.0-beta.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOCS.md +41 -23
- package/README.md +15 -0
- package/angular/fesm2022/triniwiz-nativescript-masonkit-angular.mjs +30 -1
- package/angular/fesm2022/triniwiz-nativescript-masonkit-angular.mjs.map +1 -1
- package/common.js +23 -131
- package/common.js.map +1 -1
- package/framework-registry.d.ts +50 -0
- package/framework-registry.js +176 -0
- package/framework-registry.js.map +1 -0
- package/index.android.d.ts +1 -0
- package/index.android.js +1 -0
- package/index.android.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.ios.d.ts +1 -0
- package/index.ios.js +1 -0
- package/index.ios.js.map +1 -1
- package/index.windows.d.ts +1 -0
- package/index.windows.js +1 -0
- package/index.windows.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +5 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +5 -2
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +36460 -27573
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7790 -7739
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +5 -2039
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +36460 -27573
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +36460 -27573
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -80
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7785 -7734
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +5 -2
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +36460 -27573
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7286 -7233
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +5 -2
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +36460 -27573
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +204 -201
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -14
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7286 -7233
- package/properties.js +1 -1
- package/properties.js.map +1 -1
- package/references.d.ts +5 -0
- package/style.d.ts +4 -4
- package/style.js +18 -3
- package/style.js.map +1 -1
- package/text-runs.d.ts +23 -0
- package/text-runs.js +65 -0
- package/text-runs.js.map +1 -0
- package/typings/android.d.ts +7327 -0
- package/typings/objc!Mason.d.ts +3963 -0
- package/typings/objc!ObjectiveC.d.ts +1640 -0
- package/typings/windows.d.ts +330 -0
- package/utils/index.android.d.ts +5 -2
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.d.ts +5 -2
- package/utils/index.ios.js.map +1 -1
- package/utils/index.windows.d.ts +5 -2
- package/utils/index.windows.js +5 -2
- package/utils/index.windows.js.map +1 -1
- package/vue/README.md +66 -0
- package/vue/index.d.ts +4 -0
- package/vue/index.d.ts.map +1 -0
- package/vue/index.js +3 -0
- package/vue/index.js.map +1 -0
- package/vue/package.json +39 -0
- package/vue/src/element-registry.d.ts +18 -0
- package/vue/src/element-registry.d.ts.map +1 -0
- package/vue/src/element-registry.js +56 -0
- package/vue/src/element-registry.js.map +1 -0
- package/vue/src/mason-meta.d.ts +7 -0
- package/vue/src/mason-meta.d.ts.map +1 -0
- package/vue/src/mason-meta.js +91 -0
- package/vue/src/mason-meta.js.map +1 -0
- package/web.js +11 -1
- package/web.js.map +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +0 -8201
|
@@ -0,0 +1,3963 @@
|
|
|
1
|
+
|
|
2
|
+
declare const enum AvailableSpace_Tag {
|
|
3
|
+
|
|
4
|
+
Definite = 0,
|
|
5
|
+
|
|
6
|
+
MinContent = 1,
|
|
7
|
+
|
|
8
|
+
MaxContent = 2
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class BackgroundCALayer extends CALayer {
|
|
12
|
+
|
|
13
|
+
static alloc(): BackgroundCALayer; // inherited from NSObject
|
|
14
|
+
|
|
15
|
+
static layer(): BackgroundCALayer; // inherited from CALayer
|
|
16
|
+
|
|
17
|
+
static new(): BackgroundCALayer; // inherited from NSObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface CMasonBuffer {
|
|
21
|
+
data: interop.Pointer | interop.Reference<any>;
|
|
22
|
+
size: number;
|
|
23
|
+
}
|
|
24
|
+
declare var CMasonBuffer: interop.StructType<CMasonBuffer>;
|
|
25
|
+
|
|
26
|
+
interface CMasonInlineChildSegment {
|
|
27
|
+
node: interop.Pointer | interop.Reference<any>;
|
|
28
|
+
descent: number;
|
|
29
|
+
}
|
|
30
|
+
declare var CMasonInlineChildSegment: interop.StructType<CMasonInlineChildSegment>;
|
|
31
|
+
|
|
32
|
+
interface CMasonInlineTextSegment {
|
|
33
|
+
width: number;
|
|
34
|
+
ascent: number;
|
|
35
|
+
descent: number;
|
|
36
|
+
flags: number;
|
|
37
|
+
}
|
|
38
|
+
declare var CMasonInlineTextSegment: interop.StructType<CMasonInlineTextSegment>;
|
|
39
|
+
|
|
40
|
+
interface CMasonMinMax {
|
|
41
|
+
min_type: number;
|
|
42
|
+
min_value: number;
|
|
43
|
+
max_type: number;
|
|
44
|
+
max_value: number;
|
|
45
|
+
}
|
|
46
|
+
declare var CMasonMinMax: interop.StructType<CMasonMinMax>;
|
|
47
|
+
|
|
48
|
+
declare const enum CMasonSegment_Tag {
|
|
49
|
+
|
|
50
|
+
Text = 0,
|
|
51
|
+
|
|
52
|
+
InlineChild = 1,
|
|
53
|
+
|
|
54
|
+
LineBreak = 2
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class GridPlacementCompat extends NSObject {
|
|
58
|
+
|
|
59
|
+
static alloc(): GridPlacementCompat; // inherited from NSObject
|
|
60
|
+
|
|
61
|
+
static new(): GridPlacementCompat; // inherited from NSObject
|
|
62
|
+
|
|
63
|
+
readonly cssValue: string;
|
|
64
|
+
|
|
65
|
+
readonly jsonValue: string;
|
|
66
|
+
|
|
67
|
+
readonly type: MasonGridPlacementCompatType;
|
|
68
|
+
|
|
69
|
+
readonly value: number;
|
|
70
|
+
|
|
71
|
+
static readonly Auto: GridPlacementCompat;
|
|
72
|
+
|
|
73
|
+
constructor(o: { line: number; });
|
|
74
|
+
|
|
75
|
+
constructor(o: { span: number; });
|
|
76
|
+
|
|
77
|
+
initWithLine(line: number): this;
|
|
78
|
+
|
|
79
|
+
initWithSpan(span: number): this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class LineGridPlacementCompat extends NSObject {
|
|
83
|
+
|
|
84
|
+
static alloc(): LineGridPlacementCompat; // inherited from NSObject
|
|
85
|
+
|
|
86
|
+
static new(): LineGridPlacementCompat; // inherited from NSObject
|
|
87
|
+
|
|
88
|
+
readonly end: GridPlacementCompat;
|
|
89
|
+
|
|
90
|
+
readonly start: GridPlacementCompat;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare const enum MasonAlign {
|
|
94
|
+
|
|
95
|
+
Auto = 0,
|
|
96
|
+
|
|
97
|
+
Left = 1,
|
|
98
|
+
|
|
99
|
+
Right = 2,
|
|
100
|
+
|
|
101
|
+
Center = 3
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare const enum MasonAlignContent {
|
|
105
|
+
|
|
106
|
+
Normal = -1,
|
|
107
|
+
|
|
108
|
+
Start = 0,
|
|
109
|
+
|
|
110
|
+
End = 1,
|
|
111
|
+
|
|
112
|
+
Center = 2,
|
|
113
|
+
|
|
114
|
+
Stretch = 3,
|
|
115
|
+
|
|
116
|
+
SpaceBetween = 4,
|
|
117
|
+
|
|
118
|
+
SpaceAround = 5,
|
|
119
|
+
|
|
120
|
+
SpaceEvenly = 6,
|
|
121
|
+
|
|
122
|
+
FlexStart = 7,
|
|
123
|
+
|
|
124
|
+
FlexEnd = 8
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare const enum MasonAlignItems {
|
|
128
|
+
|
|
129
|
+
Normal = -1,
|
|
130
|
+
|
|
131
|
+
Start = 0,
|
|
132
|
+
|
|
133
|
+
End = 1,
|
|
134
|
+
|
|
135
|
+
Center = 2,
|
|
136
|
+
|
|
137
|
+
Baseline = 3,
|
|
138
|
+
|
|
139
|
+
Stretch = 4,
|
|
140
|
+
|
|
141
|
+
FlexStart = 5,
|
|
142
|
+
|
|
143
|
+
FlexEnd = 6
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare const enum MasonAlignSelf {
|
|
147
|
+
|
|
148
|
+
Normal = -1,
|
|
149
|
+
|
|
150
|
+
Start = 0,
|
|
151
|
+
|
|
152
|
+
End = 1,
|
|
153
|
+
|
|
154
|
+
Center = 2,
|
|
155
|
+
|
|
156
|
+
Baseline = 3,
|
|
157
|
+
|
|
158
|
+
Stretch = 4,
|
|
159
|
+
|
|
160
|
+
FlexStart = 5,
|
|
161
|
+
|
|
162
|
+
FlexEnd = 6
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare const enum MasonBoxSizing {
|
|
166
|
+
|
|
167
|
+
BorderBox = 0,
|
|
168
|
+
|
|
169
|
+
ContentBox = 1
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare class MasonBr extends NSObject implements MasonElementObjc {
|
|
173
|
+
|
|
174
|
+
static alloc(): MasonBr; // inherited from NSObject
|
|
175
|
+
|
|
176
|
+
static new(): MasonBr; // inherited from NSObject
|
|
177
|
+
|
|
178
|
+
readonly mason: NSCMason;
|
|
179
|
+
|
|
180
|
+
node: MasonNode;
|
|
181
|
+
|
|
182
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
183
|
+
|
|
184
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
185
|
+
|
|
186
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
187
|
+
|
|
188
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
189
|
+
|
|
190
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
191
|
+
|
|
192
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
193
|
+
|
|
194
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
195
|
+
|
|
196
|
+
readonly // inherited from NSObjectProtocol
|
|
197
|
+
|
|
198
|
+
class(): typeof NSObject;
|
|
199
|
+
|
|
200
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
201
|
+
|
|
202
|
+
isEqual(object: any): boolean;
|
|
203
|
+
|
|
204
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
205
|
+
|
|
206
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
207
|
+
|
|
208
|
+
performSelector(aSelector: string): any;
|
|
209
|
+
|
|
210
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
211
|
+
|
|
212
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
213
|
+
|
|
214
|
+
respondsToSelector(aSelector: string): boolean;
|
|
215
|
+
|
|
216
|
+
retainCount(): number;
|
|
217
|
+
|
|
218
|
+
self(): this;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare class MasonButton extends UIControl implements MasonElementObjc, MasonTextContainer {
|
|
222
|
+
|
|
223
|
+
static alloc(): MasonButton; // inherited from NSObject
|
|
224
|
+
|
|
225
|
+
static appearance(): MasonButton; // inherited from UIAppearance
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @since 8.0
|
|
229
|
+
*/
|
|
230
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonButton; // inherited from UIAppearance
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @since 8.0
|
|
234
|
+
* @deprecated 9.0
|
|
235
|
+
*/
|
|
236
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonButton; // inherited from UIAppearance
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @since 9.0
|
|
240
|
+
*/
|
|
241
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonButton; // inherited from UIAppearance
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @since 5.0
|
|
245
|
+
* @deprecated 9.0
|
|
246
|
+
*/
|
|
247
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonButton; // inherited from UIAppearance
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @since 9.0
|
|
251
|
+
*/
|
|
252
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonButton; // inherited from UIAppearance
|
|
253
|
+
|
|
254
|
+
static new(): MasonButton; // inherited from NSObject
|
|
255
|
+
|
|
256
|
+
engine: MasonTextEngine;
|
|
257
|
+
|
|
258
|
+
readonly mason: NSCMason;
|
|
259
|
+
|
|
260
|
+
textContent: string;
|
|
261
|
+
|
|
262
|
+
readonly textValues: NSMutableData;
|
|
263
|
+
|
|
264
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
265
|
+
|
|
266
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
267
|
+
|
|
268
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
269
|
+
|
|
270
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
271
|
+
|
|
272
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
273
|
+
|
|
274
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
275
|
+
|
|
276
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
277
|
+
|
|
278
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
279
|
+
|
|
280
|
+
readonly // inherited from NSObjectProtocol
|
|
281
|
+
|
|
282
|
+
addView(view: UIView): void;
|
|
283
|
+
|
|
284
|
+
addViewAt(view: UIView, at: number): void;
|
|
285
|
+
|
|
286
|
+
class(): typeof NSObject;
|
|
287
|
+
|
|
288
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
289
|
+
|
|
290
|
+
isEqual(object: any): boolean;
|
|
291
|
+
|
|
292
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
293
|
+
|
|
294
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
295
|
+
|
|
296
|
+
onStyleChange(low: number, high: number): void;
|
|
297
|
+
|
|
298
|
+
performSelector(aSelector: string): any;
|
|
299
|
+
|
|
300
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
301
|
+
|
|
302
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
303
|
+
|
|
304
|
+
removeAllViews(): void;
|
|
305
|
+
|
|
306
|
+
removeView(view: UIView): void;
|
|
307
|
+
|
|
308
|
+
removeViewAt(index: number): void;
|
|
309
|
+
|
|
310
|
+
requestLayout(): void;
|
|
311
|
+
|
|
312
|
+
respondsToSelector(aSelector: string): boolean;
|
|
313
|
+
|
|
314
|
+
retainCount(): number;
|
|
315
|
+
|
|
316
|
+
self(): this;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface MasonCharacterData {
|
|
320
|
+
|
|
321
|
+
data: string;
|
|
322
|
+
|
|
323
|
+
length: number;
|
|
324
|
+
|
|
325
|
+
appendData(s: string): MasonCharacterData;
|
|
326
|
+
|
|
327
|
+
deleteDataWithOffsetCount(offset: number, count: number): MasonCharacterData;
|
|
328
|
+
|
|
329
|
+
deleteDataWithRange(range: NSRange): MasonCharacterData;
|
|
330
|
+
|
|
331
|
+
insertDataAt(s: string, offset: number): MasonCharacterData;
|
|
332
|
+
|
|
333
|
+
replaceDataWithOffsetCountWith(offset: number, count: number, s: string): MasonCharacterData;
|
|
334
|
+
|
|
335
|
+
replaceDataWithRangeWith(range: NSRange, s: string): MasonCharacterData;
|
|
336
|
+
|
|
337
|
+
substringDataWithOffsetCount(offset: number, count: number): string;
|
|
338
|
+
}
|
|
339
|
+
declare var MasonCharacterData: {
|
|
340
|
+
|
|
341
|
+
prototype: MasonCharacterData;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
declare const enum MasonClear {
|
|
345
|
+
|
|
346
|
+
None = 0,
|
|
347
|
+
|
|
348
|
+
Left = 1,
|
|
349
|
+
|
|
350
|
+
Right = 2,
|
|
351
|
+
|
|
352
|
+
Both = 3
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare const enum MasonDecorationLine {
|
|
356
|
+
|
|
357
|
+
None = 0,
|
|
358
|
+
|
|
359
|
+
Underline = 1,
|
|
360
|
+
|
|
361
|
+
Overline = 2,
|
|
362
|
+
|
|
363
|
+
LineThrough = 3
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare const enum MasonDecorationStyle {
|
|
367
|
+
|
|
368
|
+
Solid = 0,
|
|
369
|
+
|
|
370
|
+
Double = 1,
|
|
371
|
+
|
|
372
|
+
Dotted = 2,
|
|
373
|
+
|
|
374
|
+
Dashed = 3,
|
|
375
|
+
|
|
376
|
+
Wavy = 4
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare class MasonDimensionCompat extends NSObject {
|
|
380
|
+
|
|
381
|
+
static alloc(): MasonDimensionCompat; // inherited from NSObject
|
|
382
|
+
|
|
383
|
+
static new(): MasonDimensionCompat; // inherited from NSObject
|
|
384
|
+
|
|
385
|
+
readonly cssValue: string;
|
|
386
|
+
|
|
387
|
+
readonly jsonValue: string;
|
|
388
|
+
|
|
389
|
+
readonly type: MasonDimensionCompatType;
|
|
390
|
+
|
|
391
|
+
readonly value: number;
|
|
392
|
+
|
|
393
|
+
static readonly Auto: MasonDimensionCompat;
|
|
394
|
+
|
|
395
|
+
static readonly Zero: MasonDimensionCompat;
|
|
396
|
+
|
|
397
|
+
constructor(o: { percent: number; });
|
|
398
|
+
|
|
399
|
+
constructor(o: { points: number; });
|
|
400
|
+
|
|
401
|
+
initWithPercent(percent: number): this;
|
|
402
|
+
|
|
403
|
+
initWithPoints(points: number): this;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
declare const enum MasonDimensionCompatType {
|
|
407
|
+
|
|
408
|
+
Auto = 0,
|
|
409
|
+
|
|
410
|
+
Points = 1,
|
|
411
|
+
|
|
412
|
+
Percent = 2
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare class MasonDimensionPointCompat extends NSObject {
|
|
416
|
+
|
|
417
|
+
static alloc(): MasonDimensionPointCompat; // inherited from NSObject
|
|
418
|
+
|
|
419
|
+
static new(): MasonDimensionPointCompat; // inherited from NSObject
|
|
420
|
+
|
|
421
|
+
x: MasonDimensionCompat;
|
|
422
|
+
|
|
423
|
+
y: MasonDimensionCompat;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class MasonDimensionRectCompat extends NSObject {
|
|
427
|
+
|
|
428
|
+
static alloc(): MasonDimensionRectCompat; // inherited from NSObject
|
|
429
|
+
|
|
430
|
+
static new(): MasonDimensionRectCompat; // inherited from NSObject
|
|
431
|
+
|
|
432
|
+
bottom: MasonDimensionCompat;
|
|
433
|
+
|
|
434
|
+
left: MasonDimensionCompat;
|
|
435
|
+
|
|
436
|
+
right: MasonDimensionCompat;
|
|
437
|
+
|
|
438
|
+
top: MasonDimensionCompat;
|
|
439
|
+
|
|
440
|
+
constructor();
|
|
441
|
+
|
|
442
|
+
init(left: MasonDimensionCompat, top: MasonDimensionCompat, right: MasonDimensionCompat, bottom: MasonDimensionCompat): this;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
declare class MasonDimensionSizeCompat extends NSObject {
|
|
446
|
+
|
|
447
|
+
static alloc(): MasonDimensionSizeCompat; // inherited from NSObject
|
|
448
|
+
|
|
449
|
+
static new(): MasonDimensionSizeCompat; // inherited from NSObject
|
|
450
|
+
|
|
451
|
+
height: MasonDimensionCompat;
|
|
452
|
+
|
|
453
|
+
width: MasonDimensionCompat;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
declare const enum MasonDirection {
|
|
457
|
+
|
|
458
|
+
Inherit = 0,
|
|
459
|
+
|
|
460
|
+
LTR = 1,
|
|
461
|
+
|
|
462
|
+
RTL = 2
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
declare const enum MasonDisplay {
|
|
466
|
+
|
|
467
|
+
None = 0,
|
|
468
|
+
|
|
469
|
+
Flex = 1,
|
|
470
|
+
|
|
471
|
+
Grid = 2,
|
|
472
|
+
|
|
473
|
+
Block = 3,
|
|
474
|
+
|
|
475
|
+
Inline = 4,
|
|
476
|
+
|
|
477
|
+
InlineBlock = 5,
|
|
478
|
+
|
|
479
|
+
InlineFlex = 6,
|
|
480
|
+
|
|
481
|
+
InlineGrid = 7
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
declare class MasonDocument extends NSObject {
|
|
485
|
+
|
|
486
|
+
static alloc(): MasonDocument; // inherited from NSObject
|
|
487
|
+
|
|
488
|
+
static new(): MasonDocument; // inherited from NSObject
|
|
489
|
+
|
|
490
|
+
readonly mason: NSCMason;
|
|
491
|
+
|
|
492
|
+
readonly node: MasonNode;
|
|
493
|
+
|
|
494
|
+
constructor(o: { mason: NSCMason; });
|
|
495
|
+
|
|
496
|
+
initWithMason(instance: NSCMason): this;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
interface MasonElementObjc extends NSObjectProtocol {
|
|
500
|
+
|
|
501
|
+
node: MasonNode;
|
|
502
|
+
|
|
503
|
+
style: MasonStyle;
|
|
504
|
+
|
|
505
|
+
uiView: UIView;
|
|
506
|
+
}
|
|
507
|
+
declare var MasonElementObjc: {
|
|
508
|
+
|
|
509
|
+
prototype: MasonElementObjc;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
declare class MasonEvent extends NSObject {
|
|
513
|
+
|
|
514
|
+
static alloc(): MasonEvent; // inherited from NSObject
|
|
515
|
+
|
|
516
|
+
static new(): MasonEvent; // inherited from NSObject
|
|
517
|
+
|
|
518
|
+
readonly bubbles: boolean;
|
|
519
|
+
|
|
520
|
+
readonly cancelable: boolean;
|
|
521
|
+
|
|
522
|
+
readonly currentTarget: any;
|
|
523
|
+
|
|
524
|
+
readonly defaultPrevented: boolean;
|
|
525
|
+
|
|
526
|
+
readonly immediatePropagationStopped: boolean;
|
|
527
|
+
|
|
528
|
+
readonly isComposing: boolean;
|
|
529
|
+
|
|
530
|
+
readonly propagationStopped: boolean;
|
|
531
|
+
|
|
532
|
+
readonly target: any;
|
|
533
|
+
|
|
534
|
+
readonly timeStamp: number;
|
|
535
|
+
|
|
536
|
+
readonly type: string;
|
|
537
|
+
|
|
538
|
+
constructor(o: { type: string; bubbles: boolean; cancelable: boolean; options: MasonEventOptions; });
|
|
539
|
+
|
|
540
|
+
initWithTypeBubblesCancelableOptions(eventType: string, eventBubbles: boolean, eventCancelable: boolean, options: MasonEventOptions): this;
|
|
541
|
+
|
|
542
|
+
preventDefault(): void;
|
|
543
|
+
|
|
544
|
+
stopImmediatePropagation(): void;
|
|
545
|
+
|
|
546
|
+
stopPropagation(): void;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class MasonEventOptions extends NSObject {
|
|
550
|
+
|
|
551
|
+
static alloc(): MasonEventOptions; // inherited from NSObject
|
|
552
|
+
|
|
553
|
+
static new(): MasonEventOptions; // inherited from NSObject
|
|
554
|
+
|
|
555
|
+
isComposing: boolean;
|
|
556
|
+
|
|
557
|
+
constructor(o: { isComposing: boolean; });
|
|
558
|
+
|
|
559
|
+
initWithIsComposing(isComposing: boolean): this;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare class MasonFileInputEvent extends MasonEvent {
|
|
563
|
+
|
|
564
|
+
static alloc(): MasonFileInputEvent; // inherited from NSObject
|
|
565
|
+
|
|
566
|
+
static new(): MasonFileInputEvent; // inherited from NSObject
|
|
567
|
+
|
|
568
|
+
readonly data: string;
|
|
569
|
+
|
|
570
|
+
readonly inputType: string;
|
|
571
|
+
|
|
572
|
+
readonly rawData: NSArray<NSURL>;
|
|
573
|
+
|
|
574
|
+
constructor(o: { type: string; data: string; inputType: string; options: MasonEventOptions; rawData: NSArray<NSURL> | NSURL[]; });
|
|
575
|
+
|
|
576
|
+
initWithTypeDataInputTypeOptionsRawData(type: string, inputData: string, masonInputType: string, options: MasonEventOptions, inputRawData: NSArray<NSURL> | NSURL[]): this;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
declare const enum MasonFlexDirection {
|
|
580
|
+
|
|
581
|
+
Row = 0,
|
|
582
|
+
|
|
583
|
+
Column = 1,
|
|
584
|
+
|
|
585
|
+
RowReverse = 2,
|
|
586
|
+
|
|
587
|
+
ColumnReverse = 3
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare const enum MasonFlexWrap {
|
|
591
|
+
|
|
592
|
+
NoWrap = 0,
|
|
593
|
+
|
|
594
|
+
Wrap = 1,
|
|
595
|
+
|
|
596
|
+
WrapReverse = 2
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare const enum MasonFloat {
|
|
600
|
+
|
|
601
|
+
None = 0,
|
|
602
|
+
|
|
603
|
+
Left = 1,
|
|
604
|
+
|
|
605
|
+
Right = 2
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
declare const enum MasonFontStyle {
|
|
609
|
+
|
|
610
|
+
Normal = 0,
|
|
611
|
+
|
|
612
|
+
Italic = 1,
|
|
613
|
+
|
|
614
|
+
Oblique = 2
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare const enum MasonGridAutoFlowWrap {
|
|
618
|
+
|
|
619
|
+
Row = 0,
|
|
620
|
+
|
|
621
|
+
Column = 1,
|
|
622
|
+
|
|
623
|
+
RowDense = 2,
|
|
624
|
+
|
|
625
|
+
ColumnDense = 3
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare const enum MasonGridPlacementCompatType {
|
|
629
|
+
|
|
630
|
+
Auto = 0,
|
|
631
|
+
|
|
632
|
+
Line = 1,
|
|
633
|
+
|
|
634
|
+
Span = 2
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare class MasonGridTrackRepetition extends NSObject {
|
|
638
|
+
|
|
639
|
+
static Count(value: number): MasonGridTrackRepetition;
|
|
640
|
+
|
|
641
|
+
static alloc(): MasonGridTrackRepetition; // inherited from NSObject
|
|
642
|
+
|
|
643
|
+
static new(): MasonGridTrackRepetition; // inherited from NSObject
|
|
644
|
+
|
|
645
|
+
readonly cssValue: string;
|
|
646
|
+
|
|
647
|
+
readonly type: number;
|
|
648
|
+
|
|
649
|
+
readonly value: number;
|
|
650
|
+
|
|
651
|
+
static readonly AutoFill: MasonGridTrackRepetition;
|
|
652
|
+
|
|
653
|
+
static readonly AutoFit: MasonGridTrackRepetition;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class MasonHTMLParser extends NSObject {
|
|
657
|
+
|
|
658
|
+
static alloc(): MasonHTMLParser; // inherited from NSObject
|
|
659
|
+
|
|
660
|
+
static new(): MasonHTMLParser; // inherited from NSObject
|
|
661
|
+
|
|
662
|
+
constructor(o: { mason: NSCMason; });
|
|
663
|
+
|
|
664
|
+
initWithMason(mason: NSCMason): this;
|
|
665
|
+
|
|
666
|
+
parse(html: string): NSArray<MasonNode>;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare class MasonImageLayer extends CALayer {
|
|
670
|
+
|
|
671
|
+
static alloc(): MasonImageLayer; // inherited from NSObject
|
|
672
|
+
|
|
673
|
+
static layer(): MasonImageLayer; // inherited from CALayer
|
|
674
|
+
|
|
675
|
+
static new(): MasonImageLayer; // inherited from NSObject
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare class MasonImg extends UIView implements MasonElementObjc {
|
|
679
|
+
|
|
680
|
+
static alloc(): MasonImg; // inherited from NSObject
|
|
681
|
+
|
|
682
|
+
static appearance(): MasonImg; // inherited from UIAppearance
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @since 8.0
|
|
686
|
+
*/
|
|
687
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonImg; // inherited from UIAppearance
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @since 8.0
|
|
691
|
+
* @deprecated 9.0
|
|
692
|
+
*/
|
|
693
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonImg; // inherited from UIAppearance
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @since 9.0
|
|
697
|
+
*/
|
|
698
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonImg; // inherited from UIAppearance
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @since 5.0
|
|
702
|
+
* @deprecated 9.0
|
|
703
|
+
*/
|
|
704
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonImg; // inherited from UIAppearance
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @since 9.0
|
|
708
|
+
*/
|
|
709
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonImg; // inherited from UIAppearance
|
|
710
|
+
|
|
711
|
+
static layerClass(): typeof NSObject;
|
|
712
|
+
|
|
713
|
+
static new(): MasonImg; // inherited from NSObject
|
|
714
|
+
|
|
715
|
+
didLayout: () => void;
|
|
716
|
+
|
|
717
|
+
image: UIImage;
|
|
718
|
+
|
|
719
|
+
readonly mason: NSCMason;
|
|
720
|
+
|
|
721
|
+
onStateChange: (p1: MasonLoadingState, p2: NSError) => void;
|
|
722
|
+
|
|
723
|
+
src: string;
|
|
724
|
+
|
|
725
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
726
|
+
|
|
727
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
728
|
+
|
|
729
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
730
|
+
|
|
731
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
732
|
+
|
|
733
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
734
|
+
|
|
735
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
736
|
+
|
|
737
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
738
|
+
|
|
739
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
740
|
+
|
|
741
|
+
readonly // inherited from NSObjectProtocol
|
|
742
|
+
|
|
743
|
+
class(): typeof NSObject;
|
|
744
|
+
|
|
745
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
746
|
+
|
|
747
|
+
isEqual(object: any): boolean;
|
|
748
|
+
|
|
749
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
750
|
+
|
|
751
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
752
|
+
|
|
753
|
+
performSelector(aSelector: string): any;
|
|
754
|
+
|
|
755
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
756
|
+
|
|
757
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
758
|
+
|
|
759
|
+
requestLayout(): void;
|
|
760
|
+
|
|
761
|
+
respondsToSelector(aSelector: string): boolean;
|
|
762
|
+
|
|
763
|
+
retainCount(): number;
|
|
764
|
+
|
|
765
|
+
self(): this;
|
|
766
|
+
|
|
767
|
+
updateImage(image: UIImage): void;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
declare class MasonInput extends UIView {
|
|
771
|
+
|
|
772
|
+
static alloc(): MasonInput; // inherited from NSObject
|
|
773
|
+
|
|
774
|
+
static appearance(): MasonInput; // inherited from UIAppearance
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* @since 8.0
|
|
778
|
+
*/
|
|
779
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonInput; // inherited from UIAppearance
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* @since 8.0
|
|
783
|
+
* @deprecated 9.0
|
|
784
|
+
*/
|
|
785
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonInput; // inherited from UIAppearance
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* @since 9.0
|
|
789
|
+
*/
|
|
790
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonInput; // inherited from UIAppearance
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* @since 5.0
|
|
794
|
+
* @deprecated 9.0
|
|
795
|
+
*/
|
|
796
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonInput; // inherited from UIAppearance
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @since 9.0
|
|
800
|
+
*/
|
|
801
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonInput; // inherited from UIAppearance
|
|
802
|
+
|
|
803
|
+
static new(): MasonInput; // inherited from NSObject
|
|
804
|
+
|
|
805
|
+
accept: string;
|
|
806
|
+
|
|
807
|
+
readonly mason: NSCMason;
|
|
808
|
+
|
|
809
|
+
multiple: boolean;
|
|
810
|
+
|
|
811
|
+
readonly node: MasonNode;
|
|
812
|
+
|
|
813
|
+
placeholder: string;
|
|
814
|
+
|
|
815
|
+
size: number;
|
|
816
|
+
|
|
817
|
+
readonly style: MasonStyle;
|
|
818
|
+
|
|
819
|
+
type: MasonInputType;
|
|
820
|
+
|
|
821
|
+
readonly uiView: UIView;
|
|
822
|
+
|
|
823
|
+
value: string;
|
|
824
|
+
|
|
825
|
+
valueAsDate: Date;
|
|
826
|
+
|
|
827
|
+
valueAsNumber: number;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
declare class MasonInputEvent extends MasonEvent {
|
|
831
|
+
|
|
832
|
+
static alloc(): MasonInputEvent; // inherited from NSObject
|
|
833
|
+
|
|
834
|
+
static new(): MasonInputEvent; // inherited from NSObject
|
|
835
|
+
|
|
836
|
+
readonly data: string;
|
|
837
|
+
|
|
838
|
+
readonly inputType: string;
|
|
839
|
+
|
|
840
|
+
constructor(o: { type: string; data: string; inputType: string; options: MasonEventOptions; });
|
|
841
|
+
|
|
842
|
+
initWithTypeDataInputTypeOptions(type: string, inputData: string, masonInputType: string, options: MasonEventOptions): this;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
declare const enum MasonInputType {
|
|
846
|
+
|
|
847
|
+
Text = 0,
|
|
848
|
+
|
|
849
|
+
Button = 1,
|
|
850
|
+
|
|
851
|
+
Checkbox = 2,
|
|
852
|
+
|
|
853
|
+
Email = 3,
|
|
854
|
+
|
|
855
|
+
Password = 4,
|
|
856
|
+
|
|
857
|
+
Date = 5,
|
|
858
|
+
|
|
859
|
+
Radio = 6,
|
|
860
|
+
|
|
861
|
+
Number = 7,
|
|
862
|
+
|
|
863
|
+
Range = 8,
|
|
864
|
+
|
|
865
|
+
Tel = 9,
|
|
866
|
+
|
|
867
|
+
Url = 10,
|
|
868
|
+
|
|
869
|
+
Color = 11,
|
|
870
|
+
|
|
871
|
+
File = 12,
|
|
872
|
+
|
|
873
|
+
Submit = 13,
|
|
874
|
+
|
|
875
|
+
Search = 14,
|
|
876
|
+
|
|
877
|
+
Time = 15,
|
|
878
|
+
|
|
879
|
+
DatetimeLocal = 16,
|
|
880
|
+
|
|
881
|
+
Month = 17,
|
|
882
|
+
|
|
883
|
+
Week = 18,
|
|
884
|
+
|
|
885
|
+
Reset = 19
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
declare const enum MasonJustifyContent {
|
|
889
|
+
|
|
890
|
+
Normal = -1,
|
|
891
|
+
|
|
892
|
+
Start = 0,
|
|
893
|
+
|
|
894
|
+
End = 1,
|
|
895
|
+
|
|
896
|
+
Center = 2,
|
|
897
|
+
|
|
898
|
+
Stretch = 3,
|
|
899
|
+
|
|
900
|
+
SpaceBetween = 4,
|
|
901
|
+
|
|
902
|
+
SpaceAround = 5,
|
|
903
|
+
|
|
904
|
+
SpaceEvenly = 6,
|
|
905
|
+
|
|
906
|
+
FlexStart = 7,
|
|
907
|
+
|
|
908
|
+
FlexEnd = 8
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
declare const enum MasonJustifyItems {
|
|
912
|
+
|
|
913
|
+
Normal = -1,
|
|
914
|
+
|
|
915
|
+
Start = 0,
|
|
916
|
+
|
|
917
|
+
End = 1,
|
|
918
|
+
|
|
919
|
+
Center = 2,
|
|
920
|
+
|
|
921
|
+
Baseline = 3,
|
|
922
|
+
|
|
923
|
+
Stretch = 4,
|
|
924
|
+
|
|
925
|
+
FlexStart = 5,
|
|
926
|
+
|
|
927
|
+
FlexEnd = 6
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
declare const enum MasonJustifySelf {
|
|
931
|
+
|
|
932
|
+
Normal = -1,
|
|
933
|
+
|
|
934
|
+
Start = 0,
|
|
935
|
+
|
|
936
|
+
End = 1,
|
|
937
|
+
|
|
938
|
+
Center = 2,
|
|
939
|
+
|
|
940
|
+
Baseline = 3,
|
|
941
|
+
|
|
942
|
+
Stretch = 4,
|
|
943
|
+
|
|
944
|
+
FlexStart = 5,
|
|
945
|
+
|
|
946
|
+
FlexEnd = 6
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare class MasonLayout extends NSObject {
|
|
950
|
+
|
|
951
|
+
static alloc(): MasonLayout; // inherited from NSObject
|
|
952
|
+
|
|
953
|
+
static new(): MasonLayout; // inherited from NSObject
|
|
954
|
+
|
|
955
|
+
readonly border: MasonRectHelper;
|
|
956
|
+
|
|
957
|
+
readonly borderBottom: number;
|
|
958
|
+
|
|
959
|
+
readonly borderIsEmpty: boolean;
|
|
960
|
+
|
|
961
|
+
readonly borderLeft: number;
|
|
962
|
+
|
|
963
|
+
readonly borderRight: number;
|
|
964
|
+
|
|
965
|
+
readonly borderTop: number;
|
|
966
|
+
|
|
967
|
+
readonly children: NSArray<MasonLayout>;
|
|
968
|
+
|
|
969
|
+
readonly contentHeight: number;
|
|
970
|
+
|
|
971
|
+
readonly contentSize: MasonSizeHelper;
|
|
972
|
+
|
|
973
|
+
readonly contentWidth: number;
|
|
974
|
+
|
|
975
|
+
readonly hasChildren: boolean;
|
|
976
|
+
|
|
977
|
+
readonly height: number;
|
|
978
|
+
|
|
979
|
+
readonly margin: MasonRectHelper;
|
|
980
|
+
|
|
981
|
+
readonly marginBottom: number;
|
|
982
|
+
|
|
983
|
+
readonly marginIsEmpty: boolean;
|
|
984
|
+
|
|
985
|
+
readonly marginLeft: number;
|
|
986
|
+
|
|
987
|
+
readonly marginRight: number;
|
|
988
|
+
|
|
989
|
+
readonly marginTop: number;
|
|
990
|
+
|
|
991
|
+
readonly padding: MasonRectHelper;
|
|
992
|
+
|
|
993
|
+
readonly paddingBottom: number;
|
|
994
|
+
|
|
995
|
+
readonly paddingIsEmpty: boolean;
|
|
996
|
+
|
|
997
|
+
readonly paddingLeft: number;
|
|
998
|
+
|
|
999
|
+
readonly paddingRight: number;
|
|
1000
|
+
|
|
1001
|
+
readonly paddingTop: number;
|
|
1002
|
+
|
|
1003
|
+
readonly scrollbarHeight: number;
|
|
1004
|
+
|
|
1005
|
+
readonly scrollbarSize: MasonSizeHelper;
|
|
1006
|
+
|
|
1007
|
+
readonly scrollbarWidth: number;
|
|
1008
|
+
|
|
1009
|
+
readonly sizeIsEmpty: boolean;
|
|
1010
|
+
|
|
1011
|
+
readonly width: number;
|
|
1012
|
+
|
|
1013
|
+
readonly x: number;
|
|
1014
|
+
|
|
1015
|
+
readonly y: number;
|
|
1016
|
+
|
|
1017
|
+
static readonly empty: MasonLayout;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
declare class MasonLengthPercentageAutoCompat extends NSObject {
|
|
1021
|
+
|
|
1022
|
+
static alloc(): MasonLengthPercentageAutoCompat; // inherited from NSObject
|
|
1023
|
+
|
|
1024
|
+
static new(): MasonLengthPercentageAutoCompat; // inherited from NSObject
|
|
1025
|
+
|
|
1026
|
+
readonly cssValue: string;
|
|
1027
|
+
|
|
1028
|
+
readonly jsonValue: string;
|
|
1029
|
+
|
|
1030
|
+
readonly type: MasonLengthPercentageAutoCompatType;
|
|
1031
|
+
|
|
1032
|
+
readonly value: number;
|
|
1033
|
+
|
|
1034
|
+
static readonly Auto: MasonLengthPercentageAutoCompat;
|
|
1035
|
+
|
|
1036
|
+
static readonly Zero: MasonLengthPercentageAutoCompat;
|
|
1037
|
+
|
|
1038
|
+
constructor(o: { percent: number; });
|
|
1039
|
+
|
|
1040
|
+
constructor(o: { points: number; });
|
|
1041
|
+
|
|
1042
|
+
initWithPercent(percent: number): this;
|
|
1043
|
+
|
|
1044
|
+
initWithPoints(points: number): this;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
declare const enum MasonLengthPercentageAutoCompatType {
|
|
1048
|
+
|
|
1049
|
+
Auto = 0,
|
|
1050
|
+
|
|
1051
|
+
Points = 1,
|
|
1052
|
+
|
|
1053
|
+
Percent = 2
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
declare class MasonLengthPercentageAutoPointCompat extends NSObject {
|
|
1057
|
+
|
|
1058
|
+
static alloc(): MasonLengthPercentageAutoPointCompat; // inherited from NSObject
|
|
1059
|
+
|
|
1060
|
+
static new(): MasonLengthPercentageAutoPointCompat; // inherited from NSObject
|
|
1061
|
+
|
|
1062
|
+
x: MasonLengthPercentageAutoCompat;
|
|
1063
|
+
|
|
1064
|
+
y: MasonLengthPercentageAutoCompat;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare class MasonLengthPercentageAutoRectCompat extends NSObject {
|
|
1068
|
+
|
|
1069
|
+
static alloc(): MasonLengthPercentageAutoRectCompat; // inherited from NSObject
|
|
1070
|
+
|
|
1071
|
+
static new(): MasonLengthPercentageAutoRectCompat; // inherited from NSObject
|
|
1072
|
+
|
|
1073
|
+
bottom: MasonLengthPercentageAutoCompat;
|
|
1074
|
+
|
|
1075
|
+
left: MasonLengthPercentageAutoCompat;
|
|
1076
|
+
|
|
1077
|
+
right: MasonLengthPercentageAutoCompat;
|
|
1078
|
+
|
|
1079
|
+
top: MasonLengthPercentageAutoCompat;
|
|
1080
|
+
|
|
1081
|
+
constructor();
|
|
1082
|
+
|
|
1083
|
+
init(left: MasonLengthPercentageAutoCompat, top: MasonLengthPercentageAutoCompat, right: MasonLengthPercentageAutoCompat, bottom: MasonLengthPercentageAutoCompat): this;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
declare class MasonLengthPercentageAutoSizeCompat extends NSObject {
|
|
1087
|
+
|
|
1088
|
+
static alloc(): MasonLengthPercentageAutoSizeCompat; // inherited from NSObject
|
|
1089
|
+
|
|
1090
|
+
static new(): MasonLengthPercentageAutoSizeCompat; // inherited from NSObject
|
|
1091
|
+
|
|
1092
|
+
height: MasonLengthPercentageAutoCompat;
|
|
1093
|
+
|
|
1094
|
+
width: MasonLengthPercentageAutoCompat;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
declare class MasonLengthPercentageCompat extends NSObject {
|
|
1098
|
+
|
|
1099
|
+
static alloc(): MasonLengthPercentageCompat; // inherited from NSObject
|
|
1100
|
+
|
|
1101
|
+
static new(): MasonLengthPercentageCompat; // inherited from NSObject
|
|
1102
|
+
|
|
1103
|
+
readonly cssValue: string;
|
|
1104
|
+
|
|
1105
|
+
readonly jsonValue: string;
|
|
1106
|
+
|
|
1107
|
+
readonly type: MasonLengthPercentageCompatType;
|
|
1108
|
+
|
|
1109
|
+
readonly value: number;
|
|
1110
|
+
|
|
1111
|
+
static readonly Zero: MasonLengthPercentageCompat;
|
|
1112
|
+
|
|
1113
|
+
constructor(o: { percent: number; });
|
|
1114
|
+
|
|
1115
|
+
constructor(o: { points: number; });
|
|
1116
|
+
|
|
1117
|
+
initWithPercent(percent: number): this;
|
|
1118
|
+
|
|
1119
|
+
initWithPoints(points: number): this;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
declare const enum MasonLengthPercentageCompatType {
|
|
1123
|
+
|
|
1124
|
+
Points = 0,
|
|
1125
|
+
|
|
1126
|
+
Percent = 1
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
declare class MasonLengthPercentagePointCompat extends NSObject {
|
|
1130
|
+
|
|
1131
|
+
static alloc(): MasonLengthPercentagePointCompat; // inherited from NSObject
|
|
1132
|
+
|
|
1133
|
+
static new(): MasonLengthPercentagePointCompat; // inherited from NSObject
|
|
1134
|
+
|
|
1135
|
+
x: MasonLengthPercentageCompat;
|
|
1136
|
+
|
|
1137
|
+
y: MasonLengthPercentageCompat;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
declare class MasonLengthPercentageRectCompat extends NSObject {
|
|
1141
|
+
|
|
1142
|
+
static alloc(): MasonLengthPercentageRectCompat; // inherited from NSObject
|
|
1143
|
+
|
|
1144
|
+
static new(): MasonLengthPercentageRectCompat; // inherited from NSObject
|
|
1145
|
+
|
|
1146
|
+
bottom: MasonLengthPercentageCompat;
|
|
1147
|
+
|
|
1148
|
+
left: MasonLengthPercentageCompat;
|
|
1149
|
+
|
|
1150
|
+
right: MasonLengthPercentageCompat;
|
|
1151
|
+
|
|
1152
|
+
top: MasonLengthPercentageCompat;
|
|
1153
|
+
|
|
1154
|
+
constructor();
|
|
1155
|
+
|
|
1156
|
+
init(left: MasonLengthPercentageCompat, right: MasonLengthPercentageCompat, top: MasonLengthPercentageCompat, bottom: MasonLengthPercentageCompat): this;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
declare class MasonLengthPercentageSizeCompat extends NSObject {
|
|
1160
|
+
|
|
1161
|
+
static alloc(): MasonLengthPercentageSizeCompat; // inherited from NSObject
|
|
1162
|
+
|
|
1163
|
+
static new(): MasonLengthPercentageSizeCompat; // inherited from NSObject
|
|
1164
|
+
|
|
1165
|
+
height: MasonLengthPercentageCompat;
|
|
1166
|
+
|
|
1167
|
+
width: MasonLengthPercentageCompat;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
declare class MasonLi extends UIView implements MasonElementObjc {
|
|
1171
|
+
|
|
1172
|
+
static alloc(): MasonLi; // inherited from NSObject
|
|
1173
|
+
|
|
1174
|
+
static appearance(): MasonLi; // inherited from UIAppearance
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @since 8.0
|
|
1178
|
+
*/
|
|
1179
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonLi; // inherited from UIAppearance
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @since 8.0
|
|
1183
|
+
* @deprecated 9.0
|
|
1184
|
+
*/
|
|
1185
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonLi; // inherited from UIAppearance
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @since 9.0
|
|
1189
|
+
*/
|
|
1190
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonLi; // inherited from UIAppearance
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* @since 5.0
|
|
1194
|
+
* @deprecated 9.0
|
|
1195
|
+
*/
|
|
1196
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonLi; // inherited from UIAppearance
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @since 9.0
|
|
1200
|
+
*/
|
|
1201
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonLi; // inherited from UIAppearance
|
|
1202
|
+
|
|
1203
|
+
static new(): MasonLi; // inherited from NSObject
|
|
1204
|
+
|
|
1205
|
+
isOrdered: boolean;
|
|
1206
|
+
|
|
1207
|
+
readonly mason: NSCMason;
|
|
1208
|
+
|
|
1209
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1210
|
+
|
|
1211
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1212
|
+
|
|
1213
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1214
|
+
|
|
1215
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1216
|
+
|
|
1217
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
1218
|
+
|
|
1219
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
1220
|
+
|
|
1221
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1222
|
+
|
|
1223
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
1224
|
+
|
|
1225
|
+
readonly // inherited from NSObjectProtocol
|
|
1226
|
+
|
|
1227
|
+
bindWithPositionIsOrdered(position: number, isOrdered: boolean): void;
|
|
1228
|
+
|
|
1229
|
+
class(): typeof NSObject;
|
|
1230
|
+
|
|
1231
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1232
|
+
|
|
1233
|
+
isEqual(object: any): boolean;
|
|
1234
|
+
|
|
1235
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1236
|
+
|
|
1237
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1238
|
+
|
|
1239
|
+
performSelector(aSelector: string): any;
|
|
1240
|
+
|
|
1241
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1242
|
+
|
|
1243
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1244
|
+
|
|
1245
|
+
requestLayout(): void;
|
|
1246
|
+
|
|
1247
|
+
resetForRecycle(): void;
|
|
1248
|
+
|
|
1249
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1250
|
+
|
|
1251
|
+
retainCount(): number;
|
|
1252
|
+
|
|
1253
|
+
self(): this;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
declare const enum MasonLineHeight {
|
|
1257
|
+
|
|
1258
|
+
Normal = 0,
|
|
1259
|
+
|
|
1260
|
+
Pre = 1,
|
|
1261
|
+
|
|
1262
|
+
PreWrap = 2,
|
|
1263
|
+
|
|
1264
|
+
PreLine = 3
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
declare class MasonList extends UIView implements MasonElementObjc, UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegateFlowLayout {
|
|
1268
|
+
|
|
1269
|
+
static alloc(): MasonList; // inherited from NSObject
|
|
1270
|
+
|
|
1271
|
+
static appearance(): MasonList; // inherited from UIAppearance
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* @since 8.0
|
|
1275
|
+
*/
|
|
1276
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonList; // inherited from UIAppearance
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* @since 8.0
|
|
1280
|
+
* @deprecated 9.0
|
|
1281
|
+
*/
|
|
1282
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonList; // inherited from UIAppearance
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* @since 9.0
|
|
1286
|
+
*/
|
|
1287
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonList; // inherited from UIAppearance
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* @since 5.0
|
|
1291
|
+
* @deprecated 9.0
|
|
1292
|
+
*/
|
|
1293
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonList; // inherited from UIAppearance
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* @since 9.0
|
|
1297
|
+
*/
|
|
1298
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonList; // inherited from UIAppearance
|
|
1299
|
+
|
|
1300
|
+
static new(): MasonList; // inherited from NSObject
|
|
1301
|
+
|
|
1302
|
+
count: number;
|
|
1303
|
+
|
|
1304
|
+
delegate: MasonListDelegate;
|
|
1305
|
+
|
|
1306
|
+
isOrdered: boolean;
|
|
1307
|
+
|
|
1308
|
+
readonly mason: NSCMason;
|
|
1309
|
+
|
|
1310
|
+
readonly staticItems: NSDictionary<number, MasonLi>;
|
|
1311
|
+
|
|
1312
|
+
staticViews: NSArray<MasonLi>;
|
|
1313
|
+
|
|
1314
|
+
values: NSMutableData;
|
|
1315
|
+
|
|
1316
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1317
|
+
|
|
1318
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1319
|
+
|
|
1320
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1321
|
+
|
|
1322
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1323
|
+
|
|
1324
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
1325
|
+
|
|
1326
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
1327
|
+
|
|
1328
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1329
|
+
|
|
1330
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
1331
|
+
|
|
1332
|
+
readonly // inherited from NSObjectProtocol
|
|
1333
|
+
|
|
1334
|
+
addView(item: MasonLi): void;
|
|
1335
|
+
|
|
1336
|
+
addViewAt(item: MasonLi, index: number): void;
|
|
1337
|
+
|
|
1338
|
+
class(): typeof NSObject;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* @since 14.0
|
|
1342
|
+
*/
|
|
1343
|
+
collectionViewCanEditItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* @since 9.0
|
|
1347
|
+
*/
|
|
1348
|
+
collectionViewCanFocusItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* @since 9.0
|
|
1352
|
+
*/
|
|
1353
|
+
collectionViewCanMoveItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* @since 6.0
|
|
1357
|
+
* @deprecated 13.0
|
|
1358
|
+
*/
|
|
1359
|
+
collectionViewCanPerformActionForItemAtIndexPathWithSender(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): boolean;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* @since 16.0
|
|
1363
|
+
*/
|
|
1364
|
+
collectionViewCanPerformPrimaryActionForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* @since 10.0
|
|
1368
|
+
*/
|
|
1369
|
+
collectionViewCancelPrefetchingForItemsAtIndexPaths(collectionView: UICollectionView, indexPaths: NSArray<NSIndexPath> | NSIndexPath[]): void;
|
|
1370
|
+
|
|
1371
|
+
collectionViewCellForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* @since 16.0
|
|
1375
|
+
*/
|
|
1376
|
+
collectionViewContextMenuConfigurationDismissalPreviewForItemAtIndexPath(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, indexPath: NSIndexPath): UITargetedPreview;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* @since 13.0
|
|
1380
|
+
* @deprecated 16.0
|
|
1381
|
+
*/
|
|
1382
|
+
collectionViewContextMenuConfigurationForItemAtIndexPathPoint(collectionView: UICollectionView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* @since 16.0
|
|
1386
|
+
*/
|
|
1387
|
+
collectionViewContextMenuConfigurationForItemsAtIndexPathsPoint(collectionView: UICollectionView, indexPaths: NSArray<NSIndexPath> | NSIndexPath[], point: CGPoint): UIContextMenuConfiguration;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @since 16.0
|
|
1391
|
+
*/
|
|
1392
|
+
collectionViewContextMenuConfigurationHighlightPreviewForItemAtIndexPath(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, indexPath: NSIndexPath): UITargetedPreview;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* @since 13.0
|
|
1396
|
+
*/
|
|
1397
|
+
collectionViewDidBeginMultipleSelectionInteractionAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1398
|
+
|
|
1399
|
+
collectionViewDidDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1400
|
+
|
|
1401
|
+
collectionViewDidEndDisplayingCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void;
|
|
1402
|
+
|
|
1403
|
+
collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* @since 13.0
|
|
1407
|
+
*/
|
|
1408
|
+
collectionViewDidEndMultipleSelectionInteraction(collectionView: UICollectionView): void;
|
|
1409
|
+
|
|
1410
|
+
collectionViewDidHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1411
|
+
|
|
1412
|
+
collectionViewDidSelectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1413
|
+
|
|
1414
|
+
collectionViewDidUnhighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* @since 9.0
|
|
1418
|
+
*/
|
|
1419
|
+
collectionViewDidUpdateFocusInContextWithAnimationCoordinator(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void;
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* @since 14.0
|
|
1423
|
+
*/
|
|
1424
|
+
collectionViewIndexPathForIndexTitleAtIndex(collectionView: UICollectionView, title: string, index: number): NSIndexPath;
|
|
1425
|
+
|
|
1426
|
+
collectionViewLayoutInsetForSectionAtIndex(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): UIEdgeInsets;
|
|
1427
|
+
|
|
1428
|
+
collectionViewLayoutMinimumInteritemSpacingForSectionAtIndex(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): number;
|
|
1429
|
+
|
|
1430
|
+
collectionViewLayoutMinimumLineSpacingForSectionAtIndex(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): number;
|
|
1431
|
+
|
|
1432
|
+
collectionViewLayoutReferenceSizeForFooterInSection(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): CGSize;
|
|
1433
|
+
|
|
1434
|
+
collectionViewLayoutReferenceSizeForHeaderInSection(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): CGSize;
|
|
1435
|
+
|
|
1436
|
+
collectionViewLayoutSizeForItemAtIndexPath(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, indexPath: NSIndexPath): CGSize;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* @since 9.0
|
|
1440
|
+
*/
|
|
1441
|
+
collectionViewMoveItemAtIndexPathToIndexPath(collectionView: UICollectionView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void;
|
|
1442
|
+
|
|
1443
|
+
collectionViewNumberOfItemsInSection(collectionView: UICollectionView, section: number): number;
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* @since 6.0
|
|
1447
|
+
* @deprecated 13.0
|
|
1448
|
+
*/
|
|
1449
|
+
collectionViewPerformActionForItemAtIndexPathWithSender(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): void;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* @since 16.0
|
|
1453
|
+
*/
|
|
1454
|
+
collectionViewPerformPrimaryActionForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void;
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* @since 10.0
|
|
1458
|
+
*/
|
|
1459
|
+
collectionViewPrefetchItemsAtIndexPaths(collectionView: UICollectionView, indexPaths: NSArray<NSIndexPath> | NSIndexPath[]): void;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* @since 13.0
|
|
1463
|
+
* @deprecated 16.0
|
|
1464
|
+
*/
|
|
1465
|
+
collectionViewPreviewForDismissingContextMenuWithConfiguration(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @since 13.0
|
|
1469
|
+
* @deprecated 16.0
|
|
1470
|
+
*/
|
|
1471
|
+
collectionViewPreviewForHighlightingContextMenuWithConfiguration(collectionView: UICollectionView, configuration: UIContextMenuConfiguration): UITargetedPreview;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* @since 15.0
|
|
1475
|
+
*/
|
|
1476
|
+
collectionViewSceneActivationConfigurationForItemAtIndexPathPoint(collectionView: UICollectionView, indexPath: NSIndexPath, point: CGPoint): UIWindowSceneActivationConfiguration;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* @since 15.0
|
|
1480
|
+
*/
|
|
1481
|
+
collectionViewSelectionFollowsFocusForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* @since 13.0
|
|
1485
|
+
*/
|
|
1486
|
+
collectionViewShouldBeginMultipleSelectionInteractionAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1487
|
+
|
|
1488
|
+
collectionViewShouldDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1489
|
+
|
|
1490
|
+
collectionViewShouldHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1491
|
+
|
|
1492
|
+
collectionViewShouldSelectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* @since 6.0
|
|
1496
|
+
* @deprecated 13.0
|
|
1497
|
+
*/
|
|
1498
|
+
collectionViewShouldShowMenuForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* @since 11.0
|
|
1502
|
+
*/
|
|
1503
|
+
collectionViewShouldSpringLoadItemAtIndexPathWithContext(collectionView: UICollectionView, indexPath: NSIndexPath, context: UISpringLoadedInteractionContext): boolean;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* @since 9.0
|
|
1507
|
+
*/
|
|
1508
|
+
collectionViewShouldUpdateFocusInContext(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext): boolean;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* @since 9.0
|
|
1512
|
+
*/
|
|
1513
|
+
collectionViewTargetContentOffsetForProposedContentOffset(collectionView: UICollectionView, proposedContentOffset: CGPoint): CGPoint;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* @since 9.0
|
|
1517
|
+
* @deprecated 15.0
|
|
1518
|
+
*/
|
|
1519
|
+
collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(collectionView: UICollectionView, currentIndexPath: NSIndexPath, proposedIndexPath: NSIndexPath): NSIndexPath;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* @since 15.0
|
|
1523
|
+
*/
|
|
1524
|
+
collectionViewTargetIndexPathForMoveOfItemFromOriginalIndexPathAtCurrentIndexPathToProposedIndexPath(collectionView: UICollectionView, originalIndexPath: NSIndexPath, currentIndexPath: NSIndexPath, proposedIndexPath: NSIndexPath): NSIndexPath;
|
|
1525
|
+
|
|
1526
|
+
collectionViewTransitionLayoutForOldLayoutNewLayout(collectionView: UICollectionView, fromLayout: UICollectionViewLayout, toLayout: UICollectionViewLayout): UICollectionViewTransitionLayout;
|
|
1527
|
+
|
|
1528
|
+
collectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView: UICollectionView, kind: string, indexPath: NSIndexPath): UICollectionReusableView;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* @since 8.0
|
|
1532
|
+
*/
|
|
1533
|
+
collectionViewWillDisplayCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* @since 13.2
|
|
1537
|
+
*/
|
|
1538
|
+
collectionViewWillDisplayContextMenuWithConfigurationAnimator(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void;
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @since 8.0
|
|
1542
|
+
*/
|
|
1543
|
+
collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* @since 13.2
|
|
1547
|
+
*/
|
|
1548
|
+
collectionViewWillEndContextMenuInteractionWithConfigurationAnimator(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void;
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* @since 13.0
|
|
1552
|
+
*/
|
|
1553
|
+
collectionViewWillPerformPreviewActionForMenuWithConfigurationAnimator(collectionView: UICollectionView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void;
|
|
1554
|
+
|
|
1555
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* @since 9.0
|
|
1559
|
+
*/
|
|
1560
|
+
indexPathForPreferredFocusedViewInCollectionView(collectionView: UICollectionView): NSIndexPath;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* @since 14.0
|
|
1564
|
+
*/
|
|
1565
|
+
indexTitlesForCollectionView(collectionView: UICollectionView): NSArray<string>;
|
|
1566
|
+
|
|
1567
|
+
invalidateSizeCache(): void;
|
|
1568
|
+
|
|
1569
|
+
invalidateSizeCacheAt(index: number): void;
|
|
1570
|
+
|
|
1571
|
+
isEqual(object: any): boolean;
|
|
1572
|
+
|
|
1573
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1574
|
+
|
|
1575
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1576
|
+
|
|
1577
|
+
numberOfSectionsInCollectionView(collectionView: UICollectionView): number;
|
|
1578
|
+
|
|
1579
|
+
performSelector(aSelector: string): any;
|
|
1580
|
+
|
|
1581
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1582
|
+
|
|
1583
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1584
|
+
|
|
1585
|
+
registerWithCellClassForCellWithReuseIdentifier(cellClass: typeof NSObject, identifier: string): void;
|
|
1586
|
+
|
|
1587
|
+
reload(): void;
|
|
1588
|
+
|
|
1589
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1590
|
+
|
|
1591
|
+
retainCount(): number;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* @since 11.0
|
|
1595
|
+
*/
|
|
1596
|
+
scrollViewDidChangeAdjustedContentInset(scrollView: UIScrollView): void;
|
|
1597
|
+
|
|
1598
|
+
scrollViewDidEndDecelerating(scrollView: UIScrollView): void;
|
|
1599
|
+
|
|
1600
|
+
scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void;
|
|
1601
|
+
|
|
1602
|
+
scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void;
|
|
1603
|
+
|
|
1604
|
+
scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void;
|
|
1605
|
+
|
|
1606
|
+
scrollViewDidScroll(scrollView: UIScrollView): void;
|
|
1607
|
+
|
|
1608
|
+
scrollViewDidScrollToTop(scrollView: UIScrollView): void;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* @since 3.2
|
|
1612
|
+
*/
|
|
1613
|
+
scrollViewDidZoom(scrollView: UIScrollView): void;
|
|
1614
|
+
|
|
1615
|
+
scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean;
|
|
1616
|
+
|
|
1617
|
+
scrollViewWillBeginDecelerating(scrollView: UIScrollView): void;
|
|
1618
|
+
|
|
1619
|
+
scrollViewWillBeginDragging(scrollView: UIScrollView): void;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* @since 3.2
|
|
1623
|
+
*/
|
|
1624
|
+
scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* @since 5.0
|
|
1628
|
+
*/
|
|
1629
|
+
scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference<CGPoint>): void;
|
|
1630
|
+
|
|
1631
|
+
self(): this;
|
|
1632
|
+
|
|
1633
|
+
viewForZoomingInScrollView(scrollView: UIScrollView): UIView;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
declare class MasonListCell extends UICollectionViewCell {
|
|
1637
|
+
|
|
1638
|
+
static alloc(): MasonListCell; // inherited from NSObject
|
|
1639
|
+
|
|
1640
|
+
static appearance(): MasonListCell; // inherited from UIAppearance
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* @since 8.0
|
|
1644
|
+
*/
|
|
1645
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonListCell; // inherited from UIAppearance
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* @since 8.0
|
|
1649
|
+
* @deprecated 9.0
|
|
1650
|
+
*/
|
|
1651
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonListCell; // inherited from UIAppearance
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* @since 9.0
|
|
1655
|
+
*/
|
|
1656
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonListCell; // inherited from UIAppearance
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* @since 5.0
|
|
1660
|
+
* @deprecated 9.0
|
|
1661
|
+
*/
|
|
1662
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonListCell; // inherited from UIAppearance
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* @since 9.0
|
|
1666
|
+
*/
|
|
1667
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonListCell; // inherited from UIAppearance
|
|
1668
|
+
|
|
1669
|
+
static initWithEmptyBackground(): MasonListCell;
|
|
1670
|
+
|
|
1671
|
+
static new(): MasonListCell; // inherited from NSObject
|
|
1672
|
+
|
|
1673
|
+
willMove: (p1: MasonListCell) => void;
|
|
1674
|
+
|
|
1675
|
+
setViewWithCompat(view: MasonElementObjc): void;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
interface MasonListDelegate {
|
|
1679
|
+
|
|
1680
|
+
listCellForItemAt(list: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell;
|
|
1681
|
+
|
|
1682
|
+
listWillDisplayForItemAt(list: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void;
|
|
1683
|
+
}
|
|
1684
|
+
declare var MasonListDelegate: {
|
|
1685
|
+
|
|
1686
|
+
prototype: MasonListDelegate;
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
declare const enum MasonListStylePosition {
|
|
1690
|
+
|
|
1691
|
+
Outside = 0,
|
|
1692
|
+
|
|
1693
|
+
Inside = 1
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
declare const enum MasonListStyleType {
|
|
1697
|
+
|
|
1698
|
+
None = 0,
|
|
1699
|
+
|
|
1700
|
+
Custom = 1,
|
|
1701
|
+
|
|
1702
|
+
Disc = 2,
|
|
1703
|
+
|
|
1704
|
+
Circle = 3,
|
|
1705
|
+
|
|
1706
|
+
Square = 4,
|
|
1707
|
+
|
|
1708
|
+
Decimal = 5
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
declare const enum MasonLoadingState {
|
|
1712
|
+
|
|
1713
|
+
Loading = 0,
|
|
1714
|
+
|
|
1715
|
+
Loaded = 1,
|
|
1716
|
+
|
|
1717
|
+
Error = 2
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
declare class MasonMouseEvent extends MasonEvent {
|
|
1721
|
+
|
|
1722
|
+
static alloc(): MasonMouseEvent; // inherited from NSObject
|
|
1723
|
+
|
|
1724
|
+
static new(): MasonMouseEvent; // inherited from NSObject
|
|
1725
|
+
|
|
1726
|
+
readonly altKey: boolean;
|
|
1727
|
+
|
|
1728
|
+
readonly button: number;
|
|
1729
|
+
|
|
1730
|
+
readonly buttons: number;
|
|
1731
|
+
|
|
1732
|
+
readonly clientX: number;
|
|
1733
|
+
|
|
1734
|
+
readonly clientY: number;
|
|
1735
|
+
|
|
1736
|
+
readonly ctrlKey: boolean;
|
|
1737
|
+
|
|
1738
|
+
readonly detail: number;
|
|
1739
|
+
|
|
1740
|
+
readonly metaKey: boolean;
|
|
1741
|
+
|
|
1742
|
+
readonly movementX: number;
|
|
1743
|
+
|
|
1744
|
+
readonly movementY: number;
|
|
1745
|
+
|
|
1746
|
+
readonly pageX: number;
|
|
1747
|
+
|
|
1748
|
+
readonly pageY: number;
|
|
1749
|
+
|
|
1750
|
+
readonly region: any;
|
|
1751
|
+
|
|
1752
|
+
readonly relatedTarget: any;
|
|
1753
|
+
|
|
1754
|
+
readonly screenX: number;
|
|
1755
|
+
|
|
1756
|
+
readonly screenY: number;
|
|
1757
|
+
|
|
1758
|
+
readonly shiftKey: boolean;
|
|
1759
|
+
|
|
1760
|
+
constructor(o: { type: string; options: MasonMouseEventOptions; });
|
|
1761
|
+
|
|
1762
|
+
initWithTypeOptions(type: string, options: MasonMouseEventOptions): this;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
declare class MasonMouseEventOptions extends MasonEventOptions {
|
|
1766
|
+
|
|
1767
|
+
static alloc(): MasonMouseEventOptions; // inherited from NSObject
|
|
1768
|
+
|
|
1769
|
+
static new(): MasonMouseEventOptions; // inherited from NSObject
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
declare class MasonNode extends NSObject {
|
|
1773
|
+
|
|
1774
|
+
static alloc(): MasonNode; // inherited from NSObject
|
|
1775
|
+
|
|
1776
|
+
static new(): MasonNode; // inherited from NSObject
|
|
1777
|
+
|
|
1778
|
+
readonly computedLayout: MasonLayout;
|
|
1779
|
+
|
|
1780
|
+
readonly document: MasonDocument;
|
|
1781
|
+
|
|
1782
|
+
inBatch: boolean;
|
|
1783
|
+
|
|
1784
|
+
readonly isDirty: boolean;
|
|
1785
|
+
|
|
1786
|
+
isLayoutValid: boolean;
|
|
1787
|
+
|
|
1788
|
+
readonly mason: NSCMason;
|
|
1789
|
+
|
|
1790
|
+
readonly nativePtr: interop.Pointer | interop.Reference<any>;
|
|
1791
|
+
|
|
1792
|
+
onNodeAttached: () => void;
|
|
1793
|
+
|
|
1794
|
+
onNodeDetached: () => void;
|
|
1795
|
+
|
|
1796
|
+
readonly parent: MasonNode;
|
|
1797
|
+
|
|
1798
|
+
readonly parentNode: MasonNode;
|
|
1799
|
+
|
|
1800
|
+
readonly pseudoMask: number;
|
|
1801
|
+
|
|
1802
|
+
readonly type: MasonNodeType;
|
|
1803
|
+
|
|
1804
|
+
constructor(o: { mason: NSCMason; children: NSArray<MasonNode> | MasonNode[]; });
|
|
1805
|
+
|
|
1806
|
+
appendChild(child: MasonNode): void;
|
|
1807
|
+
|
|
1808
|
+
clearPseudoString(pseudoState: number, key: string): void;
|
|
1809
|
+
|
|
1810
|
+
getChildren(): NSArray<MasonNode>;
|
|
1811
|
+
|
|
1812
|
+
getDefaultAttributes(): NSDictionary<string, any>;
|
|
1813
|
+
|
|
1814
|
+
getLayoutChildren(): NSArray<MasonNode>;
|
|
1815
|
+
|
|
1816
|
+
getPseudoBuffer(flags: number): NSMutableData;
|
|
1817
|
+
|
|
1818
|
+
getPseudoString(pseudoState: number, key: string): string;
|
|
1819
|
+
|
|
1820
|
+
getRoot(): UIView;
|
|
1821
|
+
|
|
1822
|
+
getRootNode(): MasonNode;
|
|
1823
|
+
|
|
1824
|
+
hasPseudo(state: PseudoState): boolean;
|
|
1825
|
+
|
|
1826
|
+
initWithMasonChildren(doc: NSCMason, nodes: NSArray<MasonNode> | MasonNode[]): this;
|
|
1827
|
+
|
|
1828
|
+
markDirty(): void;
|
|
1829
|
+
|
|
1830
|
+
preparePseudoBuffer(flags: number): NSMutableData;
|
|
1831
|
+
|
|
1832
|
+
removeAllChildren(): void;
|
|
1833
|
+
|
|
1834
|
+
setChildrenWithValue(value: NSArray<MasonNode> | MasonNode[]): void;
|
|
1835
|
+
|
|
1836
|
+
setPseudoAutoDirty(state: PseudoState, enabled: boolean, autoDirty: boolean): void;
|
|
1837
|
+
|
|
1838
|
+
setPseudoString(pseudoState: number, key: string, value: string): void;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
declare const enum MasonNodeType {
|
|
1842
|
+
|
|
1843
|
+
Element = 0,
|
|
1844
|
+
|
|
1845
|
+
Text = 1,
|
|
1846
|
+
|
|
1847
|
+
Document = 2
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
declare const enum MasonObjectFit {
|
|
1851
|
+
|
|
1852
|
+
Contain = 0,
|
|
1853
|
+
|
|
1854
|
+
Cover = 1,
|
|
1855
|
+
|
|
1856
|
+
Fill = 2,
|
|
1857
|
+
|
|
1858
|
+
None = 3,
|
|
1859
|
+
|
|
1860
|
+
ScaleDown = 4
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
declare const enum MasonOverflow {
|
|
1864
|
+
|
|
1865
|
+
Visible = 0,
|
|
1866
|
+
|
|
1867
|
+
Hidden = 1,
|
|
1868
|
+
|
|
1869
|
+
Scroll = 2,
|
|
1870
|
+
|
|
1871
|
+
Clip = 3,
|
|
1872
|
+
|
|
1873
|
+
Auto = 4
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
declare class MasonOverflowPointCompat extends NSObject {
|
|
1877
|
+
|
|
1878
|
+
static alloc(): MasonOverflowPointCompat; // inherited from NSObject
|
|
1879
|
+
|
|
1880
|
+
static new(): MasonOverflowPointCompat; // inherited from NSObject
|
|
1881
|
+
|
|
1882
|
+
readonly cssValue: string;
|
|
1883
|
+
|
|
1884
|
+
x: MasonOverflow;
|
|
1885
|
+
|
|
1886
|
+
y: MasonOverflow;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
declare const enum MasonPosition {
|
|
1890
|
+
|
|
1891
|
+
Static = 0,
|
|
1892
|
+
|
|
1893
|
+
Relative = 1,
|
|
1894
|
+
|
|
1895
|
+
Absolute = 2,
|
|
1896
|
+
|
|
1897
|
+
Fixed = 3,
|
|
1898
|
+
|
|
1899
|
+
Sticky = 4
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
declare class MasonRectHelper extends NSObject {
|
|
1903
|
+
|
|
1904
|
+
static alloc(): MasonRectHelper; // inherited from NSObject
|
|
1905
|
+
|
|
1906
|
+
static new(): MasonRectHelper; // inherited from NSObject
|
|
1907
|
+
|
|
1908
|
+
readonly bottom: number;
|
|
1909
|
+
|
|
1910
|
+
readonly left: number;
|
|
1911
|
+
|
|
1912
|
+
readonly right: number;
|
|
1913
|
+
|
|
1914
|
+
readonly top: number;
|
|
1915
|
+
|
|
1916
|
+
isEmpty(): boolean;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
declare class MasonScroll extends UIScrollView implements MasonElementObjc, UIScrollViewDelegate {
|
|
1920
|
+
|
|
1921
|
+
static alloc(): MasonScroll; // inherited from NSObject
|
|
1922
|
+
|
|
1923
|
+
static appearance(): MasonScroll; // inherited from UIAppearance
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* @since 8.0
|
|
1927
|
+
*/
|
|
1928
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonScroll; // inherited from UIAppearance
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* @since 8.0
|
|
1932
|
+
* @deprecated 9.0
|
|
1933
|
+
*/
|
|
1934
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonScroll; // inherited from UIAppearance
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* @since 9.0
|
|
1938
|
+
*/
|
|
1939
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonScroll; // inherited from UIAppearance
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* @since 5.0
|
|
1943
|
+
* @deprecated 9.0
|
|
1944
|
+
*/
|
|
1945
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonScroll; // inherited from UIAppearance
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* @since 9.0
|
|
1949
|
+
*/
|
|
1950
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonScroll; // inherited from UIAppearance
|
|
1951
|
+
|
|
1952
|
+
static new(): MasonScroll; // inherited from NSObject
|
|
1953
|
+
|
|
1954
|
+
readonly mason: NSCMason;
|
|
1955
|
+
|
|
1956
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1957
|
+
|
|
1958
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
1959
|
+
|
|
1960
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
1961
|
+
|
|
1962
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1963
|
+
|
|
1964
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
1965
|
+
|
|
1966
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
1967
|
+
|
|
1968
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1969
|
+
|
|
1970
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
1971
|
+
|
|
1972
|
+
readonly // inherited from NSObjectProtocol
|
|
1973
|
+
|
|
1974
|
+
addView(view: UIView): void;
|
|
1975
|
+
|
|
1976
|
+
addViewAt(view: UIView, at: number): void;
|
|
1977
|
+
|
|
1978
|
+
class(): typeof NSObject;
|
|
1979
|
+
|
|
1980
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1981
|
+
|
|
1982
|
+
isEqual(object: any): boolean;
|
|
1983
|
+
|
|
1984
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1985
|
+
|
|
1986
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1987
|
+
|
|
1988
|
+
performSelector(aSelector: string): any;
|
|
1989
|
+
|
|
1990
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1991
|
+
|
|
1992
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1993
|
+
|
|
1994
|
+
respondsToSelector(aSelector: string): boolean;
|
|
1995
|
+
|
|
1996
|
+
retainCount(): number;
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* @since 11.0
|
|
2000
|
+
*/
|
|
2001
|
+
scrollViewDidChangeAdjustedContentInset(scrollView: UIScrollView): void;
|
|
2002
|
+
|
|
2003
|
+
scrollViewDidEndDecelerating(scrollView: UIScrollView): void;
|
|
2004
|
+
|
|
2005
|
+
scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void;
|
|
2006
|
+
|
|
2007
|
+
scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void;
|
|
2008
|
+
|
|
2009
|
+
scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void;
|
|
2010
|
+
|
|
2011
|
+
scrollViewDidScroll(scrollView: UIScrollView): void;
|
|
2012
|
+
|
|
2013
|
+
scrollViewDidScrollToTop(scrollView: UIScrollView): void;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* @since 3.2
|
|
2017
|
+
*/
|
|
2018
|
+
scrollViewDidZoom(scrollView: UIScrollView): void;
|
|
2019
|
+
|
|
2020
|
+
scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean;
|
|
2021
|
+
|
|
2022
|
+
scrollViewWillBeginDecelerating(scrollView: UIScrollView): void;
|
|
2023
|
+
|
|
2024
|
+
scrollViewWillBeginDragging(scrollView: UIScrollView): void;
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* @since 3.2
|
|
2028
|
+
*/
|
|
2029
|
+
scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void;
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* @since 5.0
|
|
2033
|
+
*/
|
|
2034
|
+
scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference<CGPoint>): void;
|
|
2035
|
+
|
|
2036
|
+
self(): this;
|
|
2037
|
+
|
|
2038
|
+
setSize(width: number, height: number): void;
|
|
2039
|
+
|
|
2040
|
+
viewForZoomingInScrollView(scrollView: UIScrollView): UIView;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
declare class MasonSizeHelper extends NSObject {
|
|
2044
|
+
|
|
2045
|
+
static alloc(): MasonSizeHelper; // inherited from NSObject
|
|
2046
|
+
|
|
2047
|
+
static new(): MasonSizeHelper; // inherited from NSObject
|
|
2048
|
+
|
|
2049
|
+
readonly height: number;
|
|
2050
|
+
|
|
2051
|
+
readonly width: number;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
declare class MasonStyle extends NSObject {
|
|
2055
|
+
|
|
2056
|
+
static alloc(): MasonStyle; // inherited from NSObject
|
|
2057
|
+
|
|
2058
|
+
static new(): MasonStyle; // inherited from NSObject
|
|
2059
|
+
|
|
2060
|
+
align: MasonAlign;
|
|
2061
|
+
|
|
2062
|
+
alignContent: MasonAlignContent;
|
|
2063
|
+
|
|
2064
|
+
alignItems: MasonAlignItems;
|
|
2065
|
+
|
|
2066
|
+
alignSelf: MasonAlignSelf;
|
|
2067
|
+
|
|
2068
|
+
backdropFilter: string;
|
|
2069
|
+
|
|
2070
|
+
background: string;
|
|
2071
|
+
|
|
2072
|
+
backgroundClip: string;
|
|
2073
|
+
|
|
2074
|
+
backgroundColor: number;
|
|
2075
|
+
|
|
2076
|
+
backgroundImage: string;
|
|
2077
|
+
|
|
2078
|
+
backgroundPosition: string;
|
|
2079
|
+
|
|
2080
|
+
backgroundRepeat: string;
|
|
2081
|
+
|
|
2082
|
+
backgroundSize: string;
|
|
2083
|
+
|
|
2084
|
+
border: string;
|
|
2085
|
+
|
|
2086
|
+
borderBottom: string;
|
|
2087
|
+
|
|
2088
|
+
borderImage: string;
|
|
2089
|
+
|
|
2090
|
+
borderLeft: string;
|
|
2091
|
+
|
|
2092
|
+
borderRadius: string;
|
|
2093
|
+
|
|
2094
|
+
borderRight: string;
|
|
2095
|
+
|
|
2096
|
+
borderTop: string;
|
|
2097
|
+
|
|
2098
|
+
borderWidthCompat: MasonLengthPercentageRectCompat;
|
|
2099
|
+
|
|
2100
|
+
boxShadow: string;
|
|
2101
|
+
|
|
2102
|
+
boxSizing: MasonBoxSizing;
|
|
2103
|
+
|
|
2104
|
+
clear: MasonClear;
|
|
2105
|
+
|
|
2106
|
+
color: number;
|
|
2107
|
+
|
|
2108
|
+
cornerShape: string;
|
|
2109
|
+
|
|
2110
|
+
cornerShapeBottomLeft: string;
|
|
2111
|
+
|
|
2112
|
+
cornerShapeBottomRight: string;
|
|
2113
|
+
|
|
2114
|
+
cornerShapeTopLeft: string;
|
|
2115
|
+
|
|
2116
|
+
cornerShapeTopRight: string;
|
|
2117
|
+
|
|
2118
|
+
decorationColor: number;
|
|
2119
|
+
|
|
2120
|
+
decorationLine: MasonDecorationLine;
|
|
2121
|
+
|
|
2122
|
+
direction: MasonDirection;
|
|
2123
|
+
|
|
2124
|
+
display: MasonDisplay;
|
|
2125
|
+
|
|
2126
|
+
filter: string;
|
|
2127
|
+
|
|
2128
|
+
flexDirection: MasonFlexDirection;
|
|
2129
|
+
|
|
2130
|
+
flexGrow: number;
|
|
2131
|
+
|
|
2132
|
+
flexShrink: number;
|
|
2133
|
+
|
|
2134
|
+
flexWrap: MasonFlexWrap;
|
|
2135
|
+
|
|
2136
|
+
float_: MasonFloat;
|
|
2137
|
+
|
|
2138
|
+
readonly font: NSCFontFace;
|
|
2139
|
+
|
|
2140
|
+
fontFamily: string;
|
|
2141
|
+
|
|
2142
|
+
fontFeatureSettings: string;
|
|
2143
|
+
|
|
2144
|
+
fontSize: number;
|
|
2145
|
+
|
|
2146
|
+
fontStyle: MasonFontStyle;
|
|
2147
|
+
|
|
2148
|
+
fontVariantNumericString: string;
|
|
2149
|
+
|
|
2150
|
+
fontWeight: string;
|
|
2151
|
+
|
|
2152
|
+
gapCompat: MasonLengthPercentageSizeCompat;
|
|
2153
|
+
|
|
2154
|
+
gridArea: string;
|
|
2155
|
+
|
|
2156
|
+
gridAutoColumns: string;
|
|
2157
|
+
|
|
2158
|
+
gridAutoFlow: MasonGridAutoFlowWrap;
|
|
2159
|
+
|
|
2160
|
+
gridAutoRows: string;
|
|
2161
|
+
|
|
2162
|
+
gridColumn: string;
|
|
2163
|
+
|
|
2164
|
+
gridColumnEnd: string;
|
|
2165
|
+
|
|
2166
|
+
gridColumnStart: string;
|
|
2167
|
+
|
|
2168
|
+
gridRow: string;
|
|
2169
|
+
|
|
2170
|
+
gridRowEnd: string;
|
|
2171
|
+
|
|
2172
|
+
gridRowStart: string;
|
|
2173
|
+
|
|
2174
|
+
gridTemplateAreas: string;
|
|
2175
|
+
|
|
2176
|
+
gridTemplateColumns: string;
|
|
2177
|
+
|
|
2178
|
+
gridTemplateRows: string;
|
|
2179
|
+
|
|
2180
|
+
insetCompat: MasonLengthPercentageAutoRectCompat;
|
|
2181
|
+
|
|
2182
|
+
insetCss: string;
|
|
2183
|
+
|
|
2184
|
+
justifyContent: MasonJustifyContent;
|
|
2185
|
+
|
|
2186
|
+
justifyItems: MasonJustifyItems;
|
|
2187
|
+
|
|
2188
|
+
justifySelf: MasonJustifySelf;
|
|
2189
|
+
|
|
2190
|
+
letterSpacing: number;
|
|
2191
|
+
|
|
2192
|
+
lineHeight: number;
|
|
2193
|
+
|
|
2194
|
+
listStylePosition: MasonListStylePosition;
|
|
2195
|
+
|
|
2196
|
+
listStyleType: MasonListStyleType;
|
|
2197
|
+
|
|
2198
|
+
marginCompat: MasonLengthPercentageAutoRectCompat;
|
|
2199
|
+
|
|
2200
|
+
marginCss: string;
|
|
2201
|
+
|
|
2202
|
+
maxSizeCompat: MasonDimensionSizeCompat;
|
|
2203
|
+
|
|
2204
|
+
minSizeCompat: MasonDimensionSizeCompat;
|
|
2205
|
+
|
|
2206
|
+
objectFit: MasonObjectFit;
|
|
2207
|
+
|
|
2208
|
+
overflowCompat: MasonOverflowPointCompat;
|
|
2209
|
+
|
|
2210
|
+
overflowX: MasonOverflow;
|
|
2211
|
+
|
|
2212
|
+
overflowY: MasonOverflow;
|
|
2213
|
+
|
|
2214
|
+
paddingCompat: MasonLengthPercentageRectCompat;
|
|
2215
|
+
|
|
2216
|
+
paddingCss: string;
|
|
2217
|
+
|
|
2218
|
+
position: MasonPosition;
|
|
2219
|
+
|
|
2220
|
+
sizeCompat: MasonDimensionSizeCompat;
|
|
2221
|
+
|
|
2222
|
+
sizeCompatHeight: MasonDimensionCompat;
|
|
2223
|
+
|
|
2224
|
+
sizeCompatWidth: MasonDimensionCompat;
|
|
2225
|
+
|
|
2226
|
+
textAlign: MasonTextAlign;
|
|
2227
|
+
|
|
2228
|
+
textJustify: MasonTextJustify;
|
|
2229
|
+
|
|
2230
|
+
textOverflowCompat: MasonTextOverflowCompat;
|
|
2231
|
+
|
|
2232
|
+
textShadow: string;
|
|
2233
|
+
|
|
2234
|
+
textTransform: MasonTextTransform;
|
|
2235
|
+
|
|
2236
|
+
textWrap: MasonTextWrap;
|
|
2237
|
+
|
|
2238
|
+
transform: string;
|
|
2239
|
+
|
|
2240
|
+
readonly values: NSMutableData;
|
|
2241
|
+
|
|
2242
|
+
verticalAlign: MasonVerticalAlignValue;
|
|
2243
|
+
|
|
2244
|
+
whiteSpace: MasonWhiteSpace;
|
|
2245
|
+
|
|
2246
|
+
zIndex: number;
|
|
2247
|
+
|
|
2248
|
+
constructor(o: { node: MasonNode; });
|
|
2249
|
+
|
|
2250
|
+
getBackgroundColor(): string;
|
|
2251
|
+
|
|
2252
|
+
initWithNode(node: MasonNode): this;
|
|
2253
|
+
|
|
2254
|
+
prepareMut(): void;
|
|
2255
|
+
|
|
2256
|
+
setTextDecoration(decoration: string);
|
|
2257
|
+
|
|
2258
|
+
setBackgroundColorWithString(color: string): void;
|
|
2259
|
+
|
|
2260
|
+
setBackgroundColorWithUi(color: UIColor): void;
|
|
2261
|
+
|
|
2262
|
+
setBorderBottomWidth(value: number, type: number): void;
|
|
2263
|
+
|
|
2264
|
+
setBorderLeftWidth(value: number, type: number): void;
|
|
2265
|
+
|
|
2266
|
+
setBorderRightWidth(value: number, type: number): void;
|
|
2267
|
+
|
|
2268
|
+
setBorderTopWidth(value: number, type: number): void;
|
|
2269
|
+
|
|
2270
|
+
setBorderWidth(value: number, type: number): void;
|
|
2271
|
+
|
|
2272
|
+
setColorWithCss(color: string): void;
|
|
2273
|
+
|
|
2274
|
+
setColorWithUi(color: UIColor): void;
|
|
2275
|
+
|
|
2276
|
+
setColumnGap(value: number, type: number): void;
|
|
2277
|
+
|
|
2278
|
+
setDecorationColorWithCss(color: string): void;
|
|
2279
|
+
|
|
2280
|
+
setDecorationColorWithUi(color: UIColor): void;
|
|
2281
|
+
|
|
2282
|
+
setFlexBasis(value: number, type: number): void;
|
|
2283
|
+
|
|
2284
|
+
setFontStyle(style: MasonFontStyle, slant: number): void;
|
|
2285
|
+
|
|
2286
|
+
setGapColumn(value: number, type: number): void;
|
|
2287
|
+
|
|
2288
|
+
setGapRow(value: number, type: number): void;
|
|
2289
|
+
|
|
2290
|
+
setInsetBottom(value: number, type: number): void;
|
|
2291
|
+
|
|
2292
|
+
setInsetLeft(value: number, type: number): void;
|
|
2293
|
+
|
|
2294
|
+
setInsetRight(value: number, type: number): void;
|
|
2295
|
+
|
|
2296
|
+
setInsetTop(value: number, type: number): void;
|
|
2297
|
+
|
|
2298
|
+
setInsetWithValueType(value: number, type: number): void;
|
|
2299
|
+
|
|
2300
|
+
setLineHeight(value: number, isRelative: boolean): void;
|
|
2301
|
+
|
|
2302
|
+
setMarginBottom(value: number, type: number): void;
|
|
2303
|
+
|
|
2304
|
+
setMarginLeft(value: number, type: number): void;
|
|
2305
|
+
|
|
2306
|
+
setMarginRight(value: number, type: number): void;
|
|
2307
|
+
|
|
2308
|
+
setMarginTop(value: number, type: number): void;
|
|
2309
|
+
|
|
2310
|
+
setMarginWithValueType(value: number, type: number): void;
|
|
2311
|
+
|
|
2312
|
+
setMaxSizeHeight(value: number, type: number): void;
|
|
2313
|
+
|
|
2314
|
+
setMaxSizeWidth(value: number, type: number): void;
|
|
2315
|
+
|
|
2316
|
+
setMaxSizeWidthHeight(value: number, type: number): void;
|
|
2317
|
+
|
|
2318
|
+
setMinSizeHeight(value: number, type: number): void;
|
|
2319
|
+
|
|
2320
|
+
setMinSizeWidth(value: number, type: number): void;
|
|
2321
|
+
|
|
2322
|
+
setMinSizeWidthHeight(value: number, type: number): void;
|
|
2323
|
+
|
|
2324
|
+
setPaddingBottom(value: number, type: number): void;
|
|
2325
|
+
|
|
2326
|
+
setPaddingLeft(value: number, type: number): void;
|
|
2327
|
+
|
|
2328
|
+
setPaddingRight(value: number, type: number): void;
|
|
2329
|
+
|
|
2330
|
+
setPaddingTop(value: number, type: number): void;
|
|
2331
|
+
|
|
2332
|
+
setPaddingWithValueType(value: number, type: number): void;
|
|
2333
|
+
|
|
2334
|
+
setRowGap(value: number, type: number): void;
|
|
2335
|
+
|
|
2336
|
+
setScrollBarWidth(value: number): void;
|
|
2337
|
+
|
|
2338
|
+
setSizeHeight(value: number, type: number): void;
|
|
2339
|
+
|
|
2340
|
+
setSizePoints(width: number, height: number): void;
|
|
2341
|
+
|
|
2342
|
+
setSizeWidth(value: number, type: number): void;
|
|
2343
|
+
|
|
2344
|
+
setSizeWidthHeight(value: number, type: number): void;
|
|
2345
|
+
|
|
2346
|
+
updateNativeStyle(): void;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
declare class MasonSwiftHelpers extends NSObject {
|
|
2350
|
+
|
|
2351
|
+
static addChildAtElement(parent: MasonElementObjc, element: MasonElementObjc, index: number): void;
|
|
2352
|
+
|
|
2353
|
+
static addChildAtNode(parent: MasonElementObjc, node: MasonNode, index: number): void;
|
|
2354
|
+
|
|
2355
|
+
static addChildAtText(parent: MasonElementObjc, text: string, index: number): void;
|
|
2356
|
+
|
|
2357
|
+
static alloc(): MasonSwiftHelpers; // inherited from NSObject
|
|
2358
|
+
|
|
2359
|
+
static append(parent: MasonElementObjc, element: MasonElementObjc): void;
|
|
2360
|
+
|
|
2361
|
+
static appendElements(parent: MasonElementObjc, elements: NSArray<MasonElementObjc> | MasonElementObjc[]): void;
|
|
2362
|
+
|
|
2363
|
+
static appendNode(parent: MasonElementObjc, node: MasonNode): void;
|
|
2364
|
+
|
|
2365
|
+
static appendNodes(parent: MasonElementObjc, nodes: NSArray<MasonNode> | MasonNode[]): void;
|
|
2366
|
+
|
|
2367
|
+
static appendText(parent: MasonElementObjc, text: string): void;
|
|
2368
|
+
|
|
2369
|
+
static appendTexts(parent: MasonElementObjc, texts: NSArray<string> | string[]): void;
|
|
2370
|
+
|
|
2371
|
+
static attachAndApply(element: MasonElementObjc): void;
|
|
2372
|
+
|
|
2373
|
+
static compute(element: MasonElementObjc): void;
|
|
2374
|
+
|
|
2375
|
+
static computeMaxContent(element: MasonElementObjc): void;
|
|
2376
|
+
|
|
2377
|
+
static computeMinContent(element: MasonElementObjc): void;
|
|
2378
|
+
|
|
2379
|
+
static computeWithMaxContent(element: MasonElementObjc): void;
|
|
2380
|
+
|
|
2381
|
+
static computeWithMinContent(element: MasonElementObjc): void;
|
|
2382
|
+
|
|
2383
|
+
static computeWithSize(element: MasonElementObjc, width: number, height: number): void;
|
|
2384
|
+
|
|
2385
|
+
static computeWithViewSize(element: MasonElementObjc): void;
|
|
2386
|
+
|
|
2387
|
+
static computeWithViewSizeLayout(element: MasonElementObjc, layout: boolean): void;
|
|
2388
|
+
|
|
2389
|
+
static configure(element: MasonElementObjc, block: (p1: MasonStyle) => void): void;
|
|
2390
|
+
|
|
2391
|
+
static isNodeDirty(element: MasonElementObjc): boolean;
|
|
2392
|
+
|
|
2393
|
+
static layout(element: MasonElementObjc): MasonLayout;
|
|
2394
|
+
|
|
2395
|
+
static markNodeDirty(element: MasonElementObjc): void;
|
|
2396
|
+
|
|
2397
|
+
static new(): MasonSwiftHelpers; // inherited from NSObject
|
|
2398
|
+
|
|
2399
|
+
static prepend(parent: MasonElementObjc, element: MasonElementObjc): void;
|
|
2400
|
+
|
|
2401
|
+
static prependElements(parent: MasonElementObjc, elements: NSArray<MasonElementObjc> | MasonElementObjc[]): void;
|
|
2402
|
+
|
|
2403
|
+
static prependNode(parent: MasonElementObjc, node: MasonNode): void;
|
|
2404
|
+
|
|
2405
|
+
static prependNodes(parent: MasonElementObjc, nodes: NSArray<MasonNode> | MasonNode[]): void;
|
|
2406
|
+
|
|
2407
|
+
static prependString(parent: MasonElementObjc, string: string): void;
|
|
2408
|
+
|
|
2409
|
+
static prependStrings(parent: MasonElementObjc, strings: NSArray<string> | string[]): void;
|
|
2410
|
+
|
|
2411
|
+
static requestLayout(element: MasonElementObjc): void;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
declare class MasonText extends UIView implements MasonElementObjc, MasonTextContainer {
|
|
2415
|
+
|
|
2416
|
+
static alloc(): MasonText; // inherited from NSObject
|
|
2417
|
+
|
|
2418
|
+
static appearance(): MasonText; // inherited from UIAppearance
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* @since 8.0
|
|
2422
|
+
*/
|
|
2423
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonText; // inherited from UIAppearance
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* @since 8.0
|
|
2427
|
+
* @deprecated 9.0
|
|
2428
|
+
*/
|
|
2429
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonText; // inherited from UIAppearance
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* @since 9.0
|
|
2433
|
+
*/
|
|
2434
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonText; // inherited from UIAppearance
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* @since 5.0
|
|
2438
|
+
* @deprecated 9.0
|
|
2439
|
+
*/
|
|
2440
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonText; // inherited from UIAppearance
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* @since 9.0
|
|
2444
|
+
*/
|
|
2445
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonText; // inherited from UIAppearance
|
|
2446
|
+
|
|
2447
|
+
static layerClass(): typeof NSObject;
|
|
2448
|
+
|
|
2449
|
+
static new(): MasonText; // inherited from NSObject
|
|
2450
|
+
|
|
2451
|
+
backgroundColorValue: number;
|
|
2452
|
+
|
|
2453
|
+
color: number;
|
|
2454
|
+
|
|
2455
|
+
decorationColor: number;
|
|
2456
|
+
|
|
2457
|
+
decorationLine: MasonDecorationLine;
|
|
2458
|
+
|
|
2459
|
+
engine: MasonTextEngine;
|
|
2460
|
+
|
|
2461
|
+
fontSize: number;
|
|
2462
|
+
|
|
2463
|
+
fontStyle: MasonFontStyle;
|
|
2464
|
+
|
|
2465
|
+
fontWeight: string;
|
|
2466
|
+
|
|
2467
|
+
lineHeight: number;
|
|
2468
|
+
|
|
2469
|
+
textContent: string;
|
|
2470
|
+
|
|
2471
|
+
textOverflowCompat: MasonTextOverflowCompat;
|
|
2472
|
+
|
|
2473
|
+
textTransform: MasonTextTransform;
|
|
2474
|
+
|
|
2475
|
+
readonly textValues: NSMutableData;
|
|
2476
|
+
|
|
2477
|
+
textWrap: MasonTextWrap;
|
|
2478
|
+
|
|
2479
|
+
readonly type: MasonTextType;
|
|
2480
|
+
|
|
2481
|
+
whiteSpace: MasonWhiteSpace;
|
|
2482
|
+
|
|
2483
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2484
|
+
|
|
2485
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2486
|
+
|
|
2487
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2488
|
+
|
|
2489
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2490
|
+
|
|
2491
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
2492
|
+
|
|
2493
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
2494
|
+
|
|
2495
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2496
|
+
|
|
2497
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
2498
|
+
|
|
2499
|
+
readonly // inherited from NSObjectProtocol
|
|
2500
|
+
|
|
2501
|
+
constructor(o: { mason: NSCMason; });
|
|
2502
|
+
|
|
2503
|
+
constructor(o: { mason: NSCMason; type: MasonTextType; });
|
|
2504
|
+
|
|
2505
|
+
addChild(child: MasonNode): void;
|
|
2506
|
+
|
|
2507
|
+
addView(view: UIView): void;
|
|
2508
|
+
|
|
2509
|
+
addViewAt(view: UIView, at: number): void;
|
|
2510
|
+
|
|
2511
|
+
class(): typeof NSObject;
|
|
2512
|
+
|
|
2513
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2514
|
+
|
|
2515
|
+
initWithMason(mason: NSCMason): this;
|
|
2516
|
+
|
|
2517
|
+
initWithMasonType(mason: NSCMason, textType: MasonTextType): this;
|
|
2518
|
+
|
|
2519
|
+
isEqual(object: any): boolean;
|
|
2520
|
+
|
|
2521
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2522
|
+
|
|
2523
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2524
|
+
|
|
2525
|
+
onStyleChange(low: number, high: number): void;
|
|
2526
|
+
|
|
2527
|
+
performSelector(aSelector: string): any;
|
|
2528
|
+
|
|
2529
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2530
|
+
|
|
2531
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2532
|
+
|
|
2533
|
+
removeAllViews(): void;
|
|
2534
|
+
|
|
2535
|
+
removeChild(child: MasonNode): MasonNode;
|
|
2536
|
+
|
|
2537
|
+
removeView(view: UIView): void;
|
|
2538
|
+
|
|
2539
|
+
removeViewAt(index: number): void;
|
|
2540
|
+
|
|
2541
|
+
requestLayout(): void;
|
|
2542
|
+
|
|
2543
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2544
|
+
|
|
2545
|
+
retainCount(): number;
|
|
2546
|
+
|
|
2547
|
+
self(): this;
|
|
2548
|
+
|
|
2549
|
+
setBackgroundColorWithUi(color: UIColor): void;
|
|
2550
|
+
|
|
2551
|
+
setColorWithUi(color: UIColor): void;
|
|
2552
|
+
|
|
2553
|
+
setDecorationColorWithUi(color: UIColor): void;
|
|
2554
|
+
|
|
2555
|
+
setFontStyleSlant(style: MasonFontStyle, slant: number): void;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
declare const enum MasonTextAlign {
|
|
2559
|
+
|
|
2560
|
+
Auto = 0,
|
|
2561
|
+
|
|
2562
|
+
Left = 1,
|
|
2563
|
+
|
|
2564
|
+
Right = 2,
|
|
2565
|
+
|
|
2566
|
+
Center = 3,
|
|
2567
|
+
|
|
2568
|
+
Justify = 4,
|
|
2569
|
+
|
|
2570
|
+
Start = 5,
|
|
2571
|
+
|
|
2572
|
+
End = 6
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
declare class MasonTextArea extends MasonTextInput implements MasonElementObjc {
|
|
2576
|
+
|
|
2577
|
+
static alloc(): MasonTextArea; // inherited from NSObject
|
|
2578
|
+
|
|
2579
|
+
static appearance(): MasonTextArea; // inherited from UIAppearance
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* @since 8.0
|
|
2583
|
+
*/
|
|
2584
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonTextArea; // inherited from UIAppearance
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* @since 8.0
|
|
2588
|
+
* @deprecated 9.0
|
|
2589
|
+
*/
|
|
2590
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonTextArea; // inherited from UIAppearance
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* @since 9.0
|
|
2594
|
+
*/
|
|
2595
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonTextArea; // inherited from UIAppearance
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* @since 5.0
|
|
2599
|
+
* @deprecated 9.0
|
|
2600
|
+
*/
|
|
2601
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonTextArea; // inherited from UIAppearance
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* @since 9.0
|
|
2605
|
+
*/
|
|
2606
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonTextArea; // inherited from UIAppearance
|
|
2607
|
+
|
|
2608
|
+
static new(): MasonTextArea; // inherited from NSObject
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* @since 16.0
|
|
2612
|
+
*/
|
|
2613
|
+
static textViewUsingTextLayoutManager(usingTextLayoutManager: boolean): MasonTextArea; // inherited from UITextView
|
|
2614
|
+
|
|
2615
|
+
cols: number;
|
|
2616
|
+
|
|
2617
|
+
readonly mason: NSCMason;
|
|
2618
|
+
|
|
2619
|
+
maxLength: number;
|
|
2620
|
+
|
|
2621
|
+
name: string;
|
|
2622
|
+
|
|
2623
|
+
rows: number;
|
|
2624
|
+
|
|
2625
|
+
value: string;
|
|
2626
|
+
|
|
2627
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2628
|
+
|
|
2629
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2630
|
+
|
|
2631
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2632
|
+
|
|
2633
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2634
|
+
|
|
2635
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
2636
|
+
|
|
2637
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
2638
|
+
|
|
2639
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2640
|
+
|
|
2641
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
2642
|
+
|
|
2643
|
+
readonly // inherited from NSObjectProtocol
|
|
2644
|
+
|
|
2645
|
+
constructor(o: { mason: NSCMason; });
|
|
2646
|
+
|
|
2647
|
+
class(): typeof NSObject;
|
|
2648
|
+
|
|
2649
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2650
|
+
|
|
2651
|
+
initWithMason(doc: NSCMason): this;
|
|
2652
|
+
|
|
2653
|
+
isEqual(object: any): boolean;
|
|
2654
|
+
|
|
2655
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2656
|
+
|
|
2657
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2658
|
+
|
|
2659
|
+
onStyleChange(low: number, high: number): void;
|
|
2660
|
+
|
|
2661
|
+
performSelector(aSelector: string): any;
|
|
2662
|
+
|
|
2663
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2664
|
+
|
|
2665
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2666
|
+
|
|
2667
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2668
|
+
|
|
2669
|
+
retainCount(): number;
|
|
2670
|
+
|
|
2671
|
+
self(): this;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
interface MasonTextContainer extends NSObjectProtocol {
|
|
2675
|
+
|
|
2676
|
+
engine: MasonTextEngine;
|
|
2677
|
+
|
|
2678
|
+
node: MasonNode;
|
|
2679
|
+
|
|
2680
|
+
onStyleChange(low: number, high: number): void;
|
|
2681
|
+
}
|
|
2682
|
+
declare var MasonTextContainer: {
|
|
2683
|
+
|
|
2684
|
+
prototype: MasonTextContainer;
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
declare class MasonTextEngine extends NSObject {
|
|
2688
|
+
|
|
2689
|
+
static alloc(): MasonTextEngine; // inherited from NSObject
|
|
2690
|
+
|
|
2691
|
+
static new(): MasonTextEngine; // inherited from NSObject
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
declare class MasonTextInput extends UITextView implements UITextViewDelegate {
|
|
2695
|
+
|
|
2696
|
+
static alloc(): MasonTextInput; // inherited from NSObject
|
|
2697
|
+
|
|
2698
|
+
static appearance(): MasonTextInput; // inherited from UIAppearance
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* @since 8.0
|
|
2702
|
+
*/
|
|
2703
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonTextInput; // inherited from UIAppearance
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* @since 8.0
|
|
2707
|
+
* @deprecated 9.0
|
|
2708
|
+
*/
|
|
2709
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonTextInput; // inherited from UIAppearance
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* @since 9.0
|
|
2713
|
+
*/
|
|
2714
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonTextInput; // inherited from UIAppearance
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* @since 5.0
|
|
2718
|
+
* @deprecated 9.0
|
|
2719
|
+
*/
|
|
2720
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonTextInput; // inherited from UIAppearance
|
|
2721
|
+
|
|
2722
|
+
/**
|
|
2723
|
+
* @since 9.0
|
|
2724
|
+
*/
|
|
2725
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonTextInput; // inherited from UIAppearance
|
|
2726
|
+
|
|
2727
|
+
static new(): MasonTextInput; // inherited from NSObject
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* @since 16.0
|
|
2731
|
+
*/
|
|
2732
|
+
static textViewUsingTextLayoutManager(usingTextLayoutManager: boolean): MasonTextInput; // inherited from UITextView
|
|
2733
|
+
|
|
2734
|
+
placeholder: string;
|
|
2735
|
+
|
|
2736
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2737
|
+
|
|
2738
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
2739
|
+
|
|
2740
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
2741
|
+
|
|
2742
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2743
|
+
|
|
2744
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2745
|
+
|
|
2746
|
+
readonly // inherited from NSObjectProtocol
|
|
2747
|
+
|
|
2748
|
+
class(): typeof NSObject;
|
|
2749
|
+
|
|
2750
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2751
|
+
|
|
2752
|
+
isEqual(object: any): boolean;
|
|
2753
|
+
|
|
2754
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2755
|
+
|
|
2756
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2757
|
+
|
|
2758
|
+
performSelector(aSelector: string): any;
|
|
2759
|
+
|
|
2760
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2761
|
+
|
|
2762
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2763
|
+
|
|
2764
|
+
respondsToSelector(aSelector: string): boolean;
|
|
2765
|
+
|
|
2766
|
+
retainCount(): number;
|
|
2767
|
+
|
|
2768
|
+
/**
|
|
2769
|
+
* @since 11.0
|
|
2770
|
+
*/
|
|
2771
|
+
scrollViewDidChangeAdjustedContentInset(scrollView: UIScrollView): void;
|
|
2772
|
+
|
|
2773
|
+
scrollViewDidEndDecelerating(scrollView: UIScrollView): void;
|
|
2774
|
+
|
|
2775
|
+
scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void;
|
|
2776
|
+
|
|
2777
|
+
scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void;
|
|
2778
|
+
|
|
2779
|
+
scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void;
|
|
2780
|
+
|
|
2781
|
+
scrollViewDidScroll(scrollView: UIScrollView): void;
|
|
2782
|
+
|
|
2783
|
+
scrollViewDidScrollToTop(scrollView: UIScrollView): void;
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* @since 3.2
|
|
2787
|
+
*/
|
|
2788
|
+
scrollViewDidZoom(scrollView: UIScrollView): void;
|
|
2789
|
+
|
|
2790
|
+
scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean;
|
|
2791
|
+
|
|
2792
|
+
scrollViewWillBeginDecelerating(scrollView: UIScrollView): void;
|
|
2793
|
+
|
|
2794
|
+
scrollViewWillBeginDragging(scrollView: UIScrollView): void;
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* @since 3.2
|
|
2798
|
+
*/
|
|
2799
|
+
scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void;
|
|
2800
|
+
|
|
2801
|
+
/**
|
|
2802
|
+
* @since 5.0
|
|
2803
|
+
*/
|
|
2804
|
+
scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference<CGPoint>): void;
|
|
2805
|
+
|
|
2806
|
+
self(): this;
|
|
2807
|
+
|
|
2808
|
+
textViewDidBeginEditing(textView: UITextView): void;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* @since 18.0
|
|
2812
|
+
*/
|
|
2813
|
+
textViewDidBeginFormattingWithViewController(textView: UITextView, viewController: UITextFormattingViewController): void;
|
|
2814
|
+
|
|
2815
|
+
textViewDidChange(textView: UITextView): void;
|
|
2816
|
+
|
|
2817
|
+
textViewDidChangeSelection(textView: UITextView): void;
|
|
2818
|
+
|
|
2819
|
+
textViewDidEndEditing(textView: UITextView): void;
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* @since 18.0
|
|
2823
|
+
*/
|
|
2824
|
+
textViewDidEndFormattingWithViewController(textView: UITextView, viewController: UITextFormattingViewController): void;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @since 16.0
|
|
2828
|
+
* @deprecated 100000
|
|
2829
|
+
*/
|
|
2830
|
+
textViewEditMenuForTextInRangeSuggestedActions(textView: UITextView, range: NSRange, suggestedActions: NSArray<UIMenuElement> | UIMenuElement[]): UIMenu;
|
|
2831
|
+
|
|
2832
|
+
/**
|
|
2833
|
+
* @since 26.0
|
|
2834
|
+
*/
|
|
2835
|
+
textViewEditMenuForTextInRangesSuggestedActions(textView: UITextView, ranges: NSArray<NSValue> | NSValue[], suggestedActions: NSArray<UIMenuElement> | UIMenuElement[]): UIMenu;
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* @since 18.4
|
|
2839
|
+
*/
|
|
2840
|
+
textViewInsertInputSuggestion(textView: UITextView, inputSuggestion: UIInputSuggestion): void;
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* @since 17.0
|
|
2844
|
+
*/
|
|
2845
|
+
textViewMenuConfigurationForTextItemDefaultMenu(textView: UITextView, textItem: UITextItem, defaultMenu: UIMenu): UITextItemMenuConfiguration;
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* @since 17.0
|
|
2849
|
+
*/
|
|
2850
|
+
textViewPrimaryActionForTextItemDefaultAction(textView: UITextView, textItem: UITextItem, defaultAction: UIAction): UIAction;
|
|
2851
|
+
|
|
2852
|
+
textViewShouldBeginEditing(textView: UITextView): boolean;
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* @since 2.0
|
|
2856
|
+
* @deprecated 100000
|
|
2857
|
+
*/
|
|
2858
|
+
textViewShouldChangeTextInRangeReplacementText(textView: UITextView, range: NSRange, text: string): boolean;
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* @since 26.0
|
|
2862
|
+
*/
|
|
2863
|
+
textViewShouldChangeTextInRangesReplacementText(textView: UITextView, ranges: NSArray<NSValue> | NSValue[], text: string): boolean;
|
|
2864
|
+
|
|
2865
|
+
textViewShouldEndEditing(textView: UITextView): boolean;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* @since 7.0
|
|
2869
|
+
* @deprecated 10.0
|
|
2870
|
+
*/
|
|
2871
|
+
textViewShouldInteractWithTextAttachmentInRange(textView: UITextView, textAttachment: NSTextAttachment, characterRange: NSRange): boolean;
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* @since 10.0
|
|
2875
|
+
* @deprecated 17.0
|
|
2876
|
+
*/
|
|
2877
|
+
textViewShouldInteractWithTextAttachmentInRangeInteraction(textView: UITextView, textAttachment: NSTextAttachment, characterRange: NSRange, interaction: UITextItemInteraction): boolean;
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* @since 7.0
|
|
2881
|
+
* @deprecated 10.0
|
|
2882
|
+
*/
|
|
2883
|
+
textViewShouldInteractWithURLInRange(textView: UITextView, URL: NSURL, characterRange: NSRange): boolean;
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
* @since 10.0
|
|
2887
|
+
* @deprecated 17.0
|
|
2888
|
+
*/
|
|
2889
|
+
textViewShouldInteractWithURLInRangeInteraction(textView: UITextView, URL: NSURL, characterRange: NSRange, interaction: UITextItemInteraction): boolean;
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* @since 17.0
|
|
2893
|
+
*/
|
|
2894
|
+
textViewTextItemMenuWillDisplayForTextItemAnimator(textView: UITextView, textItem: UITextItem, animator: UIContextMenuInteractionAnimating): void;
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* @since 17.0
|
|
2898
|
+
*/
|
|
2899
|
+
textViewTextItemMenuWillEndForTextItemAnimator(textView: UITextView, textItem: UITextItem, animator: UIContextMenuInteractionAnimating): void;
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* @since 18.0
|
|
2903
|
+
*/
|
|
2904
|
+
textViewWillBeginFormattingWithViewController(textView: UITextView, viewController: UITextFormattingViewController): void;
|
|
2905
|
+
|
|
2906
|
+
/**
|
|
2907
|
+
* @since 16.0
|
|
2908
|
+
*/
|
|
2909
|
+
textViewWillDismissEditMenuWithAnimator(textView: UITextView, animator: UIEditMenuInteractionAnimating): void;
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* @since 18.0
|
|
2913
|
+
*/
|
|
2914
|
+
textViewWillEndFormattingWithViewController(textView: UITextView, viewController: UITextFormattingViewController): void;
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* @since 16.0
|
|
2918
|
+
*/
|
|
2919
|
+
textViewWillPresentEditMenuWithAnimator(textView: UITextView, animator: UIEditMenuInteractionAnimating): void;
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* @since 18.0
|
|
2923
|
+
*/
|
|
2924
|
+
textViewWritingToolsDidEnd(textView: UITextView): void;
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* @since 18.0
|
|
2928
|
+
*/
|
|
2929
|
+
textViewWritingToolsIgnoredRangesInEnclosingRange(textView: UITextView, enclosingRange: NSRange): NSArray<NSValue>;
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* @since 18.0
|
|
2933
|
+
*/
|
|
2934
|
+
textViewWritingToolsWillBegin(textView: UITextView): void;
|
|
2935
|
+
|
|
2936
|
+
viewForZoomingInScrollView(scrollView: UIScrollView): UIView;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
declare const enum MasonTextJustify {
|
|
2940
|
+
|
|
2941
|
+
None = 0,
|
|
2942
|
+
|
|
2943
|
+
Auto = 1,
|
|
2944
|
+
|
|
2945
|
+
InterWord = 2,
|
|
2946
|
+
|
|
2947
|
+
InterCharacter = 3,
|
|
2948
|
+
|
|
2949
|
+
Distribute = 4
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
declare class MasonTextLayer extends CALayer {
|
|
2953
|
+
|
|
2954
|
+
static alloc(): MasonTextLayer; // inherited from NSObject
|
|
2955
|
+
|
|
2956
|
+
static layer(): MasonTextLayer; // inherited from CALayer
|
|
2957
|
+
|
|
2958
|
+
static new(): MasonTextLayer; // inherited from NSObject
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
declare class MasonTextNode extends MasonNode implements MasonCharacterData {
|
|
2962
|
+
|
|
2963
|
+
static alloc(): MasonTextNode; // inherited from NSObject
|
|
2964
|
+
|
|
2965
|
+
static new(): MasonTextNode; // inherited from NSObject
|
|
2966
|
+
|
|
2967
|
+
data: string; // inherited from MasonCharacterData
|
|
2968
|
+
|
|
2969
|
+
readonly length: number; // inherited from MasonCharacterData
|
|
2970
|
+
|
|
2971
|
+
constructor(o: { mason: NSCMason; data: string; attributes: NSDictionary<string, any>; });
|
|
2972
|
+
|
|
2973
|
+
appendData(s: string): this;
|
|
2974
|
+
|
|
2975
|
+
attributed(): NSAttributedString;
|
|
2976
|
+
|
|
2977
|
+
deleteDataWithOffsetCount(offset: number, count: number): this;
|
|
2978
|
+
|
|
2979
|
+
deleteDataWithRange(range: NSRange): this;
|
|
2980
|
+
|
|
2981
|
+
initWithMasonDataAttributes(doc: NSCMason, text: string, attrs: NSDictionary<string, any>): this;
|
|
2982
|
+
|
|
2983
|
+
insertDataAt(s: string, offset: number): this;
|
|
2984
|
+
|
|
2985
|
+
replaceDataWithOffsetCountWith(offset: number, count: number, s: string): this;
|
|
2986
|
+
|
|
2987
|
+
replaceDataWithRangeWith(range: NSRange, s: string): this;
|
|
2988
|
+
|
|
2989
|
+
substringDataWithOffsetCount(offset: number, count: number): string;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
declare class MasonTextOverflowCompat extends NSObject {
|
|
2993
|
+
|
|
2994
|
+
static Custom(value: string): MasonTextOverflowCompat;
|
|
2995
|
+
|
|
2996
|
+
static Ellipse(value: string): MasonTextOverflowCompat;
|
|
2997
|
+
|
|
2998
|
+
static alloc(): MasonTextOverflowCompat; // inherited from NSObject
|
|
2999
|
+
|
|
3000
|
+
static new(): MasonTextOverflowCompat; // inherited from NSObject
|
|
3001
|
+
|
|
3002
|
+
static readonly Clip: MasonTextOverflowCompat;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
declare const enum MasonTextTransform {
|
|
3006
|
+
|
|
3007
|
+
None = 0,
|
|
3008
|
+
|
|
3009
|
+
Capitalize = 1,
|
|
3010
|
+
|
|
3011
|
+
Uppercase = 2,
|
|
3012
|
+
|
|
3013
|
+
Lowercase = 3,
|
|
3014
|
+
|
|
3015
|
+
FullWidth = 4,
|
|
3016
|
+
|
|
3017
|
+
FullSizeKana = 5,
|
|
3018
|
+
|
|
3019
|
+
MathAuto = 6
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
declare const enum MasonTextType {
|
|
3023
|
+
|
|
3024
|
+
None = 0,
|
|
3025
|
+
|
|
3026
|
+
P = 1,
|
|
3027
|
+
|
|
3028
|
+
Span = 2,
|
|
3029
|
+
|
|
3030
|
+
Code = 3,
|
|
3031
|
+
|
|
3032
|
+
H1 = 4,
|
|
3033
|
+
|
|
3034
|
+
H2 = 5,
|
|
3035
|
+
|
|
3036
|
+
H3 = 6,
|
|
3037
|
+
|
|
3038
|
+
H4 = 7,
|
|
3039
|
+
|
|
3040
|
+
H5 = 8,
|
|
3041
|
+
|
|
3042
|
+
H6 = 9,
|
|
3043
|
+
|
|
3044
|
+
Li = 10,
|
|
3045
|
+
|
|
3046
|
+
Blockquote = 11,
|
|
3047
|
+
|
|
3048
|
+
B = 12,
|
|
3049
|
+
|
|
3050
|
+
Pre = 13,
|
|
3051
|
+
|
|
3052
|
+
Strong = 14,
|
|
3053
|
+
|
|
3054
|
+
Em = 15,
|
|
3055
|
+
|
|
3056
|
+
I = 16,
|
|
3057
|
+
|
|
3058
|
+
A = 17
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
declare const enum MasonTextWrap {
|
|
3062
|
+
|
|
3063
|
+
Wrap = 0,
|
|
3064
|
+
|
|
3065
|
+
NoWrap = 1,
|
|
3066
|
+
|
|
3067
|
+
Balance = 2,
|
|
3068
|
+
|
|
3069
|
+
Pretty = 3
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
declare class MasonUIView extends UIView implements MasonElementObjc {
|
|
3073
|
+
|
|
3074
|
+
static alloc(): MasonUIView; // inherited from NSObject
|
|
3075
|
+
|
|
3076
|
+
static appearance(): MasonUIView; // inherited from UIAppearance
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* @since 8.0
|
|
3080
|
+
*/
|
|
3081
|
+
static appearanceForTraitCollection(trait: UITraitCollection): MasonUIView; // inherited from UIAppearance
|
|
3082
|
+
|
|
3083
|
+
/**
|
|
3084
|
+
* @since 8.0
|
|
3085
|
+
* @deprecated 9.0
|
|
3086
|
+
*/
|
|
3087
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MasonUIView; // inherited from UIAppearance
|
|
3088
|
+
|
|
3089
|
+
/**
|
|
3090
|
+
* @since 9.0
|
|
3091
|
+
*/
|
|
3092
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonUIView; // inherited from UIAppearance
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* @since 5.0
|
|
3096
|
+
* @deprecated 9.0
|
|
3097
|
+
*/
|
|
3098
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MasonUIView; // inherited from UIAppearance
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* @since 9.0
|
|
3102
|
+
*/
|
|
3103
|
+
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MasonUIView; // inherited from UIAppearance
|
|
3104
|
+
|
|
3105
|
+
static createBlockView(mason: NSCMason): MasonUIView;
|
|
3106
|
+
|
|
3107
|
+
static createFlexView(mason: NSCMason): MasonUIView;
|
|
3108
|
+
|
|
3109
|
+
static createGridView(mason: NSCMason): MasonUIView;
|
|
3110
|
+
|
|
3111
|
+
static new(): MasonUIView; // inherited from NSObject
|
|
3112
|
+
|
|
3113
|
+
_position: MasonPosition;
|
|
3114
|
+
|
|
3115
|
+
alignContent: MasonAlignContent;
|
|
3116
|
+
|
|
3117
|
+
alignItems: MasonAlignItems;
|
|
3118
|
+
|
|
3119
|
+
alignSelf: MasonAlignSelf;
|
|
3120
|
+
|
|
3121
|
+
aspectRatio: number;
|
|
3122
|
+
|
|
3123
|
+
background: string;
|
|
3124
|
+
|
|
3125
|
+
contentOffset: CGPoint;
|
|
3126
|
+
|
|
3127
|
+
contentSize: CGSize;
|
|
3128
|
+
|
|
3129
|
+
direction: MasonDirection;
|
|
3130
|
+
|
|
3131
|
+
display: MasonDisplay;
|
|
3132
|
+
|
|
3133
|
+
flexBasisCompat: MasonDimensionCompat;
|
|
3134
|
+
|
|
3135
|
+
flexDirection: MasonFlexDirection;
|
|
3136
|
+
|
|
3137
|
+
flexGrow: number;
|
|
3138
|
+
|
|
3139
|
+
flexShrink: number;
|
|
3140
|
+
|
|
3141
|
+
flexWrap: MasonFlexWrap;
|
|
3142
|
+
|
|
3143
|
+
gridArea: string;
|
|
3144
|
+
|
|
3145
|
+
gridAutoColumns: string;
|
|
3146
|
+
|
|
3147
|
+
gridAutoFlow: MasonGridAutoFlowWrap;
|
|
3148
|
+
|
|
3149
|
+
gridAutoRows: string;
|
|
3150
|
+
|
|
3151
|
+
gridColumn: string;
|
|
3152
|
+
|
|
3153
|
+
gridColumnEnd: string;
|
|
3154
|
+
|
|
3155
|
+
gridColumnStart: string;
|
|
3156
|
+
|
|
3157
|
+
gridRow: string;
|
|
3158
|
+
|
|
3159
|
+
gridRowEnd: string;
|
|
3160
|
+
|
|
3161
|
+
gridRowStart: string;
|
|
3162
|
+
|
|
3163
|
+
gridTemplateAreas: string;
|
|
3164
|
+
|
|
3165
|
+
gridTemplateColumns: string;
|
|
3166
|
+
|
|
3167
|
+
gridTemplateRows: string;
|
|
3168
|
+
|
|
3169
|
+
inBatch: boolean;
|
|
3170
|
+
|
|
3171
|
+
justifyContent: MasonJustifyContent;
|
|
3172
|
+
|
|
3173
|
+
justifyItems: MasonJustifyItems;
|
|
3174
|
+
|
|
3175
|
+
justifySelf: MasonJustifySelf;
|
|
3176
|
+
|
|
3177
|
+
readonly mason: NSCMason;
|
|
3178
|
+
|
|
3179
|
+
overflowX: MasonOverflow;
|
|
3180
|
+
|
|
3181
|
+
overflowY: MasonOverflow;
|
|
3182
|
+
|
|
3183
|
+
scrollBarWidthCompat: MasonDimensionCompat;
|
|
3184
|
+
|
|
3185
|
+
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3186
|
+
|
|
3187
|
+
readonly description: string; // inherited from NSObjectProtocol
|
|
3188
|
+
|
|
3189
|
+
readonly hash: number; // inherited from NSObjectProtocol
|
|
3190
|
+
|
|
3191
|
+
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3192
|
+
|
|
3193
|
+
readonly node: MasonNode; // inherited from MasonElementObjc
|
|
3194
|
+
|
|
3195
|
+
readonly style: MasonStyle; // inherited from MasonElementObjc
|
|
3196
|
+
|
|
3197
|
+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3198
|
+
|
|
3199
|
+
readonly uiView: UIView; // inherited from MasonElementObjc
|
|
3200
|
+
|
|
3201
|
+
readonly // inherited from NSObjectProtocol
|
|
3202
|
+
|
|
3203
|
+
addSubviews(views: NSArray<UIView> | UIView[]): void;
|
|
3204
|
+
|
|
3205
|
+
addSubviewsAt(views: NSArray<UIView> | UIView[], index: number): void;
|
|
3206
|
+
|
|
3207
|
+
addView(view: UIView): void;
|
|
3208
|
+
|
|
3209
|
+
addViewAt(view: UIView, at: number): void;
|
|
3210
|
+
|
|
3211
|
+
class(): typeof NSObject;
|
|
3212
|
+
|
|
3213
|
+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3214
|
+
|
|
3215
|
+
getBorderBottom(): MasonLengthPercentageCompat;
|
|
3216
|
+
|
|
3217
|
+
getBorderLeft(): MasonLengthPercentageCompat;
|
|
3218
|
+
|
|
3219
|
+
getBorderRight(): MasonLengthPercentageCompat;
|
|
3220
|
+
|
|
3221
|
+
getBorderTop(): MasonLengthPercentageCompat;
|
|
3222
|
+
|
|
3223
|
+
getBorderWidth(): MasonLengthPercentageRectCompat;
|
|
3224
|
+
|
|
3225
|
+
getColumnGap(): MasonLengthPercentageCompat;
|
|
3226
|
+
|
|
3227
|
+
getGap(): MasonLengthPercentageSizeCompat;
|
|
3228
|
+
|
|
3229
|
+
getInset(): MasonLengthPercentageAutoRectCompat;
|
|
3230
|
+
|
|
3231
|
+
getInsetBottom(): MasonLengthPercentageAutoCompat;
|
|
3232
|
+
|
|
3233
|
+
getInsetLeft(): MasonLengthPercentageAutoCompat;
|
|
3234
|
+
|
|
3235
|
+
getInsetRight(): MasonLengthPercentageAutoCompat;
|
|
3236
|
+
|
|
3237
|
+
getInsetTop(): MasonLengthPercentageAutoCompat;
|
|
3238
|
+
|
|
3239
|
+
getMargin(): MasonLengthPercentageAutoRectCompat;
|
|
3240
|
+
|
|
3241
|
+
getMarginBottom(): MasonLengthPercentageAutoCompat;
|
|
3242
|
+
|
|
3243
|
+
getMarginLeft(): MasonLengthPercentageAutoCompat;
|
|
3244
|
+
|
|
3245
|
+
getMarginRight(): MasonLengthPercentageAutoCompat;
|
|
3246
|
+
|
|
3247
|
+
getMarginTop(): MasonLengthPercentageAutoCompat;
|
|
3248
|
+
|
|
3249
|
+
getMaxSize(): MasonDimensionSizeCompat;
|
|
3250
|
+
|
|
3251
|
+
getMaxSizeHeight(): MasonDimensionCompat;
|
|
3252
|
+
|
|
3253
|
+
getMaxSizeWidth(): MasonDimensionCompat;
|
|
3254
|
+
|
|
3255
|
+
getMinSize(): MasonDimensionSizeCompat;
|
|
3256
|
+
|
|
3257
|
+
getMinSizeHeight(): MasonDimensionCompat;
|
|
3258
|
+
|
|
3259
|
+
getMinSizeWidth(): MasonDimensionCompat;
|
|
3260
|
+
|
|
3261
|
+
getPadding(): MasonLengthPercentageRectCompat;
|
|
3262
|
+
|
|
3263
|
+
getPaddingBottom(): MasonLengthPercentageCompat;
|
|
3264
|
+
|
|
3265
|
+
getPaddingLeft(): MasonLengthPercentageCompat;
|
|
3266
|
+
|
|
3267
|
+
getPaddingRight(): MasonLengthPercentageCompat;
|
|
3268
|
+
|
|
3269
|
+
getPaddingTop(): MasonLengthPercentageCompat;
|
|
3270
|
+
|
|
3271
|
+
getRowGap(): MasonLengthPercentageCompat;
|
|
3272
|
+
|
|
3273
|
+
getSize(): MasonDimensionSizeCompat;
|
|
3274
|
+
|
|
3275
|
+
getSizeHeight(): MasonDimensionCompat;
|
|
3276
|
+
|
|
3277
|
+
getSizeWidth(): MasonDimensionCompat;
|
|
3278
|
+
|
|
3279
|
+
isEqual(object: any): boolean;
|
|
3280
|
+
|
|
3281
|
+
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3282
|
+
|
|
3283
|
+
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3284
|
+
|
|
3285
|
+
isNodeDirty(): boolean;
|
|
3286
|
+
|
|
3287
|
+
markNodeDirty(): void;
|
|
3288
|
+
|
|
3289
|
+
performSelector(aSelector: string): any;
|
|
3290
|
+
|
|
3291
|
+
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3292
|
+
|
|
3293
|
+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3294
|
+
|
|
3295
|
+
respondsToSelector(aSelector: string): boolean;
|
|
3296
|
+
|
|
3297
|
+
retainCount(): number;
|
|
3298
|
+
|
|
3299
|
+
self(): this;
|
|
3300
|
+
|
|
3301
|
+
setBorderBottomWidth(bottom: number, type: number): void;
|
|
3302
|
+
|
|
3303
|
+
setBorderLeftWidth(left: number, type: number): void;
|
|
3304
|
+
|
|
3305
|
+
setBorderRightWidth(right: number, type: number): void;
|
|
3306
|
+
|
|
3307
|
+
setBorderTopWidth(top: number, type: number): void;
|
|
3308
|
+
|
|
3309
|
+
setBorderWidth(left: number, top: number, right: number, bottom: number): void;
|
|
3310
|
+
|
|
3311
|
+
setColumnGap(column: number, type: number): void;
|
|
3312
|
+
|
|
3313
|
+
setGap(width: number, height: number): void;
|
|
3314
|
+
|
|
3315
|
+
setGapWithWidthHeightType(width: number, width_type: number, height: number, height_type: number): void;
|
|
3316
|
+
|
|
3317
|
+
setInset(left: number, top: number, right: number, bottom: number): void;
|
|
3318
|
+
|
|
3319
|
+
setInsetBottom(bottom: number, type: number): void;
|
|
3320
|
+
|
|
3321
|
+
setInsetLeft(left: number, type: number): void;
|
|
3322
|
+
|
|
3323
|
+
setInsetRight(right: number, type: number): void;
|
|
3324
|
+
|
|
3325
|
+
setInsetTop(top: number, type: number): void;
|
|
3326
|
+
|
|
3327
|
+
setMargin(left: number, top: number, right: number, bottom: number): void;
|
|
3328
|
+
|
|
3329
|
+
setMarginBottom(bottom: number, type: number): void;
|
|
3330
|
+
|
|
3331
|
+
setMarginLeft(left: number, type: number): void;
|
|
3332
|
+
|
|
3333
|
+
setMarginRight(right: number, type: number): void;
|
|
3334
|
+
|
|
3335
|
+
setMarginTop(top: number, type: number): void;
|
|
3336
|
+
|
|
3337
|
+
setMaxSize(width: number, height: number): void;
|
|
3338
|
+
|
|
3339
|
+
setMaxSizeHeight(height: number, type: number): void;
|
|
3340
|
+
|
|
3341
|
+
setMaxSizeWidth(width: number, type: number): void;
|
|
3342
|
+
|
|
3343
|
+
setMinSize(width: number, height: number): void;
|
|
3344
|
+
|
|
3345
|
+
setMinSizeHeight(height: number, type: number): void;
|
|
3346
|
+
|
|
3347
|
+
setMinSizeWidth(width: number, type: number): void;
|
|
3348
|
+
|
|
3349
|
+
setPadding(left: number, top: number, right: number, bottom: number): void;
|
|
3350
|
+
|
|
3351
|
+
setPaddingBottom(bottom: number, type: number): void;
|
|
3352
|
+
|
|
3353
|
+
setPaddingLeft(left: number, type: number): void;
|
|
3354
|
+
|
|
3355
|
+
setPaddingRight(right: number, type: number): void;
|
|
3356
|
+
|
|
3357
|
+
setPaddingTop(top: number, type: number): void;
|
|
3358
|
+
|
|
3359
|
+
setRowGap(row: number, type: number): void;
|
|
3360
|
+
|
|
3361
|
+
setSize(width: number, height: number): void;
|
|
3362
|
+
|
|
3363
|
+
setSizeHeight(height: number, type: number): void;
|
|
3364
|
+
|
|
3365
|
+
setSizeWidth(width: number, type: number): void;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
declare var MasonVersionNumber: number;
|
|
3369
|
+
|
|
3370
|
+
declare var MasonVersionString: interop.Reference<number>;
|
|
3371
|
+
|
|
3372
|
+
declare class MasonVerticalAlignValue extends NSObject {
|
|
3373
|
+
|
|
3374
|
+
static alloc(): MasonVerticalAlignValue; // inherited from NSObject
|
|
3375
|
+
|
|
3376
|
+
static new(): MasonVerticalAlignValue; // inherited from NSObject
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
declare const enum MasonWhiteSpace {
|
|
3380
|
+
|
|
3381
|
+
Normal = 0,
|
|
3382
|
+
|
|
3383
|
+
Pre = 1,
|
|
3384
|
+
|
|
3385
|
+
PreWrap = 2,
|
|
3386
|
+
|
|
3387
|
+
PreLine = 3,
|
|
3388
|
+
|
|
3389
|
+
NoWrap = 4,
|
|
3390
|
+
|
|
3391
|
+
BreakSpaces = 5
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
declare class MaxSizing extends NSObject {
|
|
3395
|
+
|
|
3396
|
+
static FitContent(fit: number): MaxSizing;
|
|
3397
|
+
|
|
3398
|
+
static FitContentPercent(fit: number): MaxSizing;
|
|
3399
|
+
|
|
3400
|
+
static Fraction(flex: number): MaxSizing;
|
|
3401
|
+
|
|
3402
|
+
static Percent(percent: number): MaxSizing;
|
|
3403
|
+
|
|
3404
|
+
static Points(points: number): MaxSizing;
|
|
3405
|
+
|
|
3406
|
+
static alloc(): MaxSizing; // inherited from NSObject
|
|
3407
|
+
|
|
3408
|
+
static new(): MaxSizing; // inherited from NSObject
|
|
3409
|
+
|
|
3410
|
+
readonly cssValue: string;
|
|
3411
|
+
|
|
3412
|
+
readonly jsonValue: string;
|
|
3413
|
+
|
|
3414
|
+
readonly value: number;
|
|
3415
|
+
|
|
3416
|
+
static readonly Auto: MaxSizing;
|
|
3417
|
+
|
|
3418
|
+
static readonly MaxContent: MaxSizing;
|
|
3419
|
+
|
|
3420
|
+
static readonly MinContent: MaxSizing;
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
declare class MeasureOutput extends NSObject {
|
|
3424
|
+
|
|
3425
|
+
static alloc(): MeasureOutput; // inherited from NSObject
|
|
3426
|
+
|
|
3427
|
+
static new(): MeasureOutput; // inherited from NSObject
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
declare class MinMax extends NSObject {
|
|
3431
|
+
|
|
3432
|
+
static FitContentPercentWithFit(fit: number): MinMax;
|
|
3433
|
+
|
|
3434
|
+
static FitContentWithFit(fit: number): MinMax;
|
|
3435
|
+
|
|
3436
|
+
static FlexWithFlex(flex: number): MinMax;
|
|
3437
|
+
|
|
3438
|
+
static PercentWithPercent(percent: number): MinMax;
|
|
3439
|
+
|
|
3440
|
+
static PointsWithPoints(points: number): MinMax;
|
|
3441
|
+
|
|
3442
|
+
static alloc(): MinMax; // inherited from NSObject
|
|
3443
|
+
|
|
3444
|
+
static fromTypeValue(minType: number, minValue: number, maxType: number, maxValue: number): MinMax;
|
|
3445
|
+
|
|
3446
|
+
static new(): MinMax; // inherited from NSObject
|
|
3447
|
+
|
|
3448
|
+
readonly cssValue: string;
|
|
3449
|
+
|
|
3450
|
+
readonly jsonValue: string;
|
|
3451
|
+
|
|
3452
|
+
static readonly Auto: MinMax;
|
|
3453
|
+
|
|
3454
|
+
constructor();
|
|
3455
|
+
|
|
3456
|
+
init(min: MinSizing, max: MaxSizing): this;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
declare class MinSizing extends NSObject {
|
|
3460
|
+
|
|
3461
|
+
static Percent(percent: number): MinSizing;
|
|
3462
|
+
|
|
3463
|
+
static Points(points: number): MinSizing;
|
|
3464
|
+
|
|
3465
|
+
static alloc(): MinSizing; // inherited from NSObject
|
|
3466
|
+
|
|
3467
|
+
static new(): MinSizing; // inherited from NSObject
|
|
3468
|
+
|
|
3469
|
+
readonly cssValue: string;
|
|
3470
|
+
|
|
3471
|
+
readonly jsonValue: string;
|
|
3472
|
+
|
|
3473
|
+
readonly value: number;
|
|
3474
|
+
|
|
3475
|
+
static readonly Auto: MinSizing;
|
|
3476
|
+
|
|
3477
|
+
static readonly MaxContent: MinSizing;
|
|
3478
|
+
|
|
3479
|
+
static readonly MinContent: MinSizing;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
declare class NSCFontDescriptors extends NSObject implements NSMutableCopying {
|
|
3483
|
+
|
|
3484
|
+
static alloc(): NSCFontDescriptors; // inherited from NSObject
|
|
3485
|
+
|
|
3486
|
+
static new(): NSCFontDescriptors; // inherited from NSObject
|
|
3487
|
+
|
|
3488
|
+
constructor(o: { family: string; });
|
|
3489
|
+
|
|
3490
|
+
initWithFamily(family: string): this;
|
|
3491
|
+
|
|
3492
|
+
mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
3493
|
+
|
|
3494
|
+
setFontStyle(value: string): void;
|
|
3495
|
+
|
|
3496
|
+
setFontWeight(value: string): void;
|
|
3497
|
+
|
|
3498
|
+
update(value: string): void;
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
declare const enum NSCFontDisplay {
|
|
3502
|
+
|
|
3503
|
+
Auto = 0,
|
|
3504
|
+
|
|
3505
|
+
Block = 1,
|
|
3506
|
+
|
|
3507
|
+
Fallback = 2,
|
|
3508
|
+
|
|
3509
|
+
Optional = 3,
|
|
3510
|
+
|
|
3511
|
+
Swap = 4
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
declare class NSCFontFace extends NSObject {
|
|
3515
|
+
|
|
3516
|
+
static alloc(): NSCFontFace; // inherited from NSObject
|
|
3517
|
+
|
|
3518
|
+
static importFromRemoteWithUrlLoadCallback(url: string, load: boolean, callback: (p1: NSArray<NSCFontFace>, p2: string) => void): void;
|
|
3519
|
+
|
|
3520
|
+
static loadFromStyleWithStyle(style: string): NSCFontFace;
|
|
3521
|
+
|
|
3522
|
+
static new(): NSCFontFace; // inherited from NSObject
|
|
3523
|
+
|
|
3524
|
+
readonly ascentOverride: string;
|
|
3525
|
+
|
|
3526
|
+
readonly descentOverride: string;
|
|
3527
|
+
|
|
3528
|
+
display: NSCFontDisplay;
|
|
3529
|
+
|
|
3530
|
+
readonly family: string;
|
|
3531
|
+
|
|
3532
|
+
readonly font: any;
|
|
3533
|
+
|
|
3534
|
+
readonly fontData: NSData;
|
|
3535
|
+
|
|
3536
|
+
status: NSCFontFaceStatus;
|
|
3537
|
+
|
|
3538
|
+
style: string;
|
|
3539
|
+
|
|
3540
|
+
weight: NSCFontWeight;
|
|
3541
|
+
|
|
3542
|
+
constructor();
|
|
3543
|
+
|
|
3544
|
+
constructor(o: { data: string; });
|
|
3545
|
+
|
|
3546
|
+
constructor(o: { family: string; });
|
|
3547
|
+
|
|
3548
|
+
constructor(o: { family: string; data: NSData; });
|
|
3549
|
+
|
|
3550
|
+
constructor(o: { family: string; owner: MasonStyle; });
|
|
3551
|
+
|
|
3552
|
+
constructor(o: { family: string; source: string; });
|
|
3553
|
+
|
|
3554
|
+
init(family: string, source: string, descriptors: NSCFontDescriptors): this;
|
|
3555
|
+
|
|
3556
|
+
initData(family: string, data: NSData, descriptors: NSCFontDescriptors): this;
|
|
3557
|
+
|
|
3558
|
+
initWithFamily(family: string): this;
|
|
3559
|
+
|
|
3560
|
+
initWithFamilyData(family: string, source: NSData): this;
|
|
3561
|
+
|
|
3562
|
+
initWithFamilyOwner(family: string, style: MasonStyle): this;
|
|
3563
|
+
|
|
3564
|
+
initWithFamilySource(family: string, source: string): this;
|
|
3565
|
+
|
|
3566
|
+
load(callback: (p1: string) => void): void;
|
|
3567
|
+
|
|
3568
|
+
setFontDisplayWithValue(value: string): void;
|
|
3569
|
+
|
|
3570
|
+
setFontStyleWithValueAngle(value: string, angle: string): void;
|
|
3571
|
+
|
|
3572
|
+
setFontWeightWithValue(value: string): void;
|
|
3573
|
+
|
|
3574
|
+
updateDescriptorWithValue(value: string): void;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
declare class NSCFontFaceSet extends NSObject {
|
|
3578
|
+
|
|
3579
|
+
static alloc(): NSCFontFaceSet; // inherited from NSObject
|
|
3580
|
+
|
|
3581
|
+
static new(): NSCFontFaceSet; // inherited from NSObject
|
|
3582
|
+
|
|
3583
|
+
onStatus: (p1: NSCFontFaceSetStatus) => void;
|
|
3584
|
+
|
|
3585
|
+
readonly size: number;
|
|
3586
|
+
|
|
3587
|
+
status: NSCFontFaceSetStatus;
|
|
3588
|
+
|
|
3589
|
+
static readonly instance: NSCFontFaceSet;
|
|
3590
|
+
|
|
3591
|
+
add(font: NSCFontFace): void;
|
|
3592
|
+
|
|
3593
|
+
array(): NSArray<any>;
|
|
3594
|
+
|
|
3595
|
+
check(font: string, text: string): boolean;
|
|
3596
|
+
|
|
3597
|
+
clear(): void;
|
|
3598
|
+
|
|
3599
|
+
delete(font: NSCFontFace): void;
|
|
3600
|
+
|
|
3601
|
+
get(fontFamily: string): NSCFontFace;
|
|
3602
|
+
|
|
3603
|
+
getOrNil(fontFamily: string): NSCFontFace;
|
|
3604
|
+
|
|
3605
|
+
iter(): NSEnumerator<any>;
|
|
3606
|
+
|
|
3607
|
+
load(font: string, text: string, callback: (p1: NSArray<NSCFontFace>, p2: string) => void): void;
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
declare const enum NSCFontFaceSetStatus {
|
|
3611
|
+
|
|
3612
|
+
Loading = 0,
|
|
3613
|
+
|
|
3614
|
+
Loaded = 1
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
declare const enum NSCFontFaceStatus {
|
|
3618
|
+
|
|
3619
|
+
Unloaded = 0,
|
|
3620
|
+
|
|
3621
|
+
Loading = 1,
|
|
3622
|
+
|
|
3623
|
+
Loaded = 2,
|
|
3624
|
+
|
|
3625
|
+
Error = 3
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
declare const enum NSCFontWeight {
|
|
3629
|
+
|
|
3630
|
+
Thin = 0,
|
|
3631
|
+
|
|
3632
|
+
ExtraLight = 1,
|
|
3633
|
+
|
|
3634
|
+
Light = 2,
|
|
3635
|
+
|
|
3636
|
+
Normal = 3,
|
|
3637
|
+
|
|
3638
|
+
Medium = 4,
|
|
3639
|
+
|
|
3640
|
+
SemiBold = 5,
|
|
3641
|
+
|
|
3642
|
+
Bold = 6,
|
|
3643
|
+
|
|
3644
|
+
ExtraBold = 7,
|
|
3645
|
+
|
|
3646
|
+
Black = 8
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
declare class NSCMason extends NSObject {
|
|
3650
|
+
|
|
3651
|
+
static alloc(): NSCMason; // inherited from NSObject
|
|
3652
|
+
|
|
3653
|
+
static new(): NSCMason; // inherited from NSObject
|
|
3654
|
+
|
|
3655
|
+
static setShared(value: NSCMason): void;
|
|
3656
|
+
|
|
3657
|
+
htmlParser: MasonHTMLParser;
|
|
3658
|
+
|
|
3659
|
+
readonly nativePtr: interop.Pointer | interop.Reference<any>;
|
|
3660
|
+
|
|
3661
|
+
preflight: boolean;
|
|
3662
|
+
|
|
3663
|
+
static readonly scale: number;
|
|
3664
|
+
|
|
3665
|
+
static shared: NSCMason;
|
|
3666
|
+
|
|
3667
|
+
addEventListener(node: MasonNode, event: string, listener: (p1: MasonEvent) => void): NSUUID;
|
|
3668
|
+
|
|
3669
|
+
clear(): void;
|
|
3670
|
+
|
|
3671
|
+
configureStyleForView(view: UIView, block: (p1: MasonStyle) => void): void;
|
|
3672
|
+
|
|
3673
|
+
createBr(): MasonBr;
|
|
3674
|
+
|
|
3675
|
+
createButton(): MasonButton;
|
|
3676
|
+
|
|
3677
|
+
createButtonNode(): MasonNode;
|
|
3678
|
+
|
|
3679
|
+
createDocument(): MasonDocument;
|
|
3680
|
+
|
|
3681
|
+
createImageNode(): MasonNode;
|
|
3682
|
+
|
|
3683
|
+
createImageView(): MasonImg;
|
|
3684
|
+
|
|
3685
|
+
createInput(type: MasonInputType): MasonInput;
|
|
3686
|
+
|
|
3687
|
+
createLineBreakNode(): MasonNode;
|
|
3688
|
+
|
|
3689
|
+
createListItem(): MasonLi;
|
|
3690
|
+
|
|
3691
|
+
createListItemNode(): MasonNode;
|
|
3692
|
+
|
|
3693
|
+
createListViewWithIsOrdered(isOrdered: boolean): MasonList;
|
|
3694
|
+
|
|
3695
|
+
createNode(): MasonNode;
|
|
3696
|
+
|
|
3697
|
+
createScrollView(): MasonScroll;
|
|
3698
|
+
|
|
3699
|
+
createTextArea(): MasonTextArea;
|
|
3700
|
+
|
|
3701
|
+
createTextNode(): MasonNode;
|
|
3702
|
+
|
|
3703
|
+
createTextView(): MasonText;
|
|
3704
|
+
|
|
3705
|
+
createTextViewWithType(type: MasonTextType): MasonText;
|
|
3706
|
+
|
|
3707
|
+
createView(): MasonUIView;
|
|
3708
|
+
|
|
3709
|
+
dispatch(event: MasonEvent, node: MasonNode): void;
|
|
3710
|
+
|
|
3711
|
+
layoutForView(view: UIView): MasonLayout;
|
|
3712
|
+
|
|
3713
|
+
nodeForView(view: UIView, isLeaf: boolean): MasonNode;
|
|
3714
|
+
|
|
3715
|
+
printTree(node: MasonNode): void;
|
|
3716
|
+
|
|
3717
|
+
removeEventListener(node: MasonNode, event: string): boolean;
|
|
3718
|
+
|
|
3719
|
+
removeEventListenerId(node: MasonNode, event: string, id: NSUUID): boolean;
|
|
3720
|
+
|
|
3721
|
+
setDeviceScale(value: number): void;
|
|
3722
|
+
|
|
3723
|
+
styleForView(view: UIView): MasonStyle;
|
|
3724
|
+
|
|
3725
|
+
styleForViewOrNode(viewOrNode: any): MasonStyle;
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
interface NodeArray {
|
|
3729
|
+
array: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>;
|
|
3730
|
+
length: number;
|
|
3731
|
+
}
|
|
3732
|
+
declare var NodeArray: interop.StructType<NodeArray>;
|
|
3733
|
+
|
|
3734
|
+
declare const enum PseudoState {
|
|
3735
|
+
|
|
3736
|
+
Default = 0,
|
|
3737
|
+
|
|
3738
|
+
Hover = 1,
|
|
3739
|
+
|
|
3740
|
+
Active = 2,
|
|
3741
|
+
|
|
3742
|
+
Focus = 4,
|
|
3743
|
+
|
|
3744
|
+
FocusWithin = 8,
|
|
3745
|
+
|
|
3746
|
+
FocusVisible = 16,
|
|
3747
|
+
|
|
3748
|
+
Disabled = 64,
|
|
3749
|
+
|
|
3750
|
+
Checked = 128
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
declare class TrackSizingFunction extends NSObject {
|
|
3754
|
+
|
|
3755
|
+
static AutoRepeat(gridTrackRepetition: MasonGridTrackRepetition, value: NSArray<MinMax> | MinMax[]): TrackSizingFunction;
|
|
3756
|
+
|
|
3757
|
+
static Single(value: MinMax): TrackSizingFunction;
|
|
3758
|
+
|
|
3759
|
+
static alloc(): TrackSizingFunction; // inherited from NSObject
|
|
3760
|
+
|
|
3761
|
+
static new(): TrackSizingFunction; // inherited from NSObject
|
|
3762
|
+
|
|
3763
|
+
readonly cssValue: string;
|
|
3764
|
+
|
|
3765
|
+
readonly isRepeating: boolean;
|
|
3766
|
+
|
|
3767
|
+
readonly value: any;
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
declare const enum TransformOpType {
|
|
3771
|
+
|
|
3772
|
+
None = 0,
|
|
3773
|
+
|
|
3774
|
+
Translate = 1,
|
|
3775
|
+
|
|
3776
|
+
TranslateX = 2,
|
|
3777
|
+
|
|
3778
|
+
TranslateY = 3,
|
|
3779
|
+
|
|
3780
|
+
Scale = 4,
|
|
3781
|
+
|
|
3782
|
+
ScaleX = 5,
|
|
3783
|
+
|
|
3784
|
+
ScaleY = 6,
|
|
3785
|
+
|
|
3786
|
+
Rotate = 7,
|
|
3787
|
+
|
|
3788
|
+
SkewX = 8,
|
|
3789
|
+
|
|
3790
|
+
SkewY = 9
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
declare function mason_clear(mason: interop.Pointer | interop.Reference<any>): void;
|
|
3794
|
+
|
|
3795
|
+
declare function mason_get_buffer(mason: interop.Pointer | interop.Reference<any>, handle: number): interop.Pointer | interop.Reference<any>;
|
|
3796
|
+
|
|
3797
|
+
declare function mason_get_preflight(): boolean;
|
|
3798
|
+
|
|
3799
|
+
declare function mason_init(): interop.Pointer | interop.Reference<any>;
|
|
3800
|
+
|
|
3801
|
+
declare function mason_node_add_child(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>): void;
|
|
3802
|
+
|
|
3803
|
+
declare function mason_node_add_child_at(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>, index: number): void;
|
|
3804
|
+
|
|
3805
|
+
declare function mason_node_add_children(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): void;
|
|
3806
|
+
|
|
3807
|
+
declare function mason_node_array_destroy(array: interop.Pointer | interop.Reference<NodeArray>): void;
|
|
3808
|
+
|
|
3809
|
+
declare function mason_node_clear_segments(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3810
|
+
|
|
3811
|
+
declare function mason_node_compute(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3812
|
+
|
|
3813
|
+
declare function mason_node_compute_and_layout(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, layout: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>, p2: number) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3814
|
+
|
|
3815
|
+
declare function mason_node_compute_max_content(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3816
|
+
|
|
3817
|
+
declare function mason_node_compute_max_content_and_layout(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, layout: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>, p2: number) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3818
|
+
|
|
3819
|
+
declare function mason_node_compute_min_content(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3820
|
+
|
|
3821
|
+
declare function mason_node_compute_min_content_and_layout(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, layout: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>, p2: number) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3822
|
+
|
|
3823
|
+
declare function mason_node_compute_wh(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, width: number, height: number): void;
|
|
3824
|
+
|
|
3825
|
+
declare function mason_node_compute_wh_and_layout(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, width: number, height: number, layout: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>, p2: number) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3826
|
+
|
|
3827
|
+
declare function mason_node_destroy(node: interop.Pointer | interop.Reference<any>): void;
|
|
3828
|
+
|
|
3829
|
+
declare function mason_node_dirty(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): boolean;
|
|
3830
|
+
|
|
3831
|
+
declare function mason_node_get_child_at(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, index: number): interop.Pointer | interop.Reference<any>;
|
|
3832
|
+
|
|
3833
|
+
declare function mason_node_get_children(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<NodeArray>;
|
|
3834
|
+
|
|
3835
|
+
declare function mason_node_get_float_rects(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, callback: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3836
|
+
|
|
3837
|
+
declare function mason_node_get_float_rects_buffer(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<CMasonBuffer>;
|
|
3838
|
+
|
|
3839
|
+
declare function mason_node_get_pseudo_states(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): number;
|
|
3840
|
+
|
|
3841
|
+
declare function mason_node_get_pseudo_style_buffer(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flags: number, out_len: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any>;
|
|
3842
|
+
|
|
3843
|
+
declare function mason_node_get_pseudo_style_buffer_apple(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flags: number): interop.Pointer | interop.Reference<any>;
|
|
3844
|
+
|
|
3845
|
+
declare function mason_node_get_state_buffer(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, out_len: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any>;
|
|
3846
|
+
|
|
3847
|
+
declare function mason_node_get_state_buffer_mut(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, out_len: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any>;
|
|
3848
|
+
|
|
3849
|
+
declare function mason_node_has_pseudo_state(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flag: number): boolean;
|
|
3850
|
+
|
|
3851
|
+
declare function mason_node_insert_child_after(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>, reference: interop.Pointer | interop.Reference<any>): void;
|
|
3852
|
+
|
|
3853
|
+
declare function mason_node_insert_child_before(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>, reference: interop.Pointer | interop.Reference<any>): void;
|
|
3854
|
+
|
|
3855
|
+
declare function mason_node_is_children_same(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): boolean;
|
|
3856
|
+
|
|
3857
|
+
declare function mason_node_is_equal(node_a: interop.Pointer | interop.Reference<any>, node_b: interop.Pointer | interop.Reference<any>): boolean;
|
|
3858
|
+
|
|
3859
|
+
declare function mason_node_layout(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, layout: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<number>, p2: number) => interop.Pointer | interop.Reference<any>>): interop.Pointer | interop.Reference<any>;
|
|
3860
|
+
|
|
3861
|
+
declare function mason_node_mark_dirty(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3862
|
+
|
|
3863
|
+
declare function mason_node_new_button_node(mason: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3864
|
+
|
|
3865
|
+
declare function mason_node_new_button_node_with_context(mason: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): interop.Pointer | interop.Reference<any>;
|
|
3866
|
+
|
|
3867
|
+
declare function mason_node_new_image_node(mason: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3868
|
+
|
|
3869
|
+
declare function mason_node_new_line_break_node(mason: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3870
|
+
|
|
3871
|
+
declare function mason_node_new_line_break_node_with_context(mason: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): interop.Pointer | interop.Reference<any>;
|
|
3872
|
+
|
|
3873
|
+
declare function mason_node_new_list_item_node(mason: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3874
|
+
|
|
3875
|
+
declare function mason_node_new_list_item_node_with_context(mason: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): interop.Pointer | interop.Reference<any>;
|
|
3876
|
+
|
|
3877
|
+
declare function mason_node_new_node(mason: interop.Pointer | interop.Reference<any>, anonymous: boolean): interop.Pointer | interop.Reference<any>;
|
|
3878
|
+
|
|
3879
|
+
declare function mason_node_new_node_with_children(mason: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): interop.Pointer | interop.Reference<any>;
|
|
3880
|
+
|
|
3881
|
+
declare function mason_node_new_node_with_context(mason: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): interop.Pointer | interop.Reference<any>;
|
|
3882
|
+
|
|
3883
|
+
declare function mason_node_new_text_node(mason: interop.Pointer | interop.Reference<any>, anonymous: boolean): interop.Pointer | interop.Reference<any>;
|
|
3884
|
+
|
|
3885
|
+
declare function mason_node_new_text_node_with_children(mason: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): interop.Pointer | interop.Reference<any>;
|
|
3886
|
+
|
|
3887
|
+
declare function mason_node_new_text_node_with_context(mason: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): interop.Pointer | interop.Reference<any>;
|
|
3888
|
+
|
|
3889
|
+
declare function mason_node_prepare_pseudo_style_buffer(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flags: number, out_len: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any>;
|
|
3890
|
+
|
|
3891
|
+
declare function mason_node_prepare_pseudo_style_buffer_apple(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flags: number): interop.Pointer | interop.Reference<any>;
|
|
3892
|
+
|
|
3893
|
+
declare function mason_node_prepend(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>): void;
|
|
3894
|
+
|
|
3895
|
+
declare function mason_node_prepend_children(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): void;
|
|
3896
|
+
|
|
3897
|
+
declare function mason_node_release_float_rects_buffer(buffer: interop.Pointer | interop.Reference<CMasonBuffer>): void;
|
|
3898
|
+
|
|
3899
|
+
declare function mason_node_remove_child(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3900
|
+
|
|
3901
|
+
declare function mason_node_remove_child_at(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, index: number): interop.Pointer | interop.Reference<any>;
|
|
3902
|
+
|
|
3903
|
+
declare function mason_node_remove_children(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3904
|
+
|
|
3905
|
+
declare function mason_node_remove_context(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3906
|
+
|
|
3907
|
+
declare function mason_node_replace_child_at(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, child: interop.Pointer | interop.Reference<any>, index: number): interop.Pointer | interop.Reference<any>;
|
|
3908
|
+
|
|
3909
|
+
declare function mason_node_set_apple_node(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, apple_node: interop.Pointer | interop.Reference<any>): void;
|
|
3910
|
+
|
|
3911
|
+
declare function mason_node_set_children(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, children: interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>, children_size: number): void;
|
|
3912
|
+
|
|
3913
|
+
declare function mason_node_set_context(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, measure_data: interop.Pointer | interop.Reference<any>, measure: interop.FunctionReference<(p1: interop.Pointer | interop.Reference<any>, p2: number, p3: number, p4: number, p5: number) => number>): void;
|
|
3914
|
+
|
|
3915
|
+
declare function mason_node_set_pseudo_states(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, flags: number): void;
|
|
3916
|
+
|
|
3917
|
+
declare function mason_print_tree(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3918
|
+
|
|
3919
|
+
declare function mason_release(mason: interop.Pointer | interop.Reference<any>): void;
|
|
3920
|
+
|
|
3921
|
+
declare function mason_set_device_scale(mason: interop.Pointer | interop.Reference<any>, scale: number): void;
|
|
3922
|
+
|
|
3923
|
+
declare function mason_set_preflight(mason: interop.Pointer | interop.Reference<any>, enabled: boolean): void;
|
|
3924
|
+
|
|
3925
|
+
declare function mason_style_get_grid_area_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3926
|
+
|
|
3927
|
+
declare function mason_style_get_grid_auto_columns_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3928
|
+
|
|
3929
|
+
declare function mason_style_get_grid_auto_rows_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3930
|
+
|
|
3931
|
+
declare function mason_style_get_grid_column_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3932
|
+
|
|
3933
|
+
declare function mason_style_get_grid_column_end_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3934
|
+
|
|
3935
|
+
declare function mason_style_get_grid_column_start_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3936
|
+
|
|
3937
|
+
declare function mason_style_get_grid_row_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3938
|
+
|
|
3939
|
+
declare function mason_style_get_grid_row_end_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3940
|
+
|
|
3941
|
+
declare function mason_style_get_grid_row_start_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3942
|
+
|
|
3943
|
+
declare function mason_style_get_grid_template_areas_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3944
|
+
|
|
3945
|
+
declare function mason_style_get_grid_template_columns_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3946
|
+
|
|
3947
|
+
declare function mason_style_get_grid_template_rows_css(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3948
|
+
|
|
3949
|
+
declare function mason_style_get_style_buffer(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<CMasonBuffer>;
|
|
3950
|
+
|
|
3951
|
+
declare function mason_style_get_style_buffer_apple(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
|
3952
|
+
|
|
3953
|
+
declare function mason_style_prepare_style_for_mut(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>): void;
|
|
3954
|
+
|
|
3955
|
+
declare function mason_style_release_style_buffer(buffer: interop.Pointer | interop.Reference<CMasonBuffer>): void;
|
|
3956
|
+
|
|
3957
|
+
declare function mason_style_set_with_values(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, display: number, position: number, direction: number, flex_direction: number, flex_wrap: number, overflow: number, align_items: number, align_self: number, align_content: number, justify_items: number, justify_self: number, justify_content: number, inset_left_type: number, inset_left_value: number, inset_right_type: number, inset_right_value: number, inset_top_type: number, inset_top_value: number, inset_bottom_type: number, inset_bottom_value: number, margin_left_type: number, margin_left_value: number, margin_right_type: number, margin_right_value: number, margin_top_type: number, margin_top_value: number, margin_bottom_type: number, margin_bottom_value: number, padding_left_type: number, padding_left_value: number, padding_right_type: number, padding_right_value: number, padding_top_type: number, padding_top_value: number, padding_bottom_type: number, padding_bottom_value: number, border_left_type: number, border_left_value: number, border_right_type: number, border_right_value: number, border_top_type: number, border_top_value: number, border_bottom_type: number, border_bottom_value: number, flex_grow: number, flex_shrink: number, flex_basis_type: number, flex_basis_value: number, width_type: number, width_value: number, height_type: number, height_value: number, min_width_type: number, min_width_value: number, min_height_type: number, min_height_value: number, max_width_type: number, max_width_value: number, max_height_type: number, max_height_value: number, gap_row_type: number, gap_row_value: number, gap_column_type: number, gap_column_value: number, aspect_ratio: number, grid_auto_rows: string | interop.Pointer | interop.Reference<any>, grid_auto_columns: string | interop.Pointer | interop.Reference<any>, grid_auto_flow: number, grid_column: string | interop.Pointer | interop.Reference<any>, grid_column_start: string | interop.Pointer | interop.Reference<any>, grid_column_end: string | interop.Pointer | interop.Reference<any>, grid_row: string | interop.Pointer | interop.Reference<any>, grid_row_start: string | interop.Pointer | interop.Reference<any>, grid_row_end: string | interop.Pointer | interop.Reference<any>, grid_template_rows: string | interop.Pointer | interop.Reference<any>, grid_template_columns: string | interop.Pointer | interop.Reference<any>, overflow_x: number, overflow_y: number, scrollbar_width: number, text_align: number, box_sizing: number, grid_area: string | interop.Pointer | interop.Reference<any>, grid_template_areas: string | interop.Pointer | interop.Reference<any>): void;
|
|
3958
|
+
|
|
3959
|
+
declare function mason_style_update_non_buffer_data(mason: interop.Pointer | interop.Reference<any>, node: interop.Pointer | interop.Reference<any>, grid_auto_rows: string | interop.Pointer | interop.Reference<any>, grid_auto_columns: string | interop.Pointer | interop.Reference<any>, grid_column: string | interop.Pointer | interop.Reference<any>, grid_column_start: string | interop.Pointer | interop.Reference<any>, grid_column_end: string | interop.Pointer | interop.Reference<any>, grid_row: string | interop.Pointer | interop.Reference<any>, grid_row_start: string | interop.Pointer | interop.Reference<any>, grid_row_end: string | interop.Pointer | interop.Reference<any>, grid_template_rows: string | interop.Pointer | interop.Reference<any>, grid_template_columns: string | interop.Pointer | interop.Reference<any>, grid_area: string | interop.Pointer | interop.Reference<any>, grid_template_areas: string | interop.Pointer | interop.Reference<any>): void;
|
|
3960
|
+
|
|
3961
|
+
declare function mason_util_create_track_sizing_function_with_type_value(track_type: number, track_value: number): CMasonMinMax;
|
|
3962
|
+
|
|
3963
|
+
declare function mason_util_destroy_string(string: string | interop.Pointer | interop.Reference<any>): void;
|