genode/repos/gems/include
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
..
aes_cbc_4k Library for the AES-CBC en/decryption of 4K blocks 2019-04-09 12:30:35 +02:00
ctf trace_recorder: implementation 2022-08-17 12:03:26 +02:00
depot depot_query: add support for bin and dbg archives 2024-02-26 08:59:09 +01:00
dialog dialog: use one menu_view for multiple dialogs 2024-04-12 15:08:00 +02:00
gems os: make 'Genode::Color' C++20 friendly 2024-06-20 12:54:30 +02:00
nano3d nano3d: remove surface-clear optimization 2021-05-10 11:17:20 +02:00
polygon_gfx os: make 'Genode::Color' C++20 friendly 2024-06-20 12:54:30 +02:00
trace_recorder_policy trace: add types for trace_recorder policies 2022-08-17 12:03:26 +02:00