guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
style_helpers.hpp File Reference

Makes the color helpers callable from guillaume::entities without qualification. More...

Include dependency graph for style_helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  guillaume
 A C++20 UI framework for desktop and XR, built as an entity-component-system.
namespace  guillaume::entities
 Widgets: the classes used to create entities with the right components and children.

Functions

utility::graphic::Color32Bit guillaume::entities::disabledContainerColor (void)
 Fill color of the container of a disabled widget.
utility::graphic::Color32Bit guillaume::entities::disabledContentColor (void)
 Color of the icon, label or outline of a disabled widget.
utility::graphic::Color32Bit guillaume::entities::schemeColor (SchemeColorRole role)
 Look up a color role in the color scheme of the active theme.
utility::graphic::Color32Bit guillaume::entities::stateLayer (const utility::graphic::Color32Bit &base, const utility::graphic::Color32Bit &overlay, std::uint8_t alpha)
 Blend a translucent tint over a base color.
utility::graphic::Color32Bit guillaume::entities::transparentColor (void)
 The color written to hide a fill or an outline without removing its component.
utility::graphic::Color32Bit guillaume::entities::withAlpha (const utility::graphic::Color32Bit &color, std::uint8_t alpha)
 Copy a color with another alpha channel.

Detailed Description

Makes the color helpers callable from guillaume::entities without qualification.

This header declares nothing of its own: the functions are defined in guillaume::systems::style. They read a color of the active scheme, replace an alpha channel, blend a state layer over a container color and return the disabled and transparent colors.

See also
guillaume::systems::style

Definition in file style_helpers.hpp.