gimp/libgimpcolor
Jehan 106d18605a libgimpcolor, app: gimp_color_parse_(css|hex|name)() renamed with _substring() suffix.
New functions with the same name as these functions are created, except without
the length argument (i.e. it's equivalent to calling these with -1).

The reason for this is that using strings with a length variant which may be
negative to switch to NUL-terminated strings are not bindable. At least in our
case, when testing in Python, the input string ended up as corrupted garbage and
GObject Introspection docs warns about such interfaces:

> In particular, avoid functions taking a const char * with a signed length that
> can be set to a negative value to let the function compute the string length
> in bytes. These functions are hard to bind, and require manual overrides.

(see: https://gi.readthedocs.io/en/latest/writingbindableapis.html#strings)

So instead, I create a simple version which runs on NUL-terminated strings only
and which is bound, whereas unbinding the generic length-version (making it
C-only, or maybe usable in some other bindings which ignore the (skip)
annotation; apparently some do this).
2024-04-20 12:37:20 +02:00
..
gimpadaptivesupersample.c libgimpcolor: rudimentary docs for gimp_adaptive_supersample_area() 2019-08-09 15:24:49 +02:00
gimpadaptivesupersample.h libgimpcolor: Fix annotation in GimpRenderFunc 2021-12-28 21:23:42 +01:00
gimpbilinear.c Add GIR annotations to bilinear utils 2020-05-05 19:37:44 +02:00
gimpbilinear.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcairo.c Issue #11021: cairo-ARGB32 uses "associated alpha", so changed the new formats accordingly. 2024-04-03 03:12:12 +05:30
gimpcairo.h libgimpcolor: Port gimp_cairo_checkerboard_create ()... 2024-03-31 01:09:45 +00:00
gimpcmyk.c app, libgimp*, pdb, plug-ins: use g_memdup2() instead of g_memdup() 2021-08-26 17:32:09 +02:00
gimpcmyk.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcolor-parse.c libgimpcolor, app: gimp_color_parse_(css|hex|name)() renamed with _substring() suffix. 2024-04-20 12:37:20 +02:00
gimpcolor.c app, libgimp*, modules, pdb, plug-ins: new GimpParamColor. 2024-04-19 23:25:13 +02:00
gimpcolor.def libgimpcolor, app: gimp_color_parse_(css|hex|name)() renamed with _substring() suffix. 2024-04-20 12:37:20 +02:00
gimpcolor.h libgimpcolor, app: gimp_color_parse_(css|hex|name)() renamed with _substring() suffix. 2024-04-20 12:37:20 +02:00
gimpcolormanaged.c core: Add simulation intent and BPC to GimpImage 2022-08-13 19:39:47 +00:00
gimpcolormanaged.h core: Add simulation intent and BPC to GimpImage 2022-08-13 19:39:47 +00:00
gimpcolorprofile.c Issue #9994: do not call g_file_info_get_is_hidden() (and others) directly. 2023-09-19 15:34:48 +02:00
gimpcolorprofile.h libgimpcolor: add gimp_color_profile_get_space() 2018-07-16 14:06:32 +02:00
gimpcolorspace.c pdb, libgimp*: add (out caller-allocates) to all GimpRGB* return values 2019-08-01 15:39:13 +02:00
gimpcolorspace.h libgimpcolor: remove deprecated integer RGB <-> HSL conversion functions 2018-10-22 13:29:11 +02:00
gimpcolortransform.c libgimpcolor: fix call to cmsCreateProofingTransform(). 2022-04-20 20:54:20 +02:00
gimpcolortransform.h libgimp*: lots of doc fixes and new docs for structs and enums 2019-07-24 01:18:30 +02:00
gimpcolortypes.h app, libgimp*, modules, pdb, plug-ins: new GimpParamColor. 2024-04-19 23:25:13 +02:00
gimphsl.c app, libgimp*, pdb, plug-ins: use g_memdup2() instead of g_memdup() 2021-08-26 17:32:09 +02:00
gimphsl.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimphsv.c app, libgimp*, pdb, plug-ins: use g_memdup2() instead of g_memdup() 2021-08-26 17:32:09 +02:00
gimphsv.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimppixbuf.c gir: Add missing annotations 2020-05-04 02:11:57 +02:00
gimppixbuf.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimprgb-parse.c libgimpcolor: gimp_rgb_parse_hex() is also unused. 2024-04-20 03:41:27 +02:00
gimprgb.c libgimpcolor: remove all gimp_rgb_*() utilities not in use anymore. 2024-04-19 23:58:18 +02:00
gimprgb.h libgimpcolor: gimp_rgb_parse_hex() is also unused. 2024-04-20 03:41:27 +02:00
meson.build libgimpcolor: implement CIEDE2000 distance algorithm to compare colors. 2024-02-11 23:28:03 +01:00
test-color-parser.c fix compilation of a test 2012-05-03 20:36:28 +09:00