man Gtk2::ColorSelection () - Gtk2::ColorSelection

NAME

Gtk2::ColorSelection

HIERARCHY

  Glib::Object
  +----Glib::Object::_Unregistered::GInitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Box
                           +----Gtk2::VBox
                                +----Gtk2::ColorSelection

INTERFACES

  Gtk2::Atk::ImplementorIface

METHODS

widget = Gtk2::ColorSelection->new

$colorsel->set_current_alpha ($alpha)

$colorsel->set_current_color ($color)

$colorsel->set_has_opacity_control ($has_opacity)

$colorsel->set_has_palette ($has_palette)

list = Gtk2::ColorSelection->palette_from_string ($string)

Returns a list of Gtk2::Gdk::color's.

(string) = Gtk::ColorSelection->palette_to_string (...)

* ... (list) of Gtk2::Gdk::Color's for the palette
Encodes a palette as a string, useful for persistent storage.

$colorsel->set_previous_alpha ($alpha)

$colorsel->set_previous_color ($color)

PROPERTIES

'current-alpha' (Glib::UInt : readable / writable / private)
The current opacity value (0 fully transparent, 65535 fully opaque)
'current-color' (Gtk2::Gdk::Color : readable / writable / private)
The current color
'has-opacity-control' (boolean : readable / writable / private)
Whether the color selector should allow setting opacity
'has-palette' (boolean : readable / writable / private)
Whether a palette should be used

SIGNALS

color-changed (Gtk2::ColorSelection)

SEE ALSO

Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::VBox

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.