summaryrefslogtreecommitdiff
path: root/gdk/gdkrgba.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Rework the gdk docsMatthias Clasen2021-03-111-53/+49
| | | | Convert links, make things more concise.
* docs: Move detached sections into their own content fileEmmanuele Bassi2021-03-111-1/+1
|
* docs: CosmeticsMatthias Clasen2020-10-291-2/+2
| | | | Make the GdkRGBA heading less repetitive.
* rgba: Use pango_color_parse_with_alphaMatthias Clasen2020-08-021-6/+9
| | | | | | | Use this newly exported pango function, so we can support hex colors with alpha like #rrggbbaa. Fixes: #2931
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-2/+2
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-7/+7
|
* GdkRGBA: Fix typo in documentationTimm Bäder2020-07-171-1/+1
|
* Drop fallback-c89.cChristoph Reiter2020-05-311-2/+0
| | | | | | | | | We require a C compiler supporting C99 now. The main purpose of these fallbacks was for MSVC. From what I can see this is now all supported by MSVC 2015+ anyway. The only other change this includes is to replace isnanf() with the (type infering) C99 isnan() macro, because MSVC doesn't provide isnanf().
* GdkRGBA: Use floats instead of doublesTimm Bäder2020-01-071-9/+12
|
* css: Use %f, not %.17fBenjamin Otte2019-05-291-1/+1
| | | | | The testusite failures explain why: We don't want to print "1.00000000000000000", but "1".
* css: Don't print numbers with exponentBenjamin Otte2019-05-291-1/+1
| | | | | | | | CSS does not do exponents, so printing numbers close to 0 as 1.234e-15 does not work. Also up the accuracy to 17 digits because that's what everyone else uses.
* rgba: Add gdk_rgba_parser_parse()Benjamin Otte2019-04-121-1/+183
| | | | | | | | | | 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.
* RGBA: tiny grammar improvements in to_string docDaniel Boles2018-12-171-2/+2
|
* RGBA: Consistently use “” around inline arg namesDaniel Boles2018-12-171-4/+4
| | | | | instead of being inconsistent and not using them later, which leaves a bunch of single letters floating among real words, not the prettiest.
* RGBA: Fix example to_string output for reality/CSSDaniel Boles2018-12-171-2/+2
| | | | | | * We don't output spaces anywhere in the code, unlike the doc suggested. * CSS explicitly forbids whitespace between function names and lparens: https://stackoverflow.com/questions/13877198
* gdkrgba: Add a missing apostrophe in a doc commentDaniel Boles2018-03-191-1/+1
|
* The big versioning cleanupMatthias Clasen2018-02-061-16/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* GdkRGBA: Fix misspelt parameter names in docsDaniel Boles2017-07-061-2/+2
|
* GdkRGBA: Fix typo precentage => percentageDaniel Boles2017-07-061-1/+1
|
* API: gdk: Add gdk_rgba_is_clear() and gdk_rgba_is_opaque()Benjamin Otte2016-12-201-0/+34
| | | | | | | I want to use these inside GSK, and I'm not a fan of putting GdkRGBA APIs into it or duplicating it into GTK. So public API it is.
* Revert "Add missing (out) annotation to gdk_rgba_parse"Emmanuele Bassi2016-02-021-1/+1
| | | | | | | | | | | | | This reverts commit 695860958a9a2e7c825bcec4d0d42b427f0fb47e. The change introduced an introspection ABI break. See also: https://bugzilla.gnome.org/show_bug.cgi?id=682125 If we want to move the parse() method to be a constructor or a class method, we'll need to do more testing or add new API. https://bugzilla.gnome.org/show_bug.cgi?id=754990
* Add missing (out) annotation to gdk_rgba_parsePhil Clayton2016-01-231-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754990
* gdkrgba: Use %g instead of %.17g to print alphaBenjamin Otte2015-11-021-1/+1
| | | | This way 0.3 isn't printed as 0.29999999999999
* gdk_rgba_parse : do not segfault on null stringPierre-Yves Luyten2014-09-281-0/+3
|
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-2/+2
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-7/+7
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use ` instead of <literal>William Jon McCann2014-02-041-2/+2
|
* Docs: Use markdown for listsMatthias Clasen2014-02-021-16/+6
| | | | This greatly reduces the amount of xml in the docs.
* docs: don't use structfield tagsWilliam Jon McCann2014-01-271-3/+1
|
* docs: use #*-struct instead of <structname>William Jon McCann2014-01-271-6/+6
|
* GdkRgba: Fix 'loose' typoBastien Nocera2013-05-231-1/+1
| | | | | | Should be "lose" https://bugzilla.gnome.org/show_bug.cgi?id=700844
* docs: Escape bare '#' in GdkRGBA string definitionsEmmanuele Bassi2012-05-201-1/+2
| | | | GTK-Doc does not like bare '#', so let's turn them into &num;.
* Bug 670499-gdk/gdkrgba.c: Include fallback-c89.cChun-wei Fan2012-05-031-0/+2
| | | | Include (gdk/)fallback-c89.c as isnan() and isinf() is used.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Tighten up GdkRGBA parsingMatthias Clasen2012-01-091-11/+33
| | | | | gdk_rgba_parse was accepting too much nonsense, as pointed out in bug 667485.
* Use g_slice_dupMatthias Clasen2012-01-071-9/+1
| | | | | This saves some manual copying. Pointed out in bug 667473.
* More GDK documentation tweaksMatthias Clasen2011-02-091-40/+49
|
* [GI] Add (type) annotations to real typesPavel Holejsovsky2011-01-201-3/+3
|
* gdk: Add section docs for GdkRGBABenjamin Otte2010-12-061-0/+20
|
* gdk: Constify argument to gdk_rgba_copy()Benjamin Otte2010-12-061-1/+1
|
* rgba: Invert the arguments and improve bindabilityEmmanuele Bassi2010-11-281-3/+3
| | | | | | | | Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer should be the first argument, and the string the second one, to allow a more natural binding. https://bugzilla.gnome.org/show_bug.cgi?id=635879
* docs: gdkrgba: Add "Since: 3.0" tagsJavier Jardón2010-11-151-0/+12
|
* Switch to CSS interpretation of rgb() and rgba() colorsOwen W. Taylor2010-11-031-22/+69
| | | | | | | | | | CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values are integers from 0 to 255 or percentages and the a value is a float from 0 to 1. To avoid increasing the total amount of confusion in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow this syntax rather than using floats for r, g, and b. https://bugzilla.gnome.org/show_bug.cgi?id=633762
* Make gdk_rgba_to_string() take a const GdkRGBAChristian Persch2010-10-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=633216
* Add tests for GdkRGBA serializationMatthias Clasen2010-10-251-5/+11
| | | | | In particular, test that serialization is not dependent on the locale.
* Add GdkRGBA struct to supersede GdkColorCarlos Garnacho2010-10-221-0/+277
GdkRGBA is a boxed struct similar to GdkColor, with the difference that it stores alpha information as well, and colors are stored in [0..1] doubles, in the cairo spirit. gdk_cairo_set_source_rgba() has been also added to allow easier handling of this new type.