ui/core/token/radius_scale/cfmaterial_radius_scale_literals.h¶
Material Design 3 Radius Scale Token String Literals. More...
Namespaces¶
| Name |
|---|
| cf |
| cf::ui |
| cf::ui::core |
| cf::ui::core::token |
| cf::ui::core::token::literals |
Detailed Description¶
Material Design 3 Radius Scale Token String Literals.
Author: Charliechen114514 (chengh1922@mails.jlu.edu.cn)
Version: 0.1
Date: 2026-02-26
Copyright: Copyright © 2026
Compile-time string constants for Material Design 3 radius scale tokens. These literals are used throughout the shape system to ensure consistency and avoid string duplication.
Source code¶
#pragma once
#include <cstddef>
namespace cf::ui::core::token::literals {
// =============================================================================
// Corner Radius Token Literals
// =============================================================================
inline constexpr const char CORNER_NONE[] = "md.shape.cornerNone";
inline constexpr const char CORNER_EXTRA_SMALL[] = "md.shape.cornerExtraSmall";
inline constexpr const char CORNER_SMALL[] = "md.shape.cornerSmall";
inline constexpr const char CORNER_MEDIUM[] = "md.shape.cornerMedium";
inline constexpr const char CORNER_LARGE[] = "md.shape.cornerLarge";
inline constexpr const char CORNER_EXTRA_LARGE[] = "md.shape.cornerExtraLarge";
inline constexpr const char CORNER_EXTRA_EXTRA_LARGE[] = "md.shape.cornerExtraExtraLarge";
// =============================================================================
// All Tokens Array (for iteration)
// =============================================================================
inline constexpr const char* const ALL_RADIUS_TOKENS[] = {
CORNER_NONE, CORNER_EXTRA_SMALL, CORNER_SMALL, CORNER_MEDIUM, CORNER_LARGE,
CORNER_EXTRA_LARGE, CORNER_EXTRA_EXTRA_LARGE};
inline constexpr size_t RADIUS_TOKEN_COUNT = 7;
} // namespace cf::ui::core::token::literals
Updated on 2026-03-09 at 10:14:01 +0000