1Gtk2::ColorSelection(3)User Contributed Perl DocumentatioGntk2::ColorSelection(3)
2
3
4

NAME

6       Gtk2::ColorSelection
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Box
15                                  +----Gtk2::VBox
16                                       +----Gtk2::ColorSelection
17

INTERFACES

19         Glib::Object::_Unregistered::AtkImplementorIface
20

METHODS

22       widget = Gtk2::ColorSelection->new
23
24       unsigned = $colorsel->get_current_alpha
25
26       $colorsel->set_current_alpha ($alpha)
27
28           * $alpha (unsigned)
29
30       color = $colorsel->get_current_color
31
32       $colorsel->set_current_color ($color)
33
34           * $color (Gtk2::Gdk::Color)
35
36       boolean = $colorsel->get_has_opacity_control
37
38       $colorsel->set_has_opacity_control ($has_opacity)
39
40           * $has_opacity (boolean)
41
42       boolean = $colorsel->get_has_palette
43
44       $colorsel->set_has_palette ($has_palette)
45
46           * $has_palette (boolean)
47
48       boolean = $colorsel->is_adjusting
49
50       list = Gtk2::ColorSelection->palette_from_string ($string)
51
52           * $string (string)
53
54           Returns a list of Gtk2::Gdk::color's.
55
56       (string) = Gtk::ColorSelection->palette_to_string (...)
57
58           * ... (list) of Gtk2::Gdk::Color's for the palette
59
60           Encodes a palette as a string, useful for persistent storage.
61
62       unsigned = $colorsel->get_previous_alpha
63
64       $colorsel->set_previous_alpha ($alpha)
65
66           * $alpha (unsigned)
67
68       color = $colorsel->get_previous_color
69
70       $colorsel->set_previous_color ($color)
71
72           * $color (Gtk2::Gdk::Color)
73

PROPERTIES

75       'current-alpha' (Glib::UInt : readable / writable / private)
76           The current opacity value (0 fully transparent, 65535 fully opaque)
77
78       'current-color' (Gtk2::Gdk::Color : readable / writable / private)
79           The current color
80
81       'has-opacity-control' (boolean : readable / writable / private)
82           Whether the color selector should allow setting opacity
83
84       'has-palette' (boolean : readable / writable / private)
85           Whether a palette should be used
86

SIGNALS

88       color-changed (Gtk2::ColorSelection)
89

SEE ALSO

91       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
92       Gtk2::Container, Gtk2::Box, Gtk2::VBox
93
95       Copyright (C) 2003-2007 by the gtk2-perl team.
96
97       This software is licensed under the LGPL.  See Gtk2 for a full notice.
98
99
100
101perl v5.8.8                       2007-03-18           Gtk2::ColorSelection(3)
Impressum