genode/repos/os/include/decorator
Norman Feske bb06d879aa os: make 'Genode::Color' C++20 friendly
This patch turns 'Color' from a class to a POD type by replacing
the constructors by the named create functions 'rgb', 'clamped_rgb',
and 'clamped_rgba'. It thereby enables the initialization of Color
values using { .r = ... } syntax and makes the type usable in const
expressions.

It also narrows the type for color components and alpha values to
uint8_t. So possible integer overflows of computed values are detected
by -Wconversion.

As 'Color::rgb(0, 0, 0)' is repeatedly used as a default value, the
patch adds the 'Color::black()' function.

Fixes #5238
2024-06-20 12:54:30 +02:00
..
types.h Rename include/nitpicker_session to gui_session 2020-06-22 09:39:39 +02:00
window_factory.h decorator: make window-layout updates more robust 2019-01-07 12:33:57 +01:00
window_stack.h os/include: use C++20 function template syntax 2024-05-29 09:18:12 +02:00
window.h decorator: fix handling of back-most window 2024-04-12 15:00:44 +02:00
xml_utils.h os: make 'Genode::Color' C++20 friendly 2024-06-20 12:54:30 +02:00