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

NAME

6       Gtk2::ColorButton - wrapper for GtkColorButton
7

HIERARCHY

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

INTERFACES

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

METHODS

24   widget = Gtk2::ColorButton->new ($color=undef)
25       ·   $color (Gtk2::Gdk::Color)
26
27   widget = Gtk2::ColorButton->new_with_color ($color=undef)
28       ·   $color (Gtk2::Gdk::Color)
29
30   unsigned = $color_button->get_alpha
31   $color_button->set_alpha ($alpha)
32       ·   $alpha (unsigned)
33
34   color = $color_button->get_color
35   $color_button->set_color ($color)
36       ·   $color (Gtk2::Gdk::Color)
37
38   string = $color_button->get_title
39   $color_button->set_title ($title)
40       ·   $title (string)
41
42   boolean = $color_button->get_use_alpha
43   $color_button->set_use_alpha ($use_alpha)
44       ·   $use_alpha (boolean)
45

PROPERTIES

47       'alpha' (Glib::UInt : default 65535 : readable / writable / private)
48           The selected opacity value (0 fully transparent, 65535 fully
49           opaque)
50
51       'color' (Gtk2::Gdk::Color : default undef : readable / writable /
52       private)
53           The selected color
54
55       'title' (string : default "Pick a Color" : readable / writable /
56       private)
57           The title of the color selection dialog
58
59       'use-alpha' (boolean : default false : readable / writable / private)
60           Whether or not to give the color an alpha value
61

SIGNALS

63       color-set (Gtk2::ColorButton)
64

SEE ALSO

66       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
67       Gtk2::Container, Gtk2::Bin, Gtk2::Button
68
70       Copyright (C) 2003-2011 by the gtk2-perl team.
71
72       This software is licensed under the LGPL.  See Gtk2 for a full notice.
73
74
75
76perl v5.30.1                      2020-01-30              Gtk2::ColorButton(3)
Impressum