slot
0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
third
yoga
java
jni
LayoutContext.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 "
YGJTypesVanilla.h
"
12
13
namespace
facebook::yoga::vanillajni
{
14
15
// TODO: This should not be exported or used outside of the JNI bindings
16
class
YG_EXPORT
LayoutContext
{
17
public
:
18
// Sets a context on the current thread for the duration of the Provider's
19
// lifetime. This context should be set during the layout process to allow
20
// layout callbacks to access context-data specific to the layout pass.
21
struct
Provider
{
22
explicit
Provider
(
PtrJNodeMapVanilla
* data);
23
~Provider
();
24
};
25
26
static
PtrJNodeMapVanilla
* getNodeMap();
27
};
28
29
}
// namespace facebook::yoga::vanillajni
YGJTypesVanilla.h
YG_EXPORT
#define YG_EXPORT
Definition
YGMacros.h:35
Yoga.h
PtrJNodeMapVanilla
Definition
YGJTypesVanilla.h:18
facebook::yoga::vanillajni::LayoutContext
Definition
LayoutContext.h:16
facebook::yoga::vanillajni
Definition
common.cpp:10
facebook::yoga::vanillajni::LayoutContext::Provider
Definition
LayoutContext.h:21
制作者
1.10.0