1Gnome2::ColorPicker(3)User Contributed Perl DocumentationGnome2::ColorPicker(3)
2
3
4

NAME

6       Gnome2::ColorPicker - wrapper for GnomeColorPicker
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Bin
15                                  +----Gtk2::Button
16                                       +----Gnome2::ColorPicker
17

INTERFACES

19         Glib::Object::_Unregistered::AtkImplementorIface
20         Gtk2::Buildable
21         Gtk2::Activatable
22

METHODS

24   widget = Gnome2::ColorPicker->new
25   (r, g, b, a) = $cp->get_d
26   $cp->set_d ($r, $g, $b, $a)
27       •   $r (double)
28
29       •   $g (double)
30
31       •   $b (double)
32
33       •   $a (double)
34
35   boolean = $cp->get_dither
36   $cp->set_dither ($dither)
37       •   $dither (boolean)
38
39   (r, g, b, a) = $cp->get_i16
40   $cp->set_i16 ($r, $g, $b, $a)
41       •   $r (unsigned)
42
43       •   $g (unsigned)
44
45       •   $b (unsigned)
46
47       •   $a (unsigned)
48
49   (r, g, b, a) = $cp->get_i8
50   $cp->set_i8 ($r, $g, $b, $a)
51       •   $r (unsigned)
52
53       •   $g (unsigned)
54
55       •   $b (unsigned)
56
57       •   $a (unsigned)
58
59   string = $cp->get_title
60   $cp->set_title ($title)
61       •   $title (string)
62
63   boolean = $cp->get_use_alpha
64   $cp->set_use_alpha ($use_alpha)
65       •   $use_alpha (boolean)
66

PROPERTIES

68       'alpha' (Glib::UInt : default 0 : readable / writable)
69           The alpha value of the chosen color
70
71       'blue' (Glib::UInt : default 0 : readable / writable)
72           The amount of blue in the chosen color
73
74       'dither' (boolean : default true : readable / writable)
75           Whether or not to dither to color
76
77       'green' (Glib::UInt : default 0 : readable / writable)
78           The amount of green in the chosen color
79
80       'red' (Glib::UInt : default 0 : readable / writable)
81           The amount of red in the chosen color
82
83       'title' (string : default undef : readable / writable)
84           The title to give to the color picker
85
86       'use-alpha' (boolean : default false : readable / writable)
87           Whether or not to give the color an alpha value
88

SIGNALS

90       color-set (Gnome2::ColorPicker, Glib::UInt, Glib::UInt, Glib::UInt,
91       Glib::UInt)
92

SEE ALSO

94       Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
95       Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button
96
98       Copyright (C) 2003-2004 by the gtk2-perl team.
99
100       This software is licensed under the LGPL.  See Gnome2 for a full
101       notice.
102
103
104
105perl v5.34.0                      2021-07-22            Gnome2::ColorPicker(3)
Impressum