|
colorbutton
colorbutton widget reference
colorbutton widgetDefinition<colorbutton tag_attr="value"...> <default>data</default> <variable>varname</variable> <input>command</input> <input file>filename</input> <sensitive>state</sensitive> <action>activity</action>... <action signal="type">activity</action>... <action type="function">parameter</action>... <output file>filename</output> </colorbutton> "..." denotes acceptance of multiples of the same thing. Tag AttributesSee the GtkColorButton widget and ancestor class properties. The following custom tag attributes are available:
DirectivesSome of these may have tag attribute equivalents.
SignalsThe default signal is "color-set", emitted when the user selects a colour. See also the GtkColorButton widget and ancestor class signals. FunctionsThe following functions can be performed upon this widget by any widget capable of emitting signals:
The following general functions can be performed by any widget capable of emitting signals:
Notes1. Setting the "use-alpha" tag attribute to true will enable alpha selection. Alpha can be passed in following the #rrggbb value separated by a '|' character, or via the "alpha" tag attribute. Although the colour selection dialog displays alpha as an 8bit 0-255 value, GTK+ and Gtkdialog manage it as a 16bit 0-65535 value and therefore it'll require converting between the two formats. To convert from 8bit to 16bit use alpha * 257 and from 16bit to 8bit use (alpha + 257 / 2) / 257. This widget was introduced in version 0.7.21. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||