slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
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
14
15// TODO: This should not be exported or used outside of the JNI bindings
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
#define YG_EXPORT
Definition YGMacros.h:35
Definition YGJTypesVanilla.h:18
Definition LayoutContext.h:16
Definition common.cpp:10