2019-10-15 10:30:08 -07:00
|
|
|
/*
|
2021-12-30 15:08:43 -08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2016-11-11 08:08:28 -08:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-11-11 08:08:28 -08:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2016-12-05 02:56:20 -08:00
|
|
|
package com.facebook.yoga;
|
2016-11-11 08:08:28 -08:00
|
|
|
|
2016-12-03 04:40:23 -08:00
|
|
|
public interface YogaMeasureFunction {
|
|
|
|
/**
|
|
|
|
* Return a value created by YogaMeasureOutput.make(width, height);
|
|
|
|
*/
|
|
|
|
long measure(
|
2017-04-13 12:38:45 -07:00
|
|
|
YogaNode node,
|
2016-12-03 04:40:23 -08:00
|
|
|
float width,
|
|
|
|
YogaMeasureMode widthMode,
|
|
|
|
float height,
|
|
|
|
YogaMeasureMode heightMode);
|
2016-11-11 08:08:28 -08:00
|
|
|
}
|