1Gtk2::ColorButton(3) User Contributed Perl Documentation Gtk2::ColorButton(3)
2
3
4
6 Gtk2::ColorButton - wrapper for GtkColorButton
7
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
19 Glib::Object::_Unregistered::AtkImplementorIface
20 Gtk2::Buildable
21 Gtk2::Activatable
22
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
47 'alpha' (Glib::UInt : default 65535 : readable / writable / private /
48 static-nick / static-blurb)
49 The selected opacity value (0 fully transparent, 65535 fully
50 opaque)
51
52 'color' (Gtk2::Gdk::Color : default undef : readable / writable /
53 private / static-nick / static-blurb)
54 The selected color
55
56 'title' (string : default "Pick a Color" : readable / writable /
57 private / static-nick / static-blurb)
58 The title of the color selection dialog
59
60 'use-alpha' (boolean : default false : readable / writable / private /
61 static-nick / static-blurb)
62 Whether or not to give the color an alpha value
63
65 color-set (Gtk2::ColorButton)
66
68 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
69 Gtk2::Container, Gtk2::Bin, Gtk2::Button
70
72 Copyright (C) 2003-2011 by the gtk2-perl team.
73
74 This software is licensed under the LGPL. See Gtk2 for a full notice.
75
76
77
78perl v5.34.0 2021-07-22 Gtk2::ColorButton(3)