mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
docs: move documentation to inline comments: GtkColorButton
This commit is contained in:
parent
65834294a5
commit
a31142a8fa
1
docs/reference/gtk/tmpl/.gitignore
vendored
1
docs/reference/gtk/tmpl/.gitignore
vendored
@ -8,6 +8,7 @@ gtkbuilder.sgml
|
||||
gtkbutton.sgml
|
||||
gtkcalendar.sgml
|
||||
gtkcelleditable.sgml
|
||||
gtkcolorbutton.sgml
|
||||
gtkcombobox.sgml
|
||||
gtkcomboboxentry.sgml
|
||||
gtkcontainer.sgml
|
||||
|
@ -1,148 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkColorButton
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A button to launch a color selection dialog
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The #GtkColorButton is a button which displays the currently selected color
|
||||
an allows to open a color selection dialog to change the color. It is suitable
|
||||
widget for selecting a color in a preference dialog.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
#GtkColorSelectionDialog, #GtkFontButton
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### SECTION Image ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkColorButton ##### -->
|
||||
<para>
|
||||
The GtkColorButton struct has only private fields and
|
||||
should not be used directly.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GtkColorButton::color-set ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@colorbutton: the object which received the signal.
|
||||
|
||||
<!-- ##### ARG GtkColorButton:alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkColorButton:color ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkColorButton:title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkColorButton:use-alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@void:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_new_with_color ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_set_color ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@color:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_get_color ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@color:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_set_alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@alpha:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_get_alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_set_use_alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@use_alpha:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_get_use_alpha ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_set_title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@title:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_color_button_get_title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@color_button:
|
||||
@Returns:
|
||||
|
||||
|
@ -45,6 +45,19 @@
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
|
||||
|
||||
/**
|
||||
* SECTION:gtkcolorbutton
|
||||
* @Short_description: A button to launch a color selection dialog
|
||||
* @Title: GtkColorButton
|
||||
* @See_also: #GtkColorSelectionDialog, #GtkFontButton
|
||||
*
|
||||
* The #GtkColorButton is a button which displays the currently selected color
|
||||
* an allows to open a color selection dialog to change the color. It is suitable
|
||||
* widget for selecting a color in a preference dialog.
|
||||
*/
|
||||
|
||||
|
||||
/* Size of checks and gray levels for alpha compositing checkerboard */
|
||||
#define CHECK_SIZE 4
|
||||
#define CHECK_DARK (1.0 / 3.0)
|
||||
|
Loading…
Reference in New Issue
Block a user