Gtk2::ColorButton(3pm)

Gtk2::ColorButton3pm

Wrapper for gtkcolorbutton

Hierarchy

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::ColorButton

Interfaces

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Activatable

Methods

widget = Gtk2::ColorButton->new ($color=undef)

•

$color (Gtk2::Gdk::Color)

widget = Gtk2::ColorButton->new_with_color ($color=undef)

•

$color (Gtk2::Gdk::Color)

unsigned = $color_button->get_alpha

$color_button->set_alpha ($alpha)

•

$alpha (unsigned)

color = $color_button->get_color

$color_button->set_color ($color)

•

$color (Gtk2::Gdk::Color)

string = $color_button->get_title

$color_button->set_title ($title)

•

$title (string)

boolean = $color_button->get_use_alpha

$color_button->set_use_alpha ($use_alpha)

•

$use_alpha (boolean)

Properties

'alpha' (Glib::UInt : default 65535 : readable / writable / private)

The selected opacity value (0 fully transparent, 65535 fully opaque)

'color' (Gtk2::Gdk::Color : default undef : readable / writable / private)

The selected color

'title' (string : default "Pick a Color" : readable / writable / private)

The title of the color selection dialog

'use-alpha' (boolean : default false : readable / writable / private)

Whether or not to give the color an alpha value

Signals

color-set (Gtk2::ColorButton)

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.