Migrate YogaMeasureFunction
to Kotlin
#1835
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.yoga;
|
|
||||||
|
|
||||||
public interface YogaMeasureFunction {
|
|
||||||
/**
|
|
||||||
* Return a value created by YogaMeasureOutput.make(width, height);
|
|
||||||
*/
|
|
||||||
long measure(
|
|
||||||
YogaNode node,
|
|
||||||
float width,
|
|
||||||
YogaMeasureMode widthMode,
|
|
||||||
float height,
|
|
||||||
YogaMeasureMode heightMode);
|
|
||||||
}
|
|
19
java/com/facebook/yoga/YogaMeasureFunction.kt
Normal file
19
java/com/facebook/yoga/YogaMeasureFunction.kt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.facebook.yoga
|
||||||
|
|
||||||
|
public fun interface YogaMeasureFunction {
|
||||||
|
/** Return a value created by YogaMeasureOutput.make(width, height); */
|
||||||
|
public fun measure(
|
||||||
|
node: YogaNode,
|
||||||
|
width: Float,
|
||||||
|
widthMode: YogaMeasureMode,
|
||||||
|
height: Float,
|
||||||
|
heightMode: YogaMeasureMode
|
||||||
|
): Long
|
||||||
|
}
|
Reference in New Issue
Block a user