📄 gtkcolorseldlg.sgml
字号:
<!-- ##### SECTION Title ##### -->GtkColorSelectionDialog<!-- ##### SECTION Short_Description ##### -->A standard dialog box for selecting a color<!-- ##### SECTION Long_Description ##### --><para>The #GtkColorSelectionDialog provides a standard dialog whichallows the user to select a color much like the #GtkFileSelectionprovides a standard dialog for file selection.</para><refsect2 id="GtkColorSelectionDialog-BUILDER-UI"><title>GtkColorSelectionDialog as GtkBuildable</title><para>The GtkColorSelectionDialog implementation of the GtkBuildable interfaceexposes the embedded #GtkColorSelection as internal child with thename "color_selection". It also exposes the buttons with the names"ok_button", "cancel_button" and "help_button".</para></refsect2><!-- ##### SECTION See_Also ##### --><para></para><!-- ##### SECTION Stability_Level ##### --><!-- ##### STRUCT GtkColorSelectionDialog ##### --><para>The #GtkColorSelectionDialog-struct struct contains the following fields.(These fields should be considered read-only. They should never be set byan application.)<informaltable pgwide="1" frame="none" role="struct"><tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/><tbody><row><entry>#GtkWidget *colorsel;</entry><entry>The #GtkColorSelection widget contained within thedialog. Use this widget and its gtk_color_selection_get_current_color()function to gain access to the selected color. Connect a handler for this widget's color_changed signal to be notified when thecolor changes.</entry></row><row><entry>#GtkWidget *ok_button;</entry><entry>The OK button widget contained within the dialog. Connect a handler for the clicked event.</entry></row><row><entry>#GtkWidget *cancel_button;</entry><entry>The cancel button widget contained within the dialog. Connect a handler for the clicked event.</entry></row><row><entry>#GtkWidget *help_button;</entry><entry>The help button widget contained within the dialog. Connect a handler for the clicked event.</entry></row></tbody></tgroup></informaltable></para><!-- ##### FUNCTION gtk_color_selection_dialog_new ##### --><para>Creates a new #GtkColorSelectionDialog.</para>@title: a string containing the title text for the dialog.@Returns: a #GtkColorSelectionDialog.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -