cvs: php-gtk-doc /en/reference/gtk gtkpreview.xml
| From: | Scott Mattocks | Date: | Mon, 15 Nov 2004 22:00:28 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gtk gtkpreview.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1242@lists.php.net to get a copy of this message | ||
scottmattocks Mon Nov 15 17:00:28 2004 EDT
Modified files:
/php-gtk-doc/en/reference/gtk gtkpreview.xml
Log:
Documentation for GtkPreview.
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkpreview.xml?r1=1.4&r2=1.5&ty=u
Index: php-gtk-doc/en/reference/gtk/gtkpreview.xml
diff -u php-gtk-doc/en/reference/gtk/gtkpreview.xml:1.4
php-gtk-doc/en/reference/gtk/gtkpreview.xml:1.5
--- php-gtk-doc/en/reference/gtk/gtkpreview.xml:1.4 Sun Jan 20 14:47:43 2002
+++ php-gtk-doc/en/reference/gtk/gtkpreview.xml Mon Nov 15 17:00:25 2004
@@ -7,22 +7,47 @@
Widget to display RGB or grayscale data.
</shortdesc>
<desc>
-
+ <para>
+ The <classname>GtkPreview</classname> widget provides a simple interface
+ used to display images as RGB or grayscale data.
+ <note>
+ The use of GtkPreview is deprecated and should not be used in new code.
+ Use a <classname>GdkPixbuf</classname> displayed by a
+ <classname>GtkImage</classname> or a
+ <classname>GtkDrawingArea</classname> instead.
+ </note>
+ </para>
</desc>
</classmeta>
<constructor id="gtk.gtkpreview.constructor">
<funcsynopsis>
<funcprototype>
- <funcdef> <function>GtkPreview</function></funcdef>
- <paramdef><enumname>GtkPreviewType</enumname>
<parameter>type</parameter></paramdef>
+ <funcdef>
+ <function>GtkPreview</function>
+ </funcdef>
+ <paramdef>
+ <enumname>GtkPreviewType</enumname> <parameter>type</parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Create a new GtkPreview.
</shortdesc>
<desc>
-
+ <simpara>
+ Creates a new <classname>GtkPreview</classname> of type
+ <parameter>type</parameter>. <parameter>type</parameter> must be a
valid
+ <enumname>GtkPreviewType</enumname>.
+ </simpara>
+ <para>
+ <note>
+ The use of GtkPreview is deprecated and should not be used in new code.
+ Use a <classname>GdkPixbuf</classname> displayed by a
+ <classname>GtkImage</classname> or a
+ <classname>GtkDrawingArea</classname> instead.
+ </note>
+ </para>
</desc>
</constructor>
@@ -37,10 +62,24 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Set the size of the preview.
</shortdesc>
<desc>
-
+ <simpara>
+ Sets the dimensions of the preview to <parameter>width</parameter> pixels
+ wide by <parameter>height</parameter> pixels high.
+ </simpara>
+ <simpara>
+ <function class="GtkPreview">size</function> only sets the requested
+ size. The actual size of the preview image depends on the size and
+ settings of the container that encloses the widget. If the preview is
+ allowed to expand to fill the container, it may appear larger than the
+ dimensions requested with the <function
+ class="GtkPreview">size</function> method.
+ </simpara>
+ <simpara>
+ See also: <function class="GtkPreview">set_expand</function>
+ </simpara>
</desc>
</method>
@@ -59,10 +98,18 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Draw a portion of the preview image into the drawable window.
</shortdesc>
<desc>
-
+ <simpara>
+ Draws a portion of the preview image into the drawable window.
+ <parameter>srcx</parameter> and <parameter>srcy</parameter> represent
the
+ upper left corner of the source image to be drawn.
+ <parameter>destx</parameter> and <parameter>desty</parameter>
represent
+ the location of the upper left corner of the destination image to be
+ drawn. <parameter>width</parameter> and <parameter>height</parameter>
+ specify the rectangular portion of the image that is to be drawn.
+ </simpara>
</desc>
</method>
@@ -71,16 +118,25 @@
<funcprototype>
<funcdef>void <function>draw_row</function></funcdef>
<paramdef>string <parameter>data</parameter></paramdef>
- <paramdef>int <parameter>x</parameter></paramdef>
- <paramdef>int <parameter>y</parameter></paramdef>
- <paramdef>int <parameter>w</parameter></paramdef>
+ <paramdef>int <parameter>start</parameter></paramdef>
+ <paramdef>int <parameter>row</parameter></paramdef>
+ <paramdef>int <parameter>pixels</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Set the data for a portion of one row of the preview.
</shortdesc>
<desc>
-
+ <simpara>
+ Replaces <parameter>pixels</parameter> pixels of data on row
+ <parameter>row</parameter> of the preview starting at
+ <parameter>start</parameter> with <parameter>data</parameter>.
+ If the preview is of type <literal>GTK_PREVIEW_GREYSCALE</literal>,
+ <parameter>data</parameter> must be <parameter>pixels</parameter>
bytes
+ of data. If the preview is of type <literal>GTK_PREVIEW_COLOR</literal>,
+ <parameter>data</parameter> must be 3*<parameter>pixels</parameter>
+ bytes of data.
+ </simpara>
</desc>
</method>
@@ -92,13 +148,46 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Set the behavior of the preview when the allocated size is larger than the
+ requested size.
</shortdesc>
<desc>
-
+ <simpara>
+ Sets the behavior of the preview when the allocated size is larget than
+ the requested size. If <parameter>expand</parameter> is
+ <literal>false</literal> then the preview will not be larger than the
+ dimensions set with <function class="GtkPreview">size</function>. If the
+ container enclosing the preview is larger than the requested dimensions,
+ the preview will be centered in the container. If
+ <parameter>expand</parameter> is <literal>true</literal>, the preview
+ will expand to fill the container. The application is responsible
+ providing data of the correct dimensions.
+ </simpara>
+ <simpara>
+ See also: <function class="GtkPreview">size</function>
+ </simpara>
</desc>
</method>
</methods>
</classentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->