=head1 NAME

Gtk2::ColorSelection

=head1 HIERARCHY

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

=head1 INTERFACES

  Gtk2::Atk::ImplementorIface


=head1 METHODS

=head2 widget = Gtk2::ColorSelection-E<gt>B<new> 

=over

=back

=head2 unsigned = $colorsel-E<gt>B<get_current_alpha> 

=over

=back

=head2 $colorsel-E<gt>B<set_current_alpha> ($alpha)

=over

=over

=item * $alpha (unsigned) 

=back

=back

=head2 color = $colorsel-E<gt>B<get_current_color> 

=over

=back

=head2 $colorsel-E<gt>B<set_current_color> ($color)

=over

=over

=item * $color (Gtk2::Gdk::Color) 

=back

=back

=head2 boolean = $colorsel-E<gt>B<get_has_opacity_control> 

=over

=back

=head2 $colorsel-E<gt>B<set_has_opacity_control> ($has_opacity)

=over

=over

=item * $has_opacity (boolean) 

=back

=back

=head2 boolean = $colorsel-E<gt>B<get_has_palette> 

=over

=back

=head2 $colorsel-E<gt>B<set_has_palette> ($has_palette)

=over

=over

=item * $has_palette (boolean) 

=back

=back

=head2 boolean = $colorsel-E<gt>B<is_adjusting> 

=over

=back

=head2 list = Gtk2::ColorSelection-E<gt>B<palette_from_string> ($string)

=over

=over

=item * $string (string) 

=back

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

=back

=head2 (string) = Gtk::ColorSelection->B<palette_to_string> (...)

=over

=over

=item * ... (list) of Gtk2::Gdk::Color's for the palette

=back

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

=back

=head2 unsigned = $colorsel-E<gt>B<get_previous_alpha> 

=over

=back

=head2 $colorsel-E<gt>B<set_previous_alpha> ($alpha)

=over

=over

=item * $alpha (unsigned) 

=back

=back

=head2 color = $colorsel-E<gt>B<get_previous_color> 

=over

=back

=head2 $colorsel-E<gt>B<set_previous_color> ($color)

=over

=over

=item * $color (Gtk2::Gdk::Color) 

=back

=back


=head1 PROPERTIES

=over

=item 'current-alpha' (Glib::UInt : readable / writable)

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

=item 'current-color' (Gtk2::Gdk::Color : readable / writable)

The current color

=item 'has-opacity-control' (boolean : readable / writable)

Whether the color selector should allow setting opacity

=item 'has-palette' (boolean : readable / writable)

Whether a palette should be used

=back


=head1 SIGNALS

=over

=item B<color-changed> (Gtk2::ColorSelection)

=back


=head1 ENUMS AND FLAGS

=head2 flags Gtk2::Gdk::EventMask

=over

=item * 'exposure-mask' / 'GDK_EXPOSURE_MASK'

=item * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'

=item * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'

=item * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'

=item * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'

=item * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'

=item * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'

=item * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'

=item * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'

=item * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'

=item * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'

=item * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'

=item * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'

=item * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'

=item * 'structure-mask' / 'GDK_STRUCTURE_MASK'

=item * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'

=item * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'

=item * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'

=item * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'

=item * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'

=item * 'scroll-mask' / 'GDK_SCROLL_MASK'

=item * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Gtk2::Object>, L<Gtk2::Widget>, L<Gtk2::Container>, L<Gtk2::Box>, L<Gtk2::VBox>

=head1 COPYRIGHT

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

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


=cut

