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

Style Properties

none

Geometry

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

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}.

GTK+ API Documentation

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

Attic/GnomeArt/Tutorials/GtkThemes/GtkColorButton (last edited 2013-11-27 14:33:53 by WilliamJonMcCann)