2019-06-06 19:36:56 -07:00
|
|
|
/*
|
2021-12-30 15:08:43 -08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2017-11-23 09:40:02 -08:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-11-23 09:40:02 -08:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2017-11-23 09:40:02 -08:00
|
|
|
#pragma once
|
2022-06-07 07:42:49 -07:00
|
|
|
|
2017-11-23 09:40:02 -08:00
|
|
|
#include <string>
|
|
|
|
|
2024-02-02 15:44:23 -08:00
|
|
|
#include <yoga/Yoga.h>
|
2017-11-23 09:40:02 -08:00
|
|
|
|
2023-07-12 09:38:40 -07:00
|
|
|
namespace facebook::yoga {
|
2017-11-23 09:40:02 -08:00
|
|
|
|
2024-02-09 16:44:32 -08:00
|
|
|
enum class PrintOptions : uint8_t {
|
|
|
|
Layout = 1 << 0,
|
|
|
|
Children = 1 << 1,
|
|
|
|
Style = 1 << 2,
|
|
|
|
Config = 1 << 3,
|
2024-02-09 16:44:32 -08:00
|
|
|
Node = 1 << 4,
|
2024-02-09 16:44:32 -08:00
|
|
|
};
|
|
|
|
YG_DEFINE_ENUM_FLAG_OPERATORS(PrintOptions);
|
|
|
|
|
|
|
|
void nodeToString(std::string& str, YGNodeRef node, PrintOptions options);
|
2017-11-23 09:40:02 -08:00
|
|
|
|
2023-07-12 09:38:40 -07:00
|
|
|
} // namespace facebook::yoga
|