Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1570 X-link: https://github.com/facebook/react-native/pull/42751 tsia. Need node state Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D53206323 fbshipit-source-id: eb48c3873536eb52c8ffcce8005725da274e5373
28 lines
561 B
C++
28 lines
561 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <yoga/Yoga.h>
|
|
|
|
namespace facebook::yoga {
|
|
|
|
enum class PrintOptions : uint8_t {
|
|
Layout = 1 << 0,
|
|
Children = 1 << 1,
|
|
Style = 1 << 2,
|
|
Config = 1 << 3,
|
|
Node = 1 << 4,
|
|
};
|
|
YG_DEFINE_ENUM_FLAG_OPERATORS(PrintOptions);
|
|
|
|
void nodeToString(std::string& str, YGNodeRef node, PrintOptions options);
|
|
|
|
} // namespace facebook::yoga
|