20 lines
501 B
Kotlin
20 lines
501 B
Kotlin
/*
|
|
* 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
|
|
}
|