CtkColorSelectionDialog: CTK+ 3 Reference Manual

## CtkColorSelectionDialog CtkColorSelectionDialog — Dialog box for selecting a color |

## Functions

CtkWidget * | ctk_color_selection_dialog_new ()
CtkWidget * | ctk_color_selection_dialog_get_color_selection ()

## Properties

CtkWidget * | cancel-button | Read
CtkWidget * | color-selection | Read
CtkWidget * | help-button | Read
CtkWidget * | ok-button | Read

## Types and Values

struct | CtkColorSelectionDialog

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── CtkWidget
                ╰── CtkContainer
                    ╰── CtkBin
                        ╰── CtkWindow
                            ╰── CtkDialog
                                ╰── CtkColorSelectionDialog

## Implemented Interfaces

CtkColorSelectionDialog implements AtkImplementorIface and CtkBuildable.

## Includes

    #include <ctk/ctk.h>

## Description

The CtkColorSelectionDialog provides a standard dialog which allows the user to select a color much like the CtkFileChooserDialog provides a standard dialog for file selection.

Use `ctk_color_selection_dialog_get_color_selection()` to get the CtkColorSelection widget contained within the dialog. Use this widget and its `ctk_color_selection_get_current_color()` function to gain access to the selected color. Connect a handler for this widget’s “color-changed” signal to be notified when the color changes.

### CtkColorSelectionDialog as CtkBuildable

The CtkColorSelectionDialog implementation of the CtkBuildable interface exposes the embedded CtkColorSelection as internal child with the name “color_selection”. It also exposes the buttons with the names “ok_button”, “cancel_button” and “help_button”.

## Functions

### ctk_color_selection_dialog_new ()

    CtkWidget *
    ctk_color_selection_dialog_new (const gchar *title);

Creates a new CtkColorSelectionDialog.

#### Parameters

title | a string containing the title text for the dialog. |

#### Returns

a CtkColorSelectionDialog.

### ctk_color_selection_dialog_get_color_selection ()

    CtkWidget *
    ctk_color_selection_dialog_get_color_selection
                                   (CtkColorSelectionDialog *colorsel);

Retrieves the CtkColorSelection widget embedded in the dialog.

#### Parameters

colorsel | a CtkColorSelectionDialog |

#### Returns

the embedded CtkColorSelection.

[transfer none]

Since: 2.14

## Types and Values

### struct CtkColorSelectionDialog

    struct CtkColorSelectionDialog;

## Property Details

### The `“cancel-button”` property

      “cancel-button”            CtkWidget *

The cancel button of the dialog.

Owner: CtkColorSelectionDialog

Flags: Read

### The `“color-selection”` property

      “color-selection”          CtkWidget *

The color selection embedded in the dialog.

Owner: CtkColorSelectionDialog

Flags: Read

### The `“help-button”` property

      “help-button”              CtkWidget *

The help button of the dialog.

Owner: CtkColorSelectionDialog

Flags: Read

### The `“ok-button”` property

      “ok-button”                CtkWidget *

The OK button of the dialog.

Owner: CtkColorSelectionDialog

Flags: Read