ColorSelectionDialog


Object Hierarchy:

Object hierarchy for ColorSelectionDialog

Description:

public class ColorSelectionDialog : Dialog, Implementor, Buildable

Example: ColorSelectionDialog:

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

Gtk.ColorSelectionDialog dialog = new Gtk.ColorSelectionDialog ("Select Your Favorite Color");
if (dialog.run () == Gtk.ResponseType.OK) {
unowned Gtk.ColorSelection widget = dialog.get_color_selection ();
string rgba = widget.current_rgba.to_string ();
uint alpha = widget.current_alpha;
print ("Selection\n");
print (" %s\n", rgba);
print (" %u\n", alpha);
}
dialog.close ();
return 0;
}

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


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

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