slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
YGNodeLayout.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 <stdbool.h>
11
12#include <yoga/YGConfig.h>
13#include <yoga/YGEnums.h>
14#include <yoga/YGMacros.h>
15
17
26
27// Get the computed values for these nodes after performing layout. If they were
28// set using point values then the returned value will be the same as
29// YGNodeStyleGetXXX. However if they were set using a percentage value then the
30// returned value is the computed value used during layout.
31YG_EXPORT float YGNodeLayoutGetMargin(YGNodeConstRef node, YGEdge edge);
32YG_EXPORT float YGNodeLayoutGetBorder(YGNodeConstRef node, YGEdge edge);
33YG_EXPORT float YGNodeLayoutGetPadding(YGNodeConstRef node, YGEdge edge);
34
39
44
#define YG_EXTERN_C_END
Definition YGMacros.h:19
#define YG_EXTERN_C_BEGIN
Definition YGMacros.h:18
#define YG_EXPORT
Definition YGMacros.h:35
YG_EXPORT bool YGNodeLayoutGetHadOverflow(YGNodeConstRef node)
Definition YGNodeLayout.cpp:75
YG_EXPORT float YGNodeLayoutGetWidth(YGNodeConstRef node)
Definition YGNodeLayout.cpp:63
YG_EXPORT float YGNodeLayoutGetBottom(YGNodeConstRef node)
Definition YGNodeLayout.cpp:59
YG_EXPORT float YGNodeLayoutGetRawWidth(YGNodeConstRef node)
Definition YGNodeLayout.cpp:98
YG_EXPORT float YGNodeLayoutGetRawHeight(YGNodeConstRef node)
Definition YGNodeLayout.cpp:94
YG_EXPORT float YGNodeLayoutGetMargin(YGNodeConstRef node, YGEdge edge)
Definition YGNodeLayout.cpp:79
YG_EXPORT float YGNodeLayoutGetBorder(YGNodeConstRef node, YGEdge edge)
Definition YGNodeLayout.cpp:84
YG_EXPORT float YGNodeLayoutGetTop(YGNodeConstRef node)
Definition YGNodeLayout.cpp:51
YG_EXPORT float YGNodeLayoutGetHeight(YGNodeConstRef node)
Definition YGNodeLayout.cpp:67
YG_EXTERN_C_BEGIN YG_EXPORT float YGNodeLayoutGetLeft(YGNodeConstRef node)
Definition YGNodeLayout.cpp:47
YG_EXPORT YGDirection YGNodeLayoutGetDirection(YGNodeConstRef node)
Definition YGNodeLayout.cpp:71
YG_EXPORT float YGNodeLayoutGetPadding(YGNodeConstRef node, YGEdge edge)
Definition YGNodeLayout.cpp:89
YG_EXPORT float YGNodeLayoutGetRight(YGNodeConstRef node)
Definition YGNodeLayout.cpp:55
Definition Node.h:29