This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

1. Overview

The ../GtkColorButton is a normal ../GtkButton, with a ../GtkFrame in it. Inside this frame there is a GtkDrawingArea where the color is previewed. The ../GtkFrame has a shadow of ETCHED_OUT.

screenshot.png

2. Style Properties

none

3. Geometry

Please refere to the documentation of ../GtkButton and ../GtkFrame.

4. Drawing

Please refere to the documentation of ../GtkButton and ../GtkFrame for information about how these are drawn.

The GtkDrawingArea in the center of the button is filled with the choosen color. Should the color be transparent, a checkboard pattern is drawn underneath. The colors used for these have RGB values of {1/3, 1/3, 1/3} and {2/3, 2/3, 2/3}.

5. GTK+ API Documentation

http://library.gnome.org/devel/gtk/stable/GtkColorButton.html


2024-10-23 10:58