Skip to content

Commit bd90a53

Browse files
committed
Migrate YogaMeasureFunction to Kotlin
1 parent 8bf7a34 commit bd90a53

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

java/com/facebook/yoga/YogaMeasureFunction.java

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.yoga
9+
10+
public fun interface YogaMeasureFunction {
11+
/** Return a value created by YogaMeasureOutput.make(width, height); */
12+
public fun measure(
13+
node: YogaNode,
14+
width: Float,
15+
widthMode: YogaMeasureMode,
16+
height: Float,
17+
heightMode: YogaMeasureMode
18+
): Long
19+
}

0 commit comments

Comments
 (0)