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         Gtk2::Buildable
21         Glib::Object::_Unregistered::GtkOrientable
22

METHODS

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

PROPERTIES

61       'current-alpha' (Glib::UInt : readable / writable / private)
62           The current opacity value (0 fully transparent, 65535 fully opaque)
63
64       'current-color' (Gtk2::Gdk::Color : readable / writable / private)
65           The current color
66
67       'has-opacity-control' (boolean : readable / writable / private)
68           Whether the color selector should allow setting opacity
69
70       'has-palette' (boolean : readable / writable / private)
71           Whether a palette should be used
72

SIGNALS

74       color-changed (Gtk2::ColorSelection)
75

SEE ALSO

77       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
78       Gtk2::Container, Gtk2::Box, Gtk2::VBox
79
81       Copyright (C) 2003-2008 by the gtk2-perl team.
82
83       This software is licensed under the LGPL.  See Gtk2 for a full notice.
84
85
86
87perl v5.12.0                      2010-05-02           Gtk2::ColorSelection(3)
Impressum