Forum und email

GtkColorButton

A button that launches a color selection dialog.

オブジェクトの階層

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkBin
                            `-- GtkButton
                                   `-- GtkColorButton

説明

GtkColorButton is a button that performs two functions. One is to display the current color selected (or the default color is no color has been selected yet) and the other is to allow the user to launch a GtkColorSelectionDialog to select a color. It is a suitable widget that may be displayed wherever you require the user to select a color for a specific purpose.

コンストラクタ

-- Creates a new GtkColorButton.

メソッド

get_alpha()
  Returns the current alpha value.
get_color()
  Returns the current color selected.
get_title()
  Returns the title of the color selection dialog.
get_use_alpha()
  Determines whether the color selection dialog uses the alpha channel or not.
set_alpha()
  Sets the current alpha value.
set_color()
  Sets the current color selected.
set_title()
  Sets the title of the color selection dialog.
set_use_alpha()
  Sets whether the color selection dialog will use the alpha channel or not.

シグナル

"color-set"
  Emitted when the user selects a color.