/src/yoga/yoga/enums/Gutter.h
Line | Count | Source |
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> |
14 | | #include <yoga/enums/YogaEnums.h> |
15 | | |
16 | | namespace facebook::yoga { |
17 | | |
18 | | enum class Gutter : uint8_t { |
19 | | Column = YGGutterColumn, |
20 | | Row = YGGutterRow, |
21 | | All = YGGutterAll, |
22 | | }; |
23 | | |
24 | | template <> |
25 | 0 | constexpr int32_t ordinalCount<Gutter>() { |
26 | 0 | return 3; |
27 | 0 | } |
28 | | |
29 | 1.64M | constexpr Gutter scopedEnum(YGGutter unscoped) { |
30 | 1.64M | return static_cast<Gutter>(unscoped); |
31 | 1.64M | } |
32 | | |
33 | 0 | constexpr YGGutter unscopedEnum(Gutter scoped) { |
34 | 0 | return static_cast<YGGutter>(scoped); |
35 | 0 | } |
36 | | |
37 | 0 | inline const char* toString(Gutter e) { |
38 | 0 | return YGGutterToString(unscopedEnum(e)); |
39 | 0 | } |
40 | | |
41 | | } // namespace facebook::yoga |