cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkcolor.xml gdkgc.xml

From: Date: Wed, 18 Jun 2003 17:15:55 +0000
Subject: cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkcolor.xml gdkgc.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-804@lists.php.net to get a copy of this message
sfox Wed Jun 18 13:15:55 2003 EDT Modified files: /php-gtk-doc/en/reference/gdk gdk-functions.xml gdkcolor.xml gdkgc.xml Log: Updating to reflect general changes Index: php-gtk-doc/en/reference/gdk/gdk-functions.xml diff -u php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.10 php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.11 --- php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.10 Tue Jun 17 17:27:57 2003 +++ php-gtk-doc/en/reference/gdk/gdk-functions.xml Wed Jun 18 13:15:55 2003 @@ -592,19 +592,13 @@ </member> </simplelist> </para> - <para> + <simpara> A typical font-load would look something like this: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$font = + <literal> + $font = gdk::font_load('-unknown-Arial-normal-r-normal--*-120-96-96-p-0-iso8859-1'); -?> -]]> - </programlisting> - </informalexample> - </para> + </literal> + </simpara> <note> <simpara> Font information in the <acronym>XLFD</acronym> format can be @@ -754,9 +748,11 @@ <programlisting role="php"> <![CDATA[ <?php + $gdkpixmap = gdk::pixmap_create_from_xpm($main_window-&gt;window, null, 'test.xpm'); $image = &amp;new GtkPixmap($gdkpixmap[0], $gdkpixmap[1]); + ?> ]]> </programlisting> @@ -765,10 +761,12 @@ <informalexample> <programlisting role="php"> <![CDATA[ + <?php list ($gdkpixmap, $mask) = gdk::pixmap_create_from_xpm($gdkwindow, $transparent_color, 'test.xpm'); $image = &amp;new GtkPixmap($gdkpixmap, $mask); + ?> ]]> </programlisting> @@ -797,19 +795,14 @@ Creates a <classname>GdkPixmap</classname> from inline data. </shortdesc> <desc> - <para> - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$gdkpixmap = gdk::pixmap_create_from_xpm_d($main_window-&gt;window, -$transparent_color, $data); -?> -]]> - </programlisting> - </informalexample> + <simpara> + <literal> + $gdkpixmap = + gdk::pixmap_create_from_xpm_d($main_window-&gt;window, + $transparent_color, $data); + </literal> <!-- No I am NOT going to leave it like this.. sf mar 02 --> - </para> + </simpara> </desc> </method> Index: php-gtk-doc/en/reference/gdk/gdkcolor.xml diff -u php-gtk-doc/en/reference/gdk/gdkcolor.xml:1.4 php-gtk-doc/en/reference/gdk/gdkcolor.xml:1.5 --- php-gtk-doc/en/reference/gdk/gdkcolor.xml:1.4 Tue Jun 17 17:27:57 2003 +++ php-gtk-doc/en/reference/gdk/gdkcolor.xml Wed Jun 18 13:15:55 2003 @@ -65,26 +65,10 @@ <?php /* XcmsRGB values, expressed as three integers */ $cyan = &amp;new GdkColor(0, 65535, 65535); -?> -]]> - </programlisting> - </informalexample> - or - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php + /* hex triples expressed as a single string */ $cyan = &amp;new GdkColor('#00FFFF'); -?> -]]> - </programlisting> - </informalexample> - or - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php + /* a color name expressed as a single string */ $cyan = &amp;new GdkColor('cyan'); ?> Index: php-gtk-doc/en/reference/gdk/gdkgc.xml diff -u php-gtk-doc/en/reference/gdk/gdkgc.xml:1.4 php-gtk-doc/en/reference/gdk/gdkgc.xml:1.5 --- php-gtk-doc/en/reference/gdk/gdkgc.xml:1.4 Tue Jun 17 17:27:57 2003 +++ php-gtk-doc/en/reference/gdk/gdkgc.xml Wed Jun 18 13:15:55 2003 @@ -76,20 +76,12 @@ You can use <function>gdk::colormap_get_system</function> to do this, or you can access the colormap in a <classname>GdkWindow</classname>. </simpara> - <para> + <simpara> The syntax is: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php - -$gc-&gt;foreground = $colormap-&gt;alloc('red'); - -?> -]]> - </programlisting> - </informalexample> - </para> + <literal> + $gc-&gt;foreground = $colormap-&gt;alloc('red'); + </literal> + </simpara> <simpara> As with the <classname>GdkColor</classname> constructor, you could use <literal>'#FF0000'</literal> or <literal>65535, 0, 0</literal> in place @@ -110,25 +102,17 @@ <classname>GdkColor</classname> to a <classname>GdkGC</classname>, because there is no colormap there for the color to reference. </simpara> - <para> + <simpara> You will need to take an existing <classname>GdkColormap</classname>, either by using <function>gdk::colormap_get_system</function> or by accessing the colormap property in the existing <classname>GdkWindow</classname> that most widgets have, and give it a handle. Then you do something like: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php - -$gc-&gt;background = $colormap-&gt;alloc('lime green'); - -?> -]]> - </programlisting> - </informalexample> + <literal> + $gc-&gt;background = $colormap-&gt;alloc('lime green'); + </literal> and the color is allocated intelligently. - </para> + </simpara> <simpara> The background color fills the areas not taken up by the foreground color, e.g. the gaps in a dashed line will take the background color.

« previous php.gtk.doc (#804) next »