docs: add HSL to Gdk.RGBA.parse
authorFineFindus <FineFindus@proton.me>
Thu, 25 May 2023 15:16:55 +0000 (17:16 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:58:47 +0000 (07:58 -0400)
Update the Gdk.RGBA.parse docs to reflect the ability to parse HSL, which has been added in 4.5.0.

gdk/gdkrgba.c

index 9b52204038a95e7fc322e134fd08265099715ed0..2b137ceb09447ec96ec02139b3c9564d6d6b2c6a 100644 (file)
@@ -165,7 +165,7 @@ parse_rgb_value (const char   *str,
  *
  * The string can be either one of:
  *
- * - A standard name (Taken from the Css specification).
+ * - A standard name (Taken from the CSS specification).
  * - A hexadecimal value in the form “\#rgb”, “\#rrggbb”,
  *   “\#rrrgggbbb” or ”\#rrrrggggbbbb”
  * - A hexadecimal value in the form “\#rgba”, “\#rrggbbaa”,
@@ -173,6 +173,8 @@ parse_rgb_value (const char   *str,
  * - A RGB color in the form “rgb(r,g,b)” (In this case the color
  *   will have full opacity)
  * - A RGBA color in the form “rgba(r,g,b,a)”
+ * - A HSL color in the form "hsl(hue, saturation, lightness)"
+ * - A HSLA color in the form "hsla(hue, saturation, lightness, alpha)"
  *
  * Where “r”, “g”, “b” and “a” are respectively the red, green,
  * blue and alpha color values. In the last two cases, “r”, “g”,