slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Baseline.h
浏览该文件的文档.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
10#include <yoga/Yoga.h>
11#include <yoga/node/Node.h>
12
13namespace facebook::yoga {
14
15// Calculate baseline represented as an offset from the top edge of the node.
16float calculateBaseline(const yoga::Node* node);
17
18// Whether any of the children of this node participate in baseline alignment
19bool isBaselineLayout(const yoga::Node* node);
20
21} // namespace facebook::yoga
Definition Benchmark.cpp:19
float calculateBaseline(const yoga::Node *node)
Definition Baseline.cpp:17
bool isBaselineLayout(const yoga::Node *node)
Definition Baseline.cpp:61