Matthias Clasen
3a4c69f370
gdk: Add gdk_rgba_print
2024-05-31 21:29:49 -04:00
Matthias Clasen
0e5f7601e4
Add some inline rgba functions
...
These are trivial enough to inline everywhere.
2024-04-15 22:57:01 -04:00
Benjamin Otte
cb5c994cd9
rgba: Add a few macros
...
... and use them.
Those macros hopefully make code more readable.
2024-01-07 07:22:52 +01:00
Matthias Clasen
a1c5a806b3
Convert headers to #pragma once
...
The conversion was done by guard2one.
2023-03-31 15:11:10 -04:00
Benjamin Otte
f37c5ebd26
rgba: Fix GDK_RGBA() macro to work with alpha
...
Previously we dividied by an integer, so alpha was either 0.0 or 1.0.
2022-02-08 01:34:19 +01:00
Benjamin Otte
f6b11a5158
build: Add more useful warning flags
...
I found those on the interwebs and decided they are useful.
2020-03-05 07:56:28 +01:00
Benjamin Otte
678aa8088f
rgba: Add GDK_RGBA() macro
...
So far it's private, but it's a pretty cute way to use hex colors, so we
might conside making it public.
2019-05-21 06:43:59 +02:00
Benjamin Otte
98e076b51e
rgba: Add gdk_rgba_parser_parse()
...
This function is a (private) function to parse a GdkRGBA accoridng to
the CSS specs. We should probably use it for gdk_rgba_parse(), but that
would change the syntax we accept there...
This also introduces a dependency of libgdk on libgtkcss.
So far, no users for this function exist.
2019-04-12 19:34:28 +02:00