Summary: X-link: https://github.com/facebook/react-native/pull/39401 Pull Request resolved: https://github.com/facebook/yoga/pull/1376 kill_with_fire_flamethrower Reviewed By: rshest Differential Revision: D49179244 fbshipit-source-id: 9a827e1bd29205254fee5725449191726d6bcf5a
22 lines
569 B
C++
22 lines
569 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <yoga/Yoga.h>
|
|
#include <yoga/node/Node.h>
|
|
|
|
namespace facebook::yoga {
|
|
|
|
// Calculate baseline represented as an offset from the top edge of the node.
|
|
float calculateBaseline(const yoga::Node* node);
|
|
|
|
// Whether any of the children of this node participate in baseline alignment
|
|
bool isBaselineLayout(const yoga::Node* node);
|
|
|
|
} // namespace facebook::yoga
|