Blame platform-demos/C/image.js.page

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="image.js">
Packit 1470ea
  <info>
Packit 1470ea
  <title type="text">Image (JavaScript)</title>
Packit 1470ea
    <link type="guide" xref="beginner.js#display-widgets"/>
Packit 1470ea
    <revision version="0.1" date="2012-05-24" status="draft"/>
Packit 1470ea
Packit 1470ea
    <credit type="author copyright">
Packit 1470ea
      <name>Taryn Fox</name>
Packit 1470ea
      <email its:translate="no">jewelfox@fursona.net</email>
Packit 1470ea
      <years>2012</years>
Packit 1470ea
    </credit>
Packit 1470ea
Packit 1470ea
    <desc>A widget displaying an image</desc>
Packit 1470ea
  </info>
Packit 1470ea
Packit 1470ea
  <title>Image</title>
Packit 1470ea
  <media type="image" mime="image/png" src="media/image.png"/>
Packit 1470ea
  

This GtkApplication displays an image file from the current directory.

Packit 1470ea
  <note>

Packit 1470ea
    If the image file isn't loaded successfully, the image will contain a "broken image" icon.  The <file>filename.png</file> needs to be in the current directory for this code to work.  Use your favorite picture!
Packit 1470ea
  

</note>
Packit 1470ea
Packit 1470ea
<xi:include href="samples/image.js" parse="text"><xi:fallback/></xi:include>
Packit 1470ea

Packit 1470ea
  In this sample we used the following:
Packit 1470ea

Packit 1470ea
<list>
Packit 1470ea
  <item>

<link href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application.html">Gtk.Application</link>

</item>
Packit 1470ea
  <item>

<link href="http://developer.gnome.org/gtk3/stable/GtkApplicationWindow.html">Gtk.ApplicationWindow</link>

</item>
Packit 1470ea
  <item>

<link href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html">Gtk.Image</link>

</item>
Packit 1470ea
</list>
Packit 1470ea
</page>