@reactunity/renderer 0.17.0 → 0.18.1

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.
@@ -1,372 +1,420 @@
1
1
  import { System } from './system';
2
- export declare namespace Facebook {
3
- namespace Yoga {
4
- class BaselineFunction {
5
- constructor(object: any, method: System.IntPtr);
6
- Method: System.Reflection.MethodInfo;
7
- Target: any;
8
- Invoke(node: Facebook.Yoga.YogaNode, width: number, height: number): number;
9
- BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
10
- EndInvoke(result: System.IAsyncResult): number;
11
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
12
- Equals(obj: any): boolean;
13
- GetHashCode(): number;
14
- GetInvocationList(): System.Delegate[];
15
- DynamicInvoke(...args: any[]): any;
16
- Clone(): any;
17
- GetType(): System.Type;
18
- ToString(): string;
19
- }
20
- class Logger {
21
- constructor(object: any, method: System.IntPtr);
22
- Method: System.Reflection.MethodInfo;
23
- Target: any;
24
- Invoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string): void;
25
- BeginInvoke(config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
26
- EndInvoke(result: System.IAsyncResult): void;
27
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
28
- Equals(obj: any): boolean;
29
- GetHashCode(): number;
30
- GetInvocationList(): System.Delegate[];
31
- DynamicInvoke(...args: any[]): any;
32
- Clone(): any;
33
- GetType(): System.Type;
34
- ToString(): string;
35
- }
36
- class MeasureFunction {
37
- constructor(object: any, method: System.IntPtr);
38
- Method: System.Reflection.MethodInfo;
39
- Target: any;
40
- Invoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
41
- BeginInvoke(node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
42
- EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
43
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
44
- Equals(obj: any): boolean;
45
- GetHashCode(): number;
46
- GetInvocationList(): System.Delegate[];
47
- DynamicInvoke(...args: any[]): any;
48
- Clone(): any;
49
- GetType(): System.Type;
50
- ToString(): string;
51
- }
52
- class MeasureOutput {
53
- constructor();
54
- static Make(width: number, height: number): Facebook.Yoga.YogaSize;
55
- Equals(obj: any): boolean;
56
- GetHashCode(): number;
57
- GetType(): System.Type;
58
- ToString(): string;
59
- }
60
- enum YogaAlign {
61
- Auto = 0,
62
- FlexStart = 1,
63
- Center = 2,
64
- FlexEnd = 3,
65
- Stretch = 4,
66
- Baseline = 5,
67
- SpaceBetween = 6,
68
- SpaceAround = 7
69
- }
70
- class YogaBaselineFunc {
71
- constructor(object: any, method: System.IntPtr);
72
- Method: System.Reflection.MethodInfo;
73
- Target: any;
74
- Invoke(unmanagedNodePtr: System.IntPtr, width: number, height: number): number;
75
- BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
76
- EndInvoke(result: System.IAsyncResult): number;
77
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
78
- Equals(obj: any): boolean;
79
- GetHashCode(): number;
80
- GetInvocationList(): System.Delegate[];
81
- DynamicInvoke(...args: any[]): any;
82
- Clone(): any;
83
- GetType(): System.Type;
84
- ToString(): string;
85
- }
86
- class YogaConfig {
87
- constructor();
88
- Logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void);
89
- UseWebDefaults: boolean;
90
- UseLegacyStretchBehaviour: boolean;
91
- PointScaleFactor: number;
92
- SetExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature, enabled: boolean): void;
93
- IsExperimentalFeatureEnabled(feature: Facebook.Yoga.YogaExperimentalFeature): boolean;
94
- static GetInstanceCount(): number;
95
- static SetDefaultLogger(logger: ((config: Facebook.Yoga.YogaConfig, node: Facebook.Yoga.YogaNode, level: Facebook.Yoga.YogaLogLevel, message: string) => void)): void;
96
- Equals(obj: any): boolean;
97
- GetHashCode(): number;
98
- GetType(): System.Type;
99
- ToString(): string;
100
- }
101
- class YogaConstants {
102
- static Undefined: number;
103
- static IsUndefined(value: number): boolean;
104
- static IsUndefined(value: Facebook.Yoga.YogaValue): boolean;
105
- Equals(obj: any): boolean;
106
- GetHashCode(): number;
107
- GetType(): System.Type;
108
- ToString(): string;
109
- }
110
- enum YogaDimension {
111
- Width = 0,
112
- Height = 1
113
- }
114
- enum YogaDirection {
115
- Inherit = 0,
116
- LTR = 1,
117
- RTL = 2
118
- }
119
- enum YogaDisplay {
120
- Flex = 0,
121
- None = 1
122
- }
123
- enum YogaEdge {
124
- Left = 0,
125
- Top = 1,
126
- Right = 2,
127
- Bottom = 3,
128
- Start = 4,
129
- End = 5,
130
- Horizontal = 6,
131
- Vertical = 7,
132
- All = 8
133
- }
134
- enum YogaExperimentalFeature {
135
- WebFlexBasis = 0,
136
- AbsolutePercentageAgainstPaddingEdge = 1,
137
- FixAbsoluteTrailingColumnMargin = 2
138
- }
139
- enum YogaFlexDirection {
140
- Column = 0,
141
- ColumnReverse = 1,
142
- Row = 2,
143
- RowReverse = 3
144
- }
145
- enum YogaGutter {
146
- Column = 0,
147
- Row = 1,
148
- All = 2
149
- }
150
- enum YogaJustify {
151
- FlexStart = 0,
152
- Center = 1,
153
- FlexEnd = 2,
154
- SpaceBetween = 3,
155
- SpaceAround = 4,
156
- SpaceEvenly = 5
157
- }
158
- class YogaLogger {
159
- constructor(object: any, method: System.IntPtr);
160
- Method: System.Reflection.MethodInfo;
161
- Target: any;
162
- Invoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string): void;
163
- BeginInvoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Facebook.Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
164
- EndInvoke(result: System.IAsyncResult): void;
165
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
166
- Equals(obj: any): boolean;
167
- GetHashCode(): number;
168
- GetInvocationList(): System.Delegate[];
169
- DynamicInvoke(...args: any[]): any;
170
- Clone(): any;
171
- GetType(): System.Type;
172
- ToString(): string;
173
- }
174
- enum YogaLogLevel {
175
- Error = 0,
176
- Warn = 1,
177
- Info = 2,
178
- Debug = 3,
179
- Verbose = 4,
180
- Fatal = 5
181
- }
182
- class YogaMeasureFunc {
183
- constructor(object: any, method: System.IntPtr);
184
- Method: System.Reflection.MethodInfo;
185
- Target: any;
186
- Invoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode): Facebook.Yoga.YogaSize;
187
- BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
188
- EndInvoke(result: System.IAsyncResult): Facebook.Yoga.YogaSize;
189
- GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
190
- Equals(obj: any): boolean;
191
- GetHashCode(): number;
192
- GetInvocationList(): System.Delegate[];
193
- DynamicInvoke(...args: any[]): any;
194
- Clone(): any;
195
- GetType(): System.Type;
196
- ToString(): string;
197
- }
198
- enum YogaMeasureMode {
199
- Undefined = 0,
200
- Exactly = 1,
201
- AtMost = 2
202
- }
203
- class YogaNode {
204
- constructor(config?: Facebook.Yoga.YogaConfig);
205
- constructor(srcNode: Facebook.Yoga.YogaNode);
206
- [key: string]: any;
207
- IsDirty: boolean;
208
- HasNewLayout: boolean;
209
- Parent: Facebook.Yoga.YogaNode;
210
- IsMeasureDefined: boolean;
211
- IsBaselineDefined: boolean;
212
- StyleDirection: Facebook.Yoga.YogaDirection;
213
- FlexDirection: Facebook.Yoga.YogaFlexDirection;
214
- JustifyContent: Facebook.Yoga.YogaJustify;
215
- Display: Facebook.Yoga.YogaDisplay;
216
- AlignItems: Facebook.Yoga.YogaAlign;
217
- AlignSelf: Facebook.Yoga.YogaAlign;
218
- AlignContent: Facebook.Yoga.YogaAlign;
219
- PositionType: Facebook.Yoga.YogaPositionType;
220
- Wrap: Facebook.Yoga.YogaWrap;
221
- Flex: number;
222
- FlexGrow: number;
223
- FlexShrink: number;
224
- FlexBasis: Facebook.Yoga.YogaValue;
225
- Width: Facebook.Yoga.YogaValue;
226
- Height: Facebook.Yoga.YogaValue;
227
- MaxWidth: Facebook.Yoga.YogaValue;
228
- MaxHeight: Facebook.Yoga.YogaValue;
229
- MinWidth: Facebook.Yoga.YogaValue;
230
- MinHeight: Facebook.Yoga.YogaValue;
231
- AspectRatio: number;
232
- Gap: number;
233
- ColumnGap: number;
234
- RowGap: number;
235
- LayoutX: number;
236
- LayoutY: number;
237
- LayoutWidth: number;
238
- LayoutHeight: number;
239
- LayoutDirection: Facebook.Yoga.YogaDirection;
240
- Overflow: Facebook.Yoga.YogaOverflow;
241
- Data: any;
242
- Count: number;
243
- IsReferenceBaseline: boolean;
244
- Left: Facebook.Yoga.YogaValue;
245
- Top: Facebook.Yoga.YogaValue;
246
- Right: Facebook.Yoga.YogaValue;
247
- Bottom: Facebook.Yoga.YogaValue;
248
- Start: Facebook.Yoga.YogaValue;
249
- End: Facebook.Yoga.YogaValue;
250
- MarginLeft: Facebook.Yoga.YogaValue;
251
- MarginTop: Facebook.Yoga.YogaValue;
252
- MarginRight: Facebook.Yoga.YogaValue;
253
- MarginBottom: Facebook.Yoga.YogaValue;
254
- MarginStart: Facebook.Yoga.YogaValue;
255
- MarginEnd: Facebook.Yoga.YogaValue;
256
- MarginHorizontal: Facebook.Yoga.YogaValue;
257
- MarginVertical: Facebook.Yoga.YogaValue;
258
- Margin: Facebook.Yoga.YogaValue;
259
- PaddingLeft: Facebook.Yoga.YogaValue;
260
- PaddingTop: Facebook.Yoga.YogaValue;
261
- PaddingRight: Facebook.Yoga.YogaValue;
262
- PaddingBottom: Facebook.Yoga.YogaValue;
263
- PaddingStart: Facebook.Yoga.YogaValue;
264
- PaddingEnd: Facebook.Yoga.YogaValue;
265
- PaddingHorizontal: Facebook.Yoga.YogaValue;
266
- PaddingVertical: Facebook.Yoga.YogaValue;
267
- Padding: Facebook.Yoga.YogaValue;
268
- BorderLeftWidth: number;
269
- BorderTopWidth: number;
270
- BorderRightWidth: number;
271
- BorderBottomWidth: number;
272
- BorderStartWidth: number;
273
- BorderEndWidth: number;
274
- BorderWidth: number;
275
- LayoutMarginLeft: number;
276
- LayoutMarginTop: number;
277
- LayoutMarginRight: number;
278
- LayoutMarginBottom: number;
279
- LayoutMarginStart: number;
280
- LayoutMarginEnd: number;
281
- LayoutPaddingLeft: number;
282
- LayoutPaddingTop: number;
283
- LayoutPaddingRight: number;
284
- LayoutPaddingBottom: number;
285
- LayoutPaddingStart: number;
286
- LayoutPaddingEnd: number;
287
- Reset(): void;
288
- MarkDirty(): void;
289
- MarkHasNewLayout(): void;
290
- CopyStyle(srcNode: Facebook.Yoga.YogaNode): void;
291
- MarkLayoutSeen(): void;
292
- ValuesEqual(f1: number, f2: number): boolean;
293
- Insert(index: number, node: Facebook.Yoga.YogaNode): void;
294
- RemoveAt(index: number): void;
295
- AddChild(child: Facebook.Yoga.YogaNode): void;
296
- RemoveChild(child: Facebook.Yoga.YogaNode): void;
297
- Clear(): void;
298
- IndexOf(node: Facebook.Yoga.YogaNode): number;
299
- SetMeasureFunction(measureFunction: ((node: Facebook.Yoga.YogaNode, width: number, widthMode: Facebook.Yoga.YogaMeasureMode, height: number, heightMode: Facebook.Yoga.YogaMeasureMode) => Facebook.Yoga.YogaSize)): void;
300
- SetBaselineFunction(baselineFunction: ((node: Facebook.Yoga.YogaNode, width: number, height: number) => number)): void;
301
- CalculateLayout(width?: number, height?: number): void;
302
- Print(options?: Facebook.Yoga.YogaPrintOptions): string;
303
- GetEnumerator(): System.Collections.Generic.IEnumerator<Facebook.Yoga.YogaNode>;
304
- Equals(obj: any): boolean;
305
- GetHashCode(): number;
306
- GetType(): System.Type;
307
- ToString(): string;
308
- }
309
- enum YogaNodeType {
310
- Default = 0,
311
- Text = 1
312
- }
313
- enum YogaOverflow {
314
- Visible = 0,
315
- Hidden = 1,
316
- Scroll = 2
317
- }
318
- enum YogaPositionType {
319
- Default = 1,
320
- Static = 0,
321
- Relative = 1,
322
- Absolute = 2
323
- }
324
- enum YogaPrintOptions {
325
- Layout = 1,
326
- Style = 2,
327
- Children = 4
328
- }
329
- class YogaSize {
330
- width: number;
331
- height: number;
332
- Equals(obj: any): boolean;
333
- GetHashCode(): number;
334
- ToString(): string;
335
- GetType(): System.Type;
336
- }
337
- enum YogaUnit {
338
- Undefined = 0,
339
- Point = 1,
340
- Percent = 2,
341
- Auto = 3
342
- }
343
- class YogaValue {
344
- Unit: Facebook.Yoga.YogaUnit;
345
- Value: number;
346
- static Point(value: number): Facebook.Yoga.YogaValue;
347
- Equals(other: Facebook.Yoga.YogaValue): boolean;
348
- Equals(obj: any): boolean;
349
- GetHashCode(): number;
350
- static Undefined(): Facebook.Yoga.YogaValue;
351
- static Auto(): Facebook.Yoga.YogaValue;
352
- static Percent(value: number): Facebook.Yoga.YogaValue;
353
- ToString(): string;
354
- GetType(): System.Type;
355
- }
356
- class YogaValueExtensions {
357
- static Percent(value: number): Facebook.Yoga.YogaValue;
358
- static Pt(value: number): Facebook.Yoga.YogaValue;
359
- static Percent(value: number): Facebook.Yoga.YogaValue;
360
- static Pt(value: number): Facebook.Yoga.YogaValue;
361
- Equals(obj: any): boolean;
362
- GetHashCode(): number;
363
- GetType(): System.Type;
364
- ToString(): string;
365
- }
366
- enum YogaWrap {
367
- NoWrap = 0,
368
- Wrap = 1,
369
- WrapReverse = 2
370
- }
2
+ export declare namespace Yoga {
3
+ class BaselineFunction {
4
+ constructor(object: any, method: System.IntPtr);
5
+ Method: System.Reflection.MethodInfo;
6
+ Target: any;
7
+ Invoke(node: Yoga.YogaNode, width: number, height: number): number;
8
+ BeginInvoke(node: Yoga.YogaNode, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
9
+ EndInvoke(result: System.IAsyncResult): number;
10
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
11
+ Equals(obj: any): boolean;
12
+ GetHashCode(): number;
13
+ GetInvocationList(): System.Delegate[];
14
+ DynamicInvoke(...args: any[]): any;
15
+ Clone(): any;
16
+ GetType(): System.Type;
17
+ ToString(): string;
18
+ }
19
+ class Logger {
20
+ constructor(object: any, method: System.IntPtr);
21
+ Method: System.Reflection.MethodInfo;
22
+ Target: any;
23
+ Invoke(config: Yoga.YogaConfig, node: Yoga.YogaNode, level: Yoga.YogaLogLevel, message: string): void;
24
+ BeginInvoke(config: Yoga.YogaConfig, node: Yoga.YogaNode, level: Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
25
+ EndInvoke(result: System.IAsyncResult): void;
26
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
27
+ Equals(obj: any): boolean;
28
+ GetHashCode(): number;
29
+ GetInvocationList(): System.Delegate[];
30
+ DynamicInvoke(...args: any[]): any;
31
+ Clone(): any;
32
+ GetType(): System.Type;
33
+ ToString(): string;
34
+ }
35
+ class MeasureFunction {
36
+ constructor(object: any, method: System.IntPtr);
37
+ Method: System.Reflection.MethodInfo;
38
+ Target: any;
39
+ Invoke(node: Yoga.YogaNode, width: number, widthMode: Yoga.YogaMeasureMode, height: number, heightMode: Yoga.YogaMeasureMode): Yoga.YogaSize;
40
+ BeginInvoke(node: Yoga.YogaNode, width: number, widthMode: Yoga.YogaMeasureMode, height: number, heightMode: Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
41
+ EndInvoke(result: System.IAsyncResult): Yoga.YogaSize;
42
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
43
+ Equals(obj: any): boolean;
44
+ GetHashCode(): number;
45
+ GetInvocationList(): System.Delegate[];
46
+ DynamicInvoke(...args: any[]): any;
47
+ Clone(): any;
48
+ GetType(): System.Type;
49
+ ToString(): string;
50
+ }
51
+ class MeasureOutput {
52
+ constructor();
53
+ static Make(width: number, height: number): Yoga.YogaSize;
54
+ Equals(obj: any): boolean;
55
+ GetHashCode(): number;
56
+ GetType(): System.Type;
57
+ ToString(): string;
58
+ }
59
+ enum YogaAlign {
60
+ Auto = 0,
61
+ FlexStart = 1,
62
+ Center = 2,
63
+ FlexEnd = 3,
64
+ Stretch = 4,
65
+ Baseline = 5,
66
+ SpaceBetween = 6,
67
+ SpaceAround = 7,
68
+ SpaceEvenly = 8
69
+ }
70
+ class YogaBaselineFunc {
71
+ constructor(object: any, method: System.IntPtr);
72
+ Method: System.Reflection.MethodInfo;
73
+ Target: any;
74
+ Invoke(unmanagedNodePtr: System.IntPtr, width: number, height: number): number;
75
+ BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, height: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
76
+ EndInvoke(result: System.IAsyncResult): number;
77
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
78
+ Equals(obj: any): boolean;
79
+ GetHashCode(): number;
80
+ GetInvocationList(): System.Delegate[];
81
+ DynamicInvoke(...args: any[]): any;
82
+ Clone(): any;
83
+ GetType(): System.Type;
84
+ ToString(): string;
85
+ }
86
+ class YogaCloneNodeFunc {
87
+ constructor(object: any, method: System.IntPtr);
88
+ Method: System.Reflection.MethodInfo;
89
+ Target: any;
90
+ Invoke(oldNode: System.IntPtr, owner: System.IntPtr, childIndex: number): number;
91
+ BeginInvoke(oldNode: System.IntPtr, owner: System.IntPtr, childIndex: number, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
92
+ EndInvoke(result: System.IAsyncResult): number;
93
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
94
+ Equals(obj: any): boolean;
95
+ GetHashCode(): number;
96
+ GetInvocationList(): System.Delegate[];
97
+ DynamicInvoke(...args: any[]): any;
98
+ Clone(): any;
99
+ GetType(): System.Type;
100
+ ToString(): string;
101
+ }
102
+ class YogaConfig {
103
+ constructor();
104
+ Logger: ((config: Yoga.YogaConfig, node: Yoga.YogaNode, level: Yoga.YogaLogLevel, message: string) => void);
105
+ Errata: Yoga.YogaErrata;
106
+ UseWebDefaults: boolean;
107
+ PointScaleFactor: number;
108
+ SetExperimentalFeatureEnabled(feature: Yoga.YogaExperimentalFeature, enabled: boolean): void;
109
+ IsExperimentalFeatureEnabled(feature: Yoga.YogaExperimentalFeature): boolean;
110
+ Equals(obj: any): boolean;
111
+ GetHashCode(): number;
112
+ GetType(): System.Type;
113
+ ToString(): string;
114
+ }
115
+ class YogaConstants {
116
+ static Undefined: number;
117
+ static IsUndefined(value: number): boolean;
118
+ static IsUndefined(value: Yoga.YogaValue): boolean;
119
+ Equals(obj: any): boolean;
120
+ GetHashCode(): number;
121
+ GetType(): System.Type;
122
+ ToString(): string;
123
+ }
124
+ enum YogaDimension {
125
+ Width = 0,
126
+ Height = 1
127
+ }
128
+ enum YogaDirection {
129
+ Inherit = 0,
130
+ LTR = 1,
131
+ RTL = 2
132
+ }
133
+ class YogaDirtiedFunc {
134
+ constructor(object: any, method: System.IntPtr);
135
+ Method: System.Reflection.MethodInfo;
136
+ Target: any;
137
+ Invoke(node: Yoga.YogaNode): void;
138
+ BeginInvoke(node: Yoga.YogaNode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
139
+ EndInvoke(result: System.IAsyncResult): void;
140
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
141
+ Equals(obj: any): boolean;
142
+ GetHashCode(): number;
143
+ GetInvocationList(): System.Delegate[];
144
+ DynamicInvoke(...args: any[]): any;
145
+ Clone(): any;
146
+ GetType(): System.Type;
147
+ ToString(): string;
148
+ }
149
+ enum YogaDisplay {
150
+ Flex = 0,
151
+ None = 1
152
+ }
153
+ enum YogaEdge {
154
+ Left = 0,
155
+ Top = 1,
156
+ Right = 2,
157
+ Bottom = 3,
158
+ Start = 4,
159
+ End = 5,
160
+ Horizontal = 6,
161
+ Vertical = 7,
162
+ All = 8
163
+ }
164
+ enum YogaErrata {
165
+ None = 0,
166
+ StretchFlexBasis = 1,
167
+ AbsolutePositioningIncorrect = 2,
168
+ AbsolutePercentAgainstInnerSize = 4,
169
+ All = 2147483647,
170
+ Classic = 2147483646
171
+ }
172
+ enum YogaExperimentalFeature {
173
+ WebFlexBasis = 0,
174
+ AbsolutePercentageAgainstPaddingEdge = 1,
175
+ FixAbsoluteTrailingColumnMargin = 2
176
+ }
177
+ enum YogaFlexDirection {
178
+ Column = 0,
179
+ ColumnReverse = 1,
180
+ Row = 2,
181
+ RowReverse = 3
182
+ }
183
+ enum YogaGutter {
184
+ Column = 0,
185
+ Row = 1,
186
+ All = 2
187
+ }
188
+ enum YogaJustify {
189
+ FlexStart = 0,
190
+ Center = 1,
191
+ FlexEnd = 2,
192
+ SpaceBetween = 3,
193
+ SpaceAround = 4,
194
+ SpaceEvenly = 5
195
+ }
196
+ class YogaLogger {
197
+ constructor(object: any, method: System.IntPtr);
198
+ Method: System.Reflection.MethodInfo;
199
+ Target: any;
200
+ Invoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Yoga.YogaLogLevel, message: string): void;
201
+ BeginInvoke(unmanagedConfigPtr: System.IntPtr, unmanagedNotePtr: System.IntPtr, level: Yoga.YogaLogLevel, message: string, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
202
+ EndInvoke(result: System.IAsyncResult): void;
203
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
204
+ Equals(obj: any): boolean;
205
+ GetHashCode(): number;
206
+ GetInvocationList(): System.Delegate[];
207
+ DynamicInvoke(...args: any[]): any;
208
+ Clone(): any;
209
+ GetType(): System.Type;
210
+ ToString(): string;
211
+ }
212
+ enum YogaLogLevel {
213
+ Error = 0,
214
+ Warn = 1,
215
+ Info = 2,
216
+ Debug = 3,
217
+ Verbose = 4,
218
+ Fatal = 5
219
+ }
220
+ class YogaMeasureFunc {
221
+ constructor(object: any, method: System.IntPtr);
222
+ Method: System.Reflection.MethodInfo;
223
+ Target: any;
224
+ Invoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Yoga.YogaMeasureMode, height: number, heightMode: Yoga.YogaMeasureMode): Yoga.YogaSize;
225
+ BeginInvoke(unmanagedNodePtr: System.IntPtr, width: number, widthMode: Yoga.YogaMeasureMode, height: number, heightMode: Yoga.YogaMeasureMode, callback: ((ar: System.IAsyncResult) => void), object: any): System.IAsyncResult;
226
+ EndInvoke(result: System.IAsyncResult): Yoga.YogaSize;
227
+ GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext): void;
228
+ Equals(obj: any): boolean;
229
+ GetHashCode(): number;
230
+ GetInvocationList(): System.Delegate[];
231
+ DynamicInvoke(...args: any[]): any;
232
+ Clone(): any;
233
+ GetType(): System.Type;
234
+ ToString(): string;
235
+ }
236
+ enum YogaMeasureMode {
237
+ Undefined = 0,
238
+ Exactly = 1,
239
+ AtMost = 2
240
+ }
241
+ class YogaNode {
242
+ constructor(config?: Yoga.YogaConfig);
243
+ constructor(srcNode: Yoga.YogaNode);
244
+ [key: string]: any;
245
+ IsDirty: boolean;
246
+ HasNewLayout: boolean;
247
+ Parent: Yoga.YogaNode;
248
+ IsMeasureDefined: boolean;
249
+ IsBaselineDefined: boolean;
250
+ StyleDirection: Yoga.YogaDirection;
251
+ FlexDirection: Yoga.YogaFlexDirection;
252
+ JustifyContent: Yoga.YogaJustify;
253
+ Display: Yoga.YogaDisplay;
254
+ AlignItems: Yoga.YogaAlign;
255
+ AlignSelf: Yoga.YogaAlign;
256
+ AlignContent: Yoga.YogaAlign;
257
+ PositionType: Yoga.YogaPositionType;
258
+ Wrap: Yoga.YogaWrap;
259
+ Flex: number;
260
+ FlexGrow: number;
261
+ FlexShrink: number;
262
+ FlexBasis: Yoga.YogaValue;
263
+ Width: Yoga.YogaValue;
264
+ Height: Yoga.YogaValue;
265
+ MaxWidth: Yoga.YogaValue;
266
+ MaxHeight: Yoga.YogaValue;
267
+ MinWidth: Yoga.YogaValue;
268
+ MinHeight: Yoga.YogaValue;
269
+ AspectRatio: number;
270
+ Gap: number;
271
+ ColumnGap: number;
272
+ RowGap: number;
273
+ LayoutLeft: number;
274
+ LayoutTop: number;
275
+ LayoutRight: number;
276
+ LayoutBottom: number;
277
+ LayoutWidth: number;
278
+ LayoutHeight: number;
279
+ LayoutDirection: Yoga.YogaDirection;
280
+ LayoutHadOverflow: boolean;
281
+ Overflow: Yoga.YogaOverflow;
282
+ Data: any;
283
+ Count: number;
284
+ IsReferenceBaseline: boolean;
285
+ NodeType: Yoga.YogaNodeType;
286
+ AlwaysFormsContainingBlock: boolean;
287
+ Left: Yoga.YogaValue;
288
+ Top: Yoga.YogaValue;
289
+ Right: Yoga.YogaValue;
290
+ Bottom: Yoga.YogaValue;
291
+ Start: Yoga.YogaValue;
292
+ End: Yoga.YogaValue;
293
+ MarginLeft: Yoga.YogaValue;
294
+ MarginTop: Yoga.YogaValue;
295
+ MarginRight: Yoga.YogaValue;
296
+ MarginBottom: Yoga.YogaValue;
297
+ MarginStart: Yoga.YogaValue;
298
+ MarginEnd: Yoga.YogaValue;
299
+ MarginHorizontal: Yoga.YogaValue;
300
+ MarginVertical: Yoga.YogaValue;
301
+ Margin: Yoga.YogaValue;
302
+ PaddingLeft: Yoga.YogaValue;
303
+ PaddingTop: Yoga.YogaValue;
304
+ PaddingRight: Yoga.YogaValue;
305
+ PaddingBottom: Yoga.YogaValue;
306
+ PaddingStart: Yoga.YogaValue;
307
+ PaddingEnd: Yoga.YogaValue;
308
+ PaddingHorizontal: Yoga.YogaValue;
309
+ PaddingVertical: Yoga.YogaValue;
310
+ Padding: Yoga.YogaValue;
311
+ BorderLeftWidth: number;
312
+ BorderTopWidth: number;
313
+ BorderRightWidth: number;
314
+ BorderBottomWidth: number;
315
+ BorderStartWidth: number;
316
+ BorderEndWidth: number;
317
+ BorderWidth: number;
318
+ LayoutMarginLeft: number;
319
+ LayoutMarginTop: number;
320
+ LayoutMarginRight: number;
321
+ LayoutMarginBottom: number;
322
+ LayoutMarginStart: number;
323
+ LayoutMarginEnd: number;
324
+ LayoutBorderLeft: number;
325
+ LayoutBorderTop: number;
326
+ LayoutBorderRight: number;
327
+ LayoutBorderBottom: number;
328
+ LayoutBorderStart: number;
329
+ LayoutBorderEnd: number;
330
+ LayoutPaddingLeft: number;
331
+ LayoutPaddingTop: number;
332
+ LayoutPaddingRight: number;
333
+ LayoutPaddingBottom: number;
334
+ LayoutPaddingStart: number;
335
+ LayoutPaddingEnd: number;
336
+ Reset(): void;
337
+ MarkDirty(): void;
338
+ MarkHasNewLayout(): void;
339
+ CopyStyle(srcNode: Yoga.YogaNode): void;
340
+ MarkLayoutSeen(): void;
341
+ ValuesEqual(f1: number, f2: number): boolean;
342
+ Insert(index: number, node: Yoga.YogaNode): void;
343
+ RemoveAt(index: number): void;
344
+ RemoveAll(): void;
345
+ AddChild(child: Yoga.YogaNode): void;
346
+ RemoveChild(child: Yoga.YogaNode): void;
347
+ Clear(): void;
348
+ IndexOf(node: Yoga.YogaNode): number;
349
+ SetMeasureFunction(measureFunction: ((node: Yoga.YogaNode, width: number, widthMode: Yoga.YogaMeasureMode, height: number, heightMode: Yoga.YogaMeasureMode) => Yoga.YogaSize)): void;
350
+ SetBaselineFunction(baselineFunction: ((node: Yoga.YogaNode, width: number, height: number) => number)): void;
351
+ CalculateLayout(availableWidth?: number, availableHeight?: number): void;
352
+ GetEnumerator(): System.Collections.Generic.IEnumerator<Yoga.YogaNode>;
353
+ Equals(obj: any): boolean;
354
+ GetHashCode(): number;
355
+ GetType(): System.Type;
356
+ ToString(): string;
357
+ }
358
+ enum YogaNodeType {
359
+ Default = 0,
360
+ Text = 1
361
+ }
362
+ enum YogaOverflow {
363
+ Visible = 0,
364
+ Hidden = 1,
365
+ Scroll = 2
366
+ }
367
+ enum YogaPositionType {
368
+ Default = 1,
369
+ Static = 0,
370
+ Relative = 1,
371
+ Absolute = 2
372
+ }
373
+ enum YogaPrintOptions {
374
+ Layout = 1,
375
+ Style = 2,
376
+ Children = 4
377
+ }
378
+ class YogaSize {
379
+ width: number;
380
+ height: number;
381
+ Equals(obj: any): boolean;
382
+ GetHashCode(): number;
383
+ ToString(): string;
384
+ GetType(): System.Type;
385
+ }
386
+ enum YogaUnit {
387
+ Undefined = 0,
388
+ Point = 1,
389
+ Percent = 2,
390
+ Auto = 3
391
+ }
392
+ class YogaValue {
393
+ Unit: Yoga.YogaUnit;
394
+ Value: number;
395
+ static Point(value: number): Yoga.YogaValue;
396
+ Equals(other: Yoga.YogaValue): boolean;
397
+ Equals(obj: any): boolean;
398
+ GetHashCode(): number;
399
+ static Undefined(): Yoga.YogaValue;
400
+ static Auto(): Yoga.YogaValue;
401
+ static Percent(value: number): Yoga.YogaValue;
402
+ ToString(): string;
403
+ GetType(): System.Type;
404
+ }
405
+ class YogaValueExtensions {
406
+ static Percent(value: number): Yoga.YogaValue;
407
+ static Pt(value: number): Yoga.YogaValue;
408
+ static Percent(value: number): Yoga.YogaValue;
409
+ static Pt(value: number): Yoga.YogaValue;
410
+ Equals(obj: any): boolean;
411
+ GetHashCode(): number;
412
+ GetType(): System.Type;
413
+ ToString(): string;
414
+ }
415
+ enum YogaWrap {
416
+ NoWrap = 0,
417
+ Wrap = 1,
418
+ WrapReverse = 2
371
419
  }
372
420
  }