slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Display.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// @generated by enums.py
9// clang-format off
10#pragma once
11
12#include <cstdint>
13#include <yoga/YGEnums.h>
15
16namespace facebook::yoga {
17
18enum class Display : uint8_t {
19 Flex = YGDisplayFlex,
20 None = YGDisplayNone,
21 Contents = YGDisplayContents,
22 Grid = YGDisplayGrid,
23};
24
25template <>
26constexpr int32_t ordinalCount<Display>() {
27 return 4;
28}
29
30constexpr Display scopedEnum(YGDisplay unscoped) {
31 return static_cast<Display>(unscoped);
32}
33
34constexpr YGDisplay unscopedEnum(Display scoped) {
35 return static_cast<YGDisplay>(scoped);
36}
37
38inline const char* toString(Display e) {
40}
41
42} // namespace facebook::yoga
const char * YGDisplayToString(const YGDisplay value)
Definition YGEnums.cpp:72
Definition Benchmark.cpp:19
constexpr int32_t ordinalCount< Display >()
Definition Display.h:26
const char * toString(Align e)
Definition Align.h:45
constexpr YGAlign unscopedEnum(Align scoped)
Definition Align.h:41
constexpr Align scopedEnum(YGAlign unscoped)
Definition Align.h:37
Display
Definition Display.h:18