slot
0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
third
yoga
yoga
algorithm
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
13
namespace
facebook::yoga
{
14
15
// Calculate baseline represented as an offset from the top edge of the node.
16
float
calculateBaseline
(
const
yoga::Node
* node);
17
18
// Whether any of the children of this node participate in baseline alignment
19
bool
isBaselineLayout
(
const
yoga::Node
* node);
20
21
}
// namespace facebook::yoga
Node.h
Yoga.h
facebook::yoga
Definition
Benchmark.cpp:19
facebook::yoga::calculateBaseline
float calculateBaseline(const yoga::Node *node)
Definition
Baseline.cpp:17
facebook::yoga::PrintOptions::Node
@ Node
facebook::yoga::isBaselineLayout
bool isBaselineLayout(const yoga::Node *node)
Definition
Baseline.cpp:61
制作者
1.10.0