ColorChooserDialog


Object Hierarchy:

Object hierarchy for ColorChooserDialog

Description:

public class ColorChooserDialog : Dialog, Implementor, Buildable, ColorChooser

The ColorChooserDialog widget is a dialog for choosing a color.

It implements the ColorChooser interface.

GtkColorChooserDialog

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