1Gtk2::Gdk::Color(3)   User Contributed Perl Documentation  Gtk2::Gdk::Color(3)
2
3
4

NAME

6       Gtk2::Gdk::Color - wrapper for GdkColor
7

DESCRIPTION

9       Gdk's colors are 16-bit RGB values -- that is, the red, green, and blue
10       components are integer values from 0 to 65535, with 65535 meaning full
11       saturation.  If you are used to dealing with colors on the range of 0
12       to 255, just scale those numbers by a factor of 257 (yes, 257!).
13

HIERARCHY

15         Glib::Boxed
16         +----Gtk2::Gdk::Color
17

METHODS

19   color = Gtk2::Gdk::Color->new ($red, $green, $blue, $pixel=0)
20       •   $red (unsigned)
21
22       •   $green (unsigned)
23
24       •   $blue (unsigned)
25
26       •   $pixel (unsigned)
27
28   unsigned = $color->blue
29   boolean = $colora->equal ($colorb)
30       •   $colorb (Gtk2::Gdk::Color)
31
32   unsigned = $color->green
33   integer = $colora->hash
34   color = Gtk2::Gdk::Color->parse ($spec)
35       •   $spec (string)
36
37   unsigned = $color->pixel
38   unsigned = $color->red
39   string = $color->to_string
40       Since: gtk+ 2.12
41

SEE ALSO

43       Gtk2, Glib::Boxed
44
46       Copyright (C) 2003-2011 by the gtk2-perl team.
47
48       This software is licensed under the LGPL.  See Gtk2 for a full notice.
49
50
51
52perl v5.38.0                      2023-07-20               Gtk2::Gdk::Color(3)
Impressum