ColorSelectionDialog


Object Hierarchy:

Gtk.ColorSelectionDialog Gtk.ColorSelectionDialog Gtk.ColorSelectionDialog Gtk.Dialog Gtk.Dialog Gtk.Dialog->Gtk.ColorSelectionDialog 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.ColorSelectionDialog 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.ColorSelectionDialog Gtk.Buildable->Gtk.Dialog Gtk.Buildable->Gtk.Window Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_color_selection_dialog_get_type ()" ) ]
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