2017-06-15 07:36:33 -07:00
|
|
|
/*
|
2018-07-11 09:33:24 -07:00
|
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the LICENSE
|
|
|
|
* file in the root directory of this source tree.
|
2017-01-10 07:03:56 -08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
package com.facebook.yoga;
|
|
|
|
|
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
|
|
|
|
|
|
@DoNotStrip
|
|
|
|
public interface YogaBaselineFunction {
|
|
|
|
/**
|
2017-02-14 14:26:13 -08:00
|
|
|
* Return the baseline of the node in points. When no baseline function is set the baseline
|
2017-01-10 07:03:56 -08:00
|
|
|
* default to the computed height of the node.
|
|
|
|
*/
|
|
|
|
@DoNotStrip
|
2017-04-13 12:38:45 -07:00
|
|
|
float baseline(YogaNode node, float width, float height);
|
2017-01-10 07:03:56 -08:00
|
|
|
}
|