---
name: "Gnome2::ColorPicker"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::ColorPicker"
---

# Gnome2::ColorPicker(3pm)

wrapper for GnomeColorPicker

## NAME

Gnome2::ColorPicker - wrapper for GnomeColorPicker

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gnome2::ColorPicker
```

## INTERFACES

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

## METHODS

### widget = Gnome2::ColorPicker-\>new

### (r, g, b, a) = $cp-\>get\_d

### $cp-\>set\_d ($r, $g, $b, $a)

- •

  `$r` (double)

- •

  `$g` (double)

- •

  `$b` (double)

- •

  `$a` (double)

### boolean = $cp-\>get\_dither

### $cp-\>set\_dither ($dither)

- •

  `$dither` (boolean)

### (r, g, b, a) = $cp-\>get\_i16

### $cp-\>set\_i16 ($r, $g, $b, $a)

- •

  `$r` (unsigned)

- •

  `$g` (unsigned)

- •

  `$b` (unsigned)

- •

  `$a` (unsigned)

### (r, g, b, a) = $cp-\>get\_i8

### $cp-\>set\_i8 ($r, $g, $b, $a)

- •

  `$r` (unsigned)

- •

  `$g` (unsigned)

- •

  `$b` (unsigned)

- •

  `$a` (unsigned)

### string = $cp-\>get\_title

### $cp-\>set\_title ($title)

- •

  `$title` (string)

### boolean = $cp-\>get\_use\_alpha

### $cp-\>set\_use\_alpha ($use\_alpha)

- •

  `$use_alpha` (boolean)

## PROPERTIES

- 'alpha' (Glib::UInt : default 0 : readable / writable)

  The alpha value of the chosen color

- 'blue' (Glib::UInt : default 0 : readable / writable)

  The amount of blue in the chosen color

- 'dither' (boolean : default true : readable / writable)

  Whether or not to dither to color

- 'green' (Glib::UInt : default 0 : readable / writable)

  The amount of green in the chosen color

- 'red' (Glib::UInt : default 0 : readable / writable)

  The amount of red in the chosen color

- 'title' (string : default undef : readable / writable)

  The title to give to the color picker

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

  Whether or not to give the color an alpha value

## SIGNALS

- **color-set** (Gnome2::ColorPicker, Glib::UInt, Glib::UInt, Glib::UInt, Glib::UInt)

  ## SEE ALSO

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

## COPYRIGHT

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

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