ColorChooserDialog


Object Hierarchy:

Gtk.ColorChooserDialog Gtk.ColorChooserDialog Gtk.ColorChooserDialog Gtk.Dialog Gtk.Dialog Gtk.Dialog->Gtk.ColorChooserDialog Gtk.Window Gtk.Window Gtk.Window->Gtk.Dialog Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Window Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.ColorChooserDialog Atk.Implementor->Gtk.Dialog Atk.Implementor->Gtk.Window Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.ColorChooserDialog Gtk.Buildable->Gtk.Dialog Gtk.Buildable->Gtk.Window Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.ColorChooser Gtk.ColorChooser Gtk.ColorChooser->Gtk.ColorChooserDialog

Description:

[ CCode ( type_id = "gtk_color_chooser_dialog_get_type ()" ) ]
[ Version ( since = "3.4" ) ]
public class ColorChooserDialog : Dialog, Implementor, Buildable, ColorChooser

The ColorChooserDialog widget is a dialog for choosing a color.

It implements the ColorChooser interface.

Example: ColorChooserDialog:

public class Application : Gtk.Window {
public Application () {
// Prepare Gtk.Window:
this.title = "My Gtk.ColorChooserDialog";
this.window_position = Gtk.WindowPosition.CENTER;
this.destroy.connect (Gtk.main_quit);

// The button:
Gtk.ColorChooserDialog dialog = new Gtk.ColorChooserDialog ("Select Your Favorite Color", this);
if (dialog.run () == Gtk.ResponseType.OK) {
string alpha = dialog.use_alpha.to_string ();
string col = dialog.rgba.to_string ();
print ("Color: %s, Alpha: %s\n", col, alpha);
}
dialog.close ();
}

public static int main (string[] args) {
Gtk.init (ref args);

Application app = new Application ();
app.show_all ();
Gtk.main ();
return 0;
}
}

valac --pkg gtk+-3.0 Gtk.ColorChooserDialog.vala


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Window
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.ColorChooser