slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
LogLevel.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 LogLevel : uint8_t {
19 Error = YGLogLevelError,
20 Warn = YGLogLevelWarn,
21 Info = YGLogLevelInfo,
22 Debug = YGLogLevelDebug,
23 Verbose = YGLogLevelVerbose,
24 Fatal = YGLogLevelFatal,
25};
26
27template <>
28constexpr int32_t ordinalCount<LogLevel>() {
29 return 6;
30}
31
32constexpr LogLevel scopedEnum(YGLogLevel unscoped) {
33 return static_cast<LogLevel>(unscoped);
34}
35
36constexpr YGLogLevel unscopedEnum(LogLevel scoped) {
37 return static_cast<YGLogLevel>(scoped);
38}
39
40inline const char* toString(LogLevel e) {
42}
43
44} // namespace facebook::yoga
const char * YGLogLevelToString(const YGLogLevel value)
Definition YGEnums.cpp:206
Definition Benchmark.cpp:19
LogLevel
Definition LogLevel.h:18
constexpr int32_t ordinalCount< LogLevel >()
Definition LogLevel.h:28
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