cf::ui::core::MaterialRadiusScale¶
Material Design 3 Radius Scale with EmbeddedTokenRegistry. More...
#include <cfmaterial_radius_scale.h>
Inherits from cf::ui::core::IRadiusScale
Public Functions¶
| Name | |
|---|---|
| MaterialRadiusScale() | |
| ~MaterialRadiusScale() override =default | |
| MaterialRadiusScale(constMaterialRadiusScale & ) =delete | |
| MaterialRadiusScale & | operator=(constMaterialRadiusScale & ) =delete |
| MaterialRadiusScale(MaterialRadiusScale && ) =default | |
| MaterialRadiusScale & | operator=(MaterialRadiusScale && ) =default |
| virtual float | queryRadiusScale(constchar * name) override Implement interface: query corner radius by name. |
| EmbeddedTokenRegistry & | registry() Access the embedded token registry. |
| constEmbeddedTokenRegistry & | registry() const Access the embedded token registry (const overload). |
Additional inherited members¶
Public Functions inherited from cf::ui::core::IRadiusScale
| Name | |
|---|---|
| virtual | ~IRadiusScale() =default Virtual destructor. |
Detailed Description¶
Material Design 3 Radius Scale with EmbeddedTokenRegistry.
Implements the complete Material Design 3 Corner Radius system with 7 scales. Radii are stored in an embedded registry for independent radius scale instances.
Radius Scale Specifications¶
| Token | Name | Value (dp) | Usage |
|---|---|---|---|
| CORNER_NONE | cornerNone | 0dp | No corner radius |
| CORNER_EXTRA_SMALL | cornerExtraSmall | 4dp | Chips, small cards |
| CORNER_SMALL | cornerSmall | 8dp | Text fields, checkboxes |
| CORNER_MEDIUM | cornerMedium | 12dp | Cards |
| CORNER_LARGE | cornerLarge | 16dp | Alert dialogs |
| CORNER_EXTRA_LARGE | cornerExtraLarge | 28dp | FAB, modals |
| CORNER_EXTRA_EXTRA_LARGE | cornerExtraExtraLarge | 32dp | Drawers |
None
None
None
0.1
Public Functions Documentation¶
function MaterialRadiusScale¶
function ~MaterialRadiusScale¶
function MaterialRadiusScale¶
function operator=¶
function MaterialRadiusScale¶
function operator=¶
function queryRadiusScale¶
Implement interface: query corner radius by name.
Parameters:
- name Radius style name (e.g., "md.shape.cornerSmall").
Exceptions:
- None
Return: Radius value in dp, returns 0 if not found.
Since: 0.1
Note: None
Warning: None
Reimplements: cf::ui::core::IRadiusScale::queryRadiusScale
function registry¶
Access the embedded token registry.
Exceptions:
- None
Return: Reference to the EmbeddedTokenRegistry.
Since: 0.1
Note: None
Warning: None
Provides direct access to the internal token registry for custom token manipulation.
function registry¶
Access the embedded token registry (const overload).
Exceptions:
- None
Return: Const reference to the EmbeddedTokenRegistry.
Since: 0.1
Note: None
Warning: None
Provides direct read-only access to the internal token registry.
Updated on 2026-03-09 at 10:14:00 +0000