The table lookups behind the templates, taking the enumerator as an index. Call the templated functions of fab_style instead.
More...
|
| 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.
|
The table lookups behind the templates, taking the enumerator as an index. Call the templated functions of fab_style instead.
◆ borderRadius()
| float guillaume::systems::fab_style::detail::borderRadius |
( |
std::size_t | size | ) |
|
Corner radius of the container.
- Parameters
-
| size | Index of the size: 0 Small, 1 Medium, 2 Large. |
- Returns
- The radius, in dp, resolved against the active theme.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 99 of file fab_style.cpp.
◆ containerColor()
| utility::graphic::Color32Bit guillaume::systems::fab_style::detail::containerColor |
( |
std::size_t | variant, |
|
|
bool | lowered ) |
Fill color of the container.
- Parameters
-
| variant | Index of the variant: 0 Surface, 1 Primary, 2 Secondary, 3 Tertiary. |
| lowered | True for a FAB drawn at the lowered elevation. Only the Surface variant changes color with it. |
- Returns
- The container color.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 104 of file fab_style.cpp.
◆ containerSize()
| float guillaume::systems::fab_style::detail::containerSize |
( |
std::size_t | size | ) |
|
Width and height of the container at its default size.
- Parameters
-
| size | Index of the size: 0 Small, 1 Medium, 2 Large. |
- Returns
- The extent, in dp.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 84 of file fab_style.cpp.
◆ contentColor()
| utility::graphic::Color32Bit guillaume::systems::fab_style::detail::contentColor |
( |
std::size_t | variant | ) |
|
Color of the icon and of the label.
- Parameters
-
| variant | Index of the variant: 0 Surface, 1 Primary, 2 Secondary, 3 Tertiary. |
- Returns
- The content color, from the active color scheme.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 117 of file fab_style.cpp.
◆ iconFontSize()
| float guillaume::systems::fab_style::detail::iconFontSize |
( |
std::size_t | size | ) |
|
Font size of the icon of a regular FAB.
- Parameters
-
| size | Index of the size: 0 Small, 1 Medium, 2 Large. |
- Returns
- The font size, in dp.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 89 of file fab_style.cpp.
◆ labelFontSize()
| float guillaume::systems::fab_style::detail::labelFontSize |
( |
std::size_t | size | ) |
|
Font size of the label and icon of an extended FAB.
- Parameters
-
| size | Index of the size: 0 Small, 1 Medium, 2 Large. |
- Returns
- The font size, in dp.
- Exceptions
-
| std::runtime_error | If the index is out of range. |
Definition at line 94 of file fab_style.cpp.