Blame platform-demos/C/colorbutton.js.page
|
Packit |
1470ea |
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
xmlns:its="http://www.w3.org/2005/11/its"
|
|
Packit |
1470ea |
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
Packit |
1470ea |
type="guide" style="task"
|
|
Packit |
1470ea |
id="colorbutton.js">
|
|
Packit |
1470ea |
<info>
|
|
Packit |
1470ea |
<title type="text">ColorButton (JavaScript)</title>
|
|
Packit |
1470ea |
<link type="guide" xref="beginner.js#color-selectors"/>
|
|
Packit |
1470ea |
<revision version="0.1" date="2013-06-25" status="review"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<credit type="author copyright">
|
|
Packit |
1470ea |
<name>Meg Ford</name>
|
|
Packit |
1470ea |
<email its:translate="no">megford@gnome.org</email>
|
|
Packit |
1470ea |
<years>2013</years>
|
|
Packit |
1470ea |
</credit>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<desc>A button to launch a color selection dialog</desc>
|
|
Packit |
1470ea |
</info>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<title>ColorButton</title>
|
|
Packit |
1470ea |
<media type="image" mime="image/png" src="media/colorbutton.png"/>
|
|
Packit |
1470ea |
This ColorButton launches a color selection dialog and prints in the terminal the RGB values of the color selected.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<links type="sections" />
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<section id="code">
|
|
Packit |
1470ea |
<title>Code used to generate this example</title>
|
|
Packit |
1470ea |
<xi:include href="samples/colorbutton.js" parse="text"><xi:fallback/></xi:include>
|
|
Packit |
1470ea |
</section>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<section id="references">
|
|
Packit |
1470ea |
<title>API References</title>
|
|
Packit |
1470ea |
In this sample we used the following:
|
|
Packit |
1470ea |
<list>
|
|
Packit |
1470ea |
<item><link href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ColorButton.html">GtkColorButton</link> </item>
|
|
Packit |
1470ea |
<item><link href="http://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html">RGBA Colors</link> </item>
|
|
Packit |
1470ea |
</list>
|
|
Packit |
1470ea |
</section>
|
|
Packit |
1470ea |
</page>
|