guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::systems::fab_style::detail Namespace Reference

The table lookups behind the templates, taking the enumerator as an index. Call the templated functions of fab_style instead. More...

Functions

float containerSize (std::size_t size)
 Width and height of the container at its default size.
float iconFontSize (std::size_t size)
 Font size of the icon of a regular FAB.
float labelFontSize (std::size_t size)
 Font size of the label and icon of an extended FAB.
float borderRadius (std::size_t size)
 Corner radius of the container.
utility::graphic::Color32Bit containerColor (std::size_t variant, bool lowered)
 Fill color of the container.
utility::graphic::Color32Bit contentColor (std::size_t variant)
 Color of the icon and of the label.

Detailed Description

The table lookups behind the templates, taking the enumerator as an index. Call the templated functions of fab_style instead.

Function Documentation

◆ borderRadius()

float guillaume::systems::fab_style::detail::borderRadius ( std::size_t size)

Corner radius of the container.

Parameters
sizeIndex of the size: 0 Small, 1 Medium, 2 Large.
Returns
The radius, in dp, resolved against the active theme.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 99 of file fab_style.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ containerColor()

utility::graphic::Color32Bit guillaume::systems::fab_style::detail::containerColor ( std::size_t variant,
bool lowered )

Fill color of the container.

Parameters
variantIndex of the variant: 0 Surface, 1 Primary, 2 Secondary, 3 Tertiary.
loweredTrue for a FAB drawn at the lowered elevation. Only the Surface variant changes color with it.
Returns
The container color.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 104 of file fab_style.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ containerSize()

float guillaume::systems::fab_style::detail::containerSize ( std::size_t size)

Width and height of the container at its default size.

Parameters
sizeIndex of the size: 0 Small, 1 Medium, 2 Large.
Returns
The extent, in dp.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 84 of file fab_style.cpp.

Here is the caller graph for this function:

◆ contentColor()

utility::graphic::Color32Bit guillaume::systems::fab_style::detail::contentColor ( std::size_t variant)

Color of the icon and of the label.

Parameters
variantIndex of the variant: 0 Surface, 1 Primary, 2 Secondary, 3 Tertiary.
Returns
The content color, from the active color scheme.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 117 of file fab_style.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iconFontSize()

float guillaume::systems::fab_style::detail::iconFontSize ( std::size_t size)

Font size of the icon of a regular FAB.

Parameters
sizeIndex of the size: 0 Small, 1 Medium, 2 Large.
Returns
The font size, in dp.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 89 of file fab_style.cpp.

Here is the caller graph for this function:

◆ labelFontSize()

float guillaume::systems::fab_style::detail::labelFontSize ( std::size_t size)

Font size of the label and icon of an extended FAB.

Parameters
sizeIndex of the size: 0 Small, 1 Medium, 2 Large.
Returns
The font size, in dp.
Exceptions
std::runtime_errorIf the index is out of range.

Definition at line 94 of file fab_style.cpp.

Here is the caller graph for this function: