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

NAME

6       Gtk2::ColorSelection - wrapper for GtkColorSelection
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         Gtk2::Orientable
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 : default 65535 : readable / writable /
62       private / static-nick / static-blurb)
63           The current opacity value (0 fully transparent, 65535 fully opaque)
64
65       'current-color' (Gtk2::Gdk::Color : default undef : readable / writable
66       / private / static-nick / static-blurb)
67           The current color
68
69       'has-opacity-control' (boolean : default false : readable / writable /
70       private / static-nick / static-blurb)
71           Whether the color selector should allow setting opacity
72
73       'has-palette' (boolean : default false : readable / writable / private
74       / static-nick / static-blurb)
75           Whether a palette should be used
76

SIGNALS

78       color-changed (Gtk2::ColorSelection)
79

SEE ALSO

81       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
82       Gtk2::Container, Gtk2::Box, Gtk2::VBox
83
85       Copyright (C) 2003-2011 by the gtk2-perl team.
86
87       This software is licensed under the LGPL.  See Gtk2 for a full notice.
88
89
90
91perl v5.32.0                      2020-07-28           Gtk2::ColorSelection(3)
Impressum