Gtk::ColorSelectionDialog
class Gtk::ColorSelectionDialog
The Gtk::ColorSelectionDialog provides a standard dialog which allows the user to select a color much like the Gtk::FileSelection provides a standard dialog for file selection.
Class Methods
Gtk::ColorSelectionDialog.new(title = nil)
-
Creates a new Gtk::ColorSelectionDialog.
- title: a string containing the title text for the dialog.
- Returns: a Gtk::ColorSelectionDialog.
Instance Methods
colorsel
-
Gets the Gtk::ColorSelection widget contained within the dialog. Use this widget and its Gtk::ColorSelection#current_color method to gain access to the selected color. Connect a handler for this widget's color_changed signal to be notified when the color changes.
- Returns: the color selection widget(Gtk::ColorSelection)
ok_button
-
Gets the OK button widget contained within the dialog. Connect a handler for the clicked event.
- Returns: the ok_button(Gtk::Button)
cancel_button
-
Gets the cancel button widget contained within the dialog. Connect a handler for the clicked event.
- Returns: the cancel_button(Gtk::Button)
help_button
-
Gets the help button widget contained within the dialog. Connect a handler for the clicked event.
- Returns: the help_button(Gtk::Button)
ref_accessible
- See Atk::Implementor#ref_accessible.
add_child
- See Gtk::Buildable#add_child.
construct_child
- See Gtk::Buildable#construct_child.
get_internal_child
- See Gtk::Buildable#get_internal_child.
name
- See Gtk::Buildable#name.
name=
- See Gtk::Buildable#name=.
set_buildable_property
- See Gtk::Buildable#set_buildable_property.
set_name
- See Gtk::Buildable#set_name.
builder_name
- See Gtk::Buildable#builder_name.
builder_name=
- See Gtk::Buildable#builder_name=.
color_selection
-
Gets the color selection embedded in the dialog.
- Returns: The color selection embedded in the dialog
set_builder_name
- See Gtk::Buildable#set_builder_name.
Properties
cancel-button: Gtk::Widget (Read)
- The cancel button of the dialog.
color-selection: Gtk::Widget (Read)
- The color selection embedded in the dialog.
help-button: Gtk::Widget (Read)
- The help button of the dialog.
ok-button: Gtk::Widget (Read)
- The OK button of the dialog.
Keyword(s):
References:[index-ruby-gtk2] [tut-gtk2-dialog] [Gtk::ColorButton] [tut-gtk2-dialog-msg] [tut-gtk2-selchoose] [News_20120408_1] [Gtk::ColorSelection] [Ruby/GTK] [api-gtk-index] [tut-gtk2-sel-choo] [News (2015-09-13 No.1)] [Gdk::Display] [Gtk::Builder] [ruby-gtk-object-hierarchy] [tut-gtk2-dialog-fontcolor] [Gtk::ColorSelectionDialog]