Ubuntu Manpages

Gtk2::ColorSelection

wrapper for GtkColorSelection

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Box
                           +----Gtk2::VBox
                                +----Gtk2::ColorSelection

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Orientable

$colorsel->set_current_alpha ($alpha)

  • $alpha (unsigned)

$colorsel->set_current_color ($color)

  • $color (Gtk2::Gdk::Color)

$colorsel->set_has_opacity_control ($has_opacity)

  • $has_opacity (boolean)

$colorsel->set_has_palette ($has_palette)

  • $has_palette (boolean)

  • $string (string)

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

  • ... (list) of Gtk2::Gdk::Color's for the palette

Encodes a palette as a string, useful for persistent storage.

$colorsel->set_previous_alpha ($alpha)

  • $alpha (unsigned)

$colorsel->set_previous_color ($color)

  • $color (Gtk2::Gdk::Color)

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

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::VBox

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

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