cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkenum.xml gdkfont.xml /en/reference/gtk gtkeditable.xml gtkenum.xml gtktext.xml gtkwidget.xml
| From: | Steph Fox | Date: | Mon, 04 Feb 2002 06:15:51 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gdk gdk-functions.xml gdkenum.xml gdkfont.xml /en/reference/gtk gtkeditable.xml gtkenum.xml gtktext.xml gtkwidget.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-367@lists.php.net to get a copy of this message | ||
sfox Mon Feb 4 01:15:51 2002 EDT
Modified files:
/php-gtk-doc/en/reference/gdk gdk-functions.xml gdkenum.xml
gdkfont.xml
/php-gtk-doc/en/reference/gtk gtkeditable.xml gtkenum.xml
gtktext.xml gtkwidget.xml
Log:
ts and pieces. GdkFont's complete.
Index: php-gtk-doc/en/reference/gdk/gdk-functions.xml diff -u php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.3 php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.4 --- php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.3 Fri Feb 1 07:24:39 2002 +++ php-gtk-doc/en/reference/gdk/gdk-functions.xml Mon Feb 4 01:15:49 2002 @@ -3,7 +3,7 @@ <refmeta> <refentrytitle>Misc GDK Functions</refentrytitle> <shortdesc> - Static methods in GDK. + Static functions in GDK. </shortdesc> </refmeta> @@ -37,8 +37,8 @@ </shortdesc> <desc> <simpara> - This function causes a sound to be emitted. The precise nature of the - sound is system-dependant; on win32 it's more of a 'bing'. (ding.wav) + This function causes a warning sound to be emitted. The precise + nature of the sound is system and setup dependant. </simpara> </desc> </method> @@ -76,7 +76,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the system colormap. </shortdesc> <desc> @@ -511,10 +511,92 @@ </funcprototype> </funcsynopsis> <shortdesc> - Loads a given font. + Loads the given font. </shortdesc> <desc> - + <simpara> + This method loads a font_name, which must be given in the form of an + <emphasis>X Logical Font Description</emphasis> + (<acronym>XLFD</acronym>). + </simpara> + <simpara> + The <acronym>XLFD</acronym> is a way of describing a font that is + completely system-independant. It contains 14 fields, most of which + can be represented by a wildcard * in order to allow flexibility when + a match is being sought - the exceptions are + <literal>addedstyle</literal>, which doesn't need one, and + <literal>registry</literal>, which is the only mandatory field. The + description opens with a hyphen, <literal>-</literal>, and each field + is also separated by a hyphen. + </simpara> + <simpara> + If you need more information on fonts than is given here, the full + XWindows definition is available online through the relevant + <ulink url="&url.xlfd;">XWindows documentation</ulink>. + </simpara> + <para> + <simplelist> + <member> + foundry xxx (where the font was created. 'unknown' is okay) + </member> + <member> + family xxx (e.g. Arial) + </member> + <member> + weight xxx (e.g. bold, medium) + </member> + <member> + slant x (r - roman, i = italic, o = oblique) + </member> + <member> + setwidth xxx (e.g. normal, condensed) + </member> + <member> + addedstyle xxx (e.g. serif, sans. Leave blank for none) + </member> + <member> + pixelsize N (set either this or pointsize, not both) + </member> + <member> + pointsize N (point size, e.g. 120) + </member> + <member> + resx N (x res the font was created for, in dots per inch) + </member> + <member> + resy N (y res the font was created for, in dots per inch) + </member> + <member> + space x (m = monospaced, p = proportional, c = cell) + </member> + <member> + averagewidth N (average character width in pixels. 0 if unknown) + </member> + <member> + registry xxx (e.g. utf, iso8859 or adobe) + </member> + <member> + encoding xxx (e.g. 1 or 2 (for iso8859) or fontspecific) + </member> + </simplelist> + </para> + <para> + A typical font-load would look something like this: + <informalexample> + <programlisting role="php"> +$font = +gdk::font_load('-unknown-Arial-normal-r-normal--*-120-96-96-p-0-iso8859-1'); + </programlisting> + </informalexample> + </para> + <note> + <simpara> + Font information in the <acronym>XLFD</acronym> format can be + retrieved from any system by utilising the + <classname>GtkFontSelection</classname> or + <classname>GtkFontSelectionDialog</classname> widgets. + </simpara> + </note> </desc> </method> @@ -532,7 +614,23 @@ Loads a selection of fonts described as a fontset. </shortdesc> <desc> - + <simpara> + This method is used when any of a range of fonts would be acceptable. + Usually, that would be when internationalization is an issue. It could + also be useful anywhere that some flexibility over the choice of font + is needed. + </simpara> + <simpara> + Load in exactly the same way as with + <function>gdk::font_load()</function>, separating each of the potential + fonts to be used with a comma. The system running the application will + use the first font in the set that achieves a match. + </simpara> + <simpara> + In win32 currently, the <function>fontset_load()</function> method is + used internally regardless of whether this or + <function>gdk::font_load()</function> is called. + </simpara> </desc> </method> @@ -616,7 +714,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a <classname>GdkPixmap</classname> from an xpm file. </shortdesc> <desc> @@ -626,12 +724,15 @@ <method id="gdk.method.pixmap_create_from_xpm_d"> <funcsynopsis> <funcprototype> - <funcdef>XXX <function>gdk::pixmap_create_from_xpm_d</function></funcdef> + <funcdef> + <classname>GdkPixmap</classname> + <function>gdk::pixmap_create_from_xpm_d</function> + </funcdef> <paramdef>XXX</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a <classname>GdkPixmap</classname> from inline data. </shortdesc> <desc> @@ -750,10 +851,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen height in pixels. </shortdesc> <desc> - + <simpara> + This function returns the screen height in pixels. This can be + used in size-setting methods to ensure that containers are sized + relative to the screen resolution. + </simpara> </desc> </method> @@ -765,7 +870,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen height in mm. </shortdesc> <desc> @@ -780,10 +885,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen width in pixels. </shortdesc> <desc> - + <simpara> + This function returns the screen width in pixels. This can be + used in size-setting methods to ensure that containers are sized + relative to the screen resolution. + </simpara> </desc> </method> @@ -795,7 +904,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen width in mm. </shortdesc> <desc> Index: php-gtk-doc/en/reference/gdk/gdkenum.xml diff -u php-gtk-doc/en/reference/gdk/gdkenum.xml:1.5 php-gtk-doc/en/reference/gdk/gdkenum.xml:1.6 --- php-gtk-doc/en/reference/gdk/gdkenum.xml:1.5 Thu Jan 31 15:24:07 2002 +++ php-gtk-doc/en/reference/gdk/gdkenum.xml Mon Feb 4 01:15:49 2002 @@ -11,27 +11,84 @@ </enum> +<enum id="gdk.enum.gdkdragaction"> + <enumname>GdkDragAction</enumname> + + <enumoption> + <optionname>GDK_ACTION_DEFAULT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_COPY</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_MOVE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_LINK</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_PRIVATE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_ASK</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gdk.enum.gdkeventmask"> <enumname>GdkEventMask</enumname> <enumoption> <optionname>GDK_EXPOSURE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_EXPOSE</literal> event + to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">expose-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_POINTER_MOTION_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_MOTION_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">motion-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_POINTER_MOTION_HINT_MASK</optionname> <shortdesc> - + This is a special flag allowing a less intensive version of the + <literal>GDK_POINTER_MOTION_MASK</literal> functionality. This can + be necessary to avoid a time-lag in processing caused by the sheer + volume of <literal>GDK_MOTION_NOTIFY</literal> events produced by + mouse movement. </shortdesc> </enumoption> @@ -66,49 +123,72 @@ <enumoption> <optionname>GDK_BUTTON_PRESS_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_BUTTON_PRESS</literal> + events to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">button-press-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_RELEASE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_BUTTON_RELEASE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">button-release-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_PRESS_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_KEY_PRESS</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">key-press-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_RELEASE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_KEY_RELEASE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">key-release-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_ENTER_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_ENTER_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">enter-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_LEAVE_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_LEAVE_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">leave-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_FOCUS_CHANGE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_FOCUS_CHANGE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">focus-in-event</signalname> or + <signalname class="GtkWidget">focus-out-event</signalname> signal as + appropriate. </shortdesc> </enumoption> @@ -157,7 +237,8 @@ <enumoption> <optionname>GDK_ALL_EVENTS_MASK</optionname> <shortdesc> - + Setting this flag allows any <classname>GdkEvent</classname> to be + captured by a widget's <classname>GdkWindow</classname>. </shortdesc> </enumoption> @@ -169,119 +250,134 @@ <enumoption> <optionname>GDK_NOTHING</optionname> <shortdesc> - + A null event. </shortdesc> </enumoption> <enumoption> <optionname>GDK_DELETE</optionname> <shortdesc> - + This event is triggered when the user clicks on the X button on a + decorated window. </shortdesc> </enumoption> <enumoption> <optionname>GDK_DESTROY</optionname> <shortdesc> - + This event is triggered when a widget is being destroyed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_EXPOSE</optionname> <shortdesc> - + This event is triggered whenever a widget is exposed to display. That + includes all redraws, full or partial. </shortdesc> </enumoption> <enumoption> <optionname>GDK_MOTION_NOTIFY</optionname> <shortdesc> - + This event is triggered when the mouse is moved. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when any mouse button is pressed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_2BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when there are two mouse button presses in + quick succession - a double-click. It is preceded by a second + <literal>GDK_BUTTON_PRESS</literal> and that event's corollary, a + <literal>GDK_BUTTON_RELEASE</literal>. </shortdesc> </enumoption> <enumoption> <optionname>GDK_3BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when there are three mouse button presses in + quick succession - a treble-click. It is preceded by two + <literal>GDK_BUTTON_PRESS</literal> and one + <literal>GDK_2BUTTON_PRESS</literal> event, as well as the associated + <literal>GDK_BUTTON_RELEASE</literal> events. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_RELEASE</optionname> <shortdesc> - + This event is triggered when any mouse button is released. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_PRESS</optionname> <shortdesc> - + This event is triggered when any key is pressed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_RELEASE</optionname> <shortdesc> - + This event is triggered when any key is released. </shortdesc> </enumoption> <enumoption> <optionname>GDK_ENTER_NOTIFY</optionname> <shortdesc> - + This event is triggered when the cursor enters the screen area of a widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_LEAVE_NOTIFY</optionname> <shortdesc> - + This event is triggered when the cursor leaves the screen area of a widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_FOCUS_CHANGE</optionname> <shortdesc> - + This event is triggered whenever there is a keyboard focus change, in or + out. </shortdesc> </enumoption> <enumoption> <optionname>GDK_CONFIGURE</optionname> <shortdesc> - + This event is triggered whenever a widget is drawn, that is, at its first + display and on any subsequent redraws caused by moving or resizing. </shortdesc> </enumoption> <enumoption> <optionname>GDK_MAP</optionname> <shortdesc> - + This event is triggered during the + <function class="GtkWidget">show()</function> process, while the widget + is being mapped to the screen. </shortdesc> </enumoption> <enumoption> <optionname>GDK_UNMAP</optionname> <shortdesc> - + This event is triggered during the + <function class="GtkWidget">hide()</function> process, while the widget + is being removed from display. </shortdesc> </enumoption> @@ -392,6 +488,25 @@ </enum> +<enum id="gdk.enum.gtkfonttype"> + <enumname>GdkFontType</enumname> + + <enumoption> + <optionname>GDK_FONT_FONT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_FONT_FONTSET</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gdk.enum.gdkmodifiertype"> <enumname>GdkModifierType</enumname> <!-- @@ -511,6 +626,80 @@ </shortdesc> </enumoption> </enum> + +<enum id="gdk.enum.gdkrgbdither"> + <enumname>GdkRgbDither</enumname> + + <enumoption> + <optionname>GDK_RGB_DITHER_NONE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_RGB_DITHER_NORMAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_RGB_DITHER_MAX</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + +<enum id="gdk.enum.gdkvisualtype"> + <enumname>GdkVisualType</enumname> + + <enumoption> + <optionname>GDK_VISUAL_STATIC_GRAY</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_GRAYSCALE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_STATIC_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_PSEUDO_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_TRUE_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_DIRECT_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <!-- * Local variables: Index: php-gtk-doc/en/reference/gdk/gdkfont.xml diff -u php-gtk-doc/en/reference/gdk/gdkfont.xml:1.1 php-gtk-doc/en/reference/gdk/gdkfont.xml:1.2 --- php-gtk-doc/en/reference/gdk/gdkfont.xml:1.1 Thu Jan 31 15:02:43 2002 +++ php-gtk-doc/en/reference/gdk/gdkfont.xml Mon Feb 4 01:15:49 2002 @@ -4,10 +4,31 @@ <classtitle>GdkFont</classtitle> <classparent></classparent> <shortdesc> - + Structure holding font information. </shortdesc> <desc> - + <simpara> + A <classname>GdkFont</classname> is a data structure containing + basic information about a font, in terms of its + <propname class="GdkFont">type</propname>, + <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname>. There is no constructor, + as the fonts available are provided by the system. The + <classname>GdkFont</classname> structure simply allows a new font to be + loaded and queried. + </simpara> + <simpara> + To load a font, use <function>gdk::font_load()</function>. To load a + fontset - a range of different fonts - use + <function>gdk::fontset_load()</function>. Either function will return + a single <classname>GdkFont</classname>. + </simpara> + <note> + <simpara> + Under win32 currently, all fonts are of the type + <literal>GDK_FONT_FONTSET</literal>, regardless of the loading method. + </simpara> + </note> </desc> </classmeta> @@ -21,25 +42,64 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns an array of sizing information. </shortdesc> <desc> - + <simpara> + <function class="GdkFont">extents()</function> returns an array + of five integers representing the left bearing, right bearing, width, + ascent and descent of the string using the font, or the font itself, + as appropriate. + </simpara> + <simpara> + The left and right bearing are the distance from the drawing origin + to the leftmost and rightmost extent of the drawn string respectively, + measured in pixels. + </simpara> + <simpara> + The width is the length of the current string, measured in pixels. This + measurement supplies information regarding where to begin drawing the + next string, if there is more than one. The returned integer may be + greater or smaller than the value of the right bearing. + </simpara> + <simpara> + The ascent and descent are the pixel measurements of the extents of + the font above and below the baseline. + </simpara> + <simpara> + If you're working with unix, all the above should be correct. If you're + using win32, the left bearing will always be <literal>0</literal>, the + right bearing will match the width, the ascent is actually the + line-height + 1 pixel, and the descent - even more strangely - is the + descent + 1 pixel. Use <classname>GdkFont</classname> properties if you + need the <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname> values under win32. + </simpara> </desc> </method> <method id="gdk.gdkfont.method.measure"> <funcsynopsis> <funcprototype> - <funcdef>int <function>lock</function></funcdef> + <funcdef>int <function>measure</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + The drawn width of a text-string, measured in pixels. </shortdesc> <desc> - + <simpara> + The return from this method is the equivalent of the right bearing + returned by <function class="GdkFont">extents()</function>. It is the + size in pixels of the width of the string, to the point where the final + part of the final character in the string is drawn. + </simpara> + <simpara> + If you need the logical width of the string - that is, to the point + where the next character should be inserted - use + <function class="GdkFont">width()</function> instead. + </simpara> </desc> </method> @@ -51,10 +111,30 @@ </funcprototype> </funcsynopsis> <shortdesc> - + The <function class="GdkFont">height()</function> method is a + particularly useful one. It returns the line height, measured + in pixels. </shortdesc> <desc> - + <simpara> + The return value of <function class="GdkFont">height()</function> is + arrived at by summing the values of <parameter>ascent</parameter> and + <parameter>descent</parameter> returned by + <function class="GdkFont">extents()</function>. + </simpara> + <simpara> + Under win32, this is a bogus value. Add the values returned by the + <classname>GdkFont</classname> properties + <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname> to get the correct value + for height if you are using or intending to port to Windows. + </simpara> + <simpara> + The value of the height is the line-height, given in pixels, and + represents the logical space required by a line. If you are using + this measurement to calculate the size of a text box, you will need to + add 6 pixels to the total to allow for the borders of the text widget. + </simpara> </desc> </method> @@ -66,10 +146,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + The logical width of a text string, measured in pixels. </shortdesc> <desc> - + <simpara> + <function class="GdkFont">width()</function> returns the logical width + of the text string, measured in pixels. The logical width includes the + area up to where the next character should be drawn. + </simpara> + <simpara> + This method is completely broken in Windows, and will always return + the right bearing measurement instead. + </simpara> </desc> </method> @@ -81,11 +169,18 @@ <propname>type</propname> <proptype>int</proptype> <shortdesc> - + Font or fontset type. </shortdesc> <desc> <simpara> - + The returned integer may have a value of <literal>0</literal>, + indicating that the font was loaded as a unique font, or of + <literal>1</literal>, indicating that the font was loaded as part + of a fontset. See <enumname>GdkFontType</enumname>. + </simpara> + <simpara> + Note that under win32 this property will always have a value of + <literal>1</literal>, as all fonts are loaded as fontsets. </simpara> </desc> </property> @@ -94,11 +189,17 @@ <propname>ascent</propname> <proptype>int</proptype> <shortdesc> - + Baseline to top of logical area. </shortdesc> <desc> <simpara> - + The <propname class="GdkFont">ascent</propname> is the distance + between a font's baseline and the top of the logical space taken + up by that font. + </simpara> + <simpara> + Add this to the <propname class="GdkFont">descent</propname> to + obtain the full line-height value in pixels. </simpara> </desc> </property> @@ -107,11 +208,13 @@ <propname>descent</propname> <proptype>int</proptype> <shortdesc> - + Baseline to bottom of logical area. </shortdesc> <desc> <simpara> - + The <propname class="GdkFont">descent</propname> is the distance + between a font's baseline and the bottom of the logical space taken + up by that font. </simpara> </desc> </property> Index: php-gtk-doc/en/reference/gtk/gtkeditable.xml diff -u php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.4 php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkeditable.xml Mon Feb 4 01:15:49 2002 @@ -7,7 +7,13 @@ Base class for text-editing widgets. </shortdesc> <desc> - + <simpara> + <classname>GtkEditable</classname> is an abstract base class providing + <classname>GtkEntry</classname> and <classname>GtkText</classname> with + several methods, signals and properties, and also a set of keybindings + that can be used for editing. + </simpara> + <!-- of which more later! - sf feb 02 --> </desc> </classmeta> @@ -32,15 +38,26 @@ <method id="gtk.gtkeditable.method.insert_text"> <funcsynopsis> <funcprototype> - <funcdef>XXX <function>insert_text</function></funcdef> - <paramdef>XXX</paramdef> + <funcdef>void <function>insert_text</function></funcdef> + <paramdef>string <parameter>text_string</parameter></paramdef> + <paramdef>int <parameter>position</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Inserts a string of text. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">insert_text()</function> is the simplest + way of putting text into an editable widget. + <classname>GtkText</classname> has an alternative method, + <function class="GtkText">insert()</function>, which gives greater + control over the appearance of the text, amongst other things. + </simpara> + <simpara> + The <function class="GtkEditable">insert_text()</function> method also + causes the signal of the same name to be emitted. + </simpara> </desc> </method> Index: php-gtk-doc/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/en/reference/gtk/gtkenum.xml:1.27 php-gtk-doc/en/reference/gtk/gtkenum.xml:1.28 --- php-gtk-doc/en/reference/gtk/gtkenum.xml:1.27 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtkenum.xml Mon Feb 4 01:15:50 2002 @@ -594,6 +594,25 @@ </enum> +<enum id="gtk.enum.gtkorientation"> + <enumname>GtkOrientation</enumname> + + <enumoption> + <optionname>GTK_ORIENTATION_HORIZONTAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ORIENTATION_VERTICAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gtk.enum.gtkpacktype"> <enumname>GtkPackType</enumname> @@ -610,6 +629,39 @@ <shortdesc> Specifies that the packing should be done from the bottom or right of the container widget. + </shortdesc> + </enumoption> + +</enum> + +<enum id="gtk.enum.gtkpositiontype"> + <enumname>GtkPositionType</enumname> + + <enumoption> + <optionname>GTK_POS_LEFT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_RIGHT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_TOP</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_BOTTOM</optionname> + <shortdesc> + </shortdesc> </enumoption> Index: php-gtk-doc/en/reference/gtk/gtktext.xml diff -u php-gtk-doc/en/reference/gtk/gtktext.xml:1.6 php-gtk-doc/en/reference/gtk/gtktext.xml:1.7 --- php-gtk-doc/en/reference/gtk/gtktext.xml:1.6 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtktext.xml Mon Feb 4 01:15:50 2002 @@ -155,7 +155,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_word_wrap</function></funcdef> - <paramdef>int <parameter>word_wrap</parameter></paramdef> + <paramdef>bool <parameter>word_wrap</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -184,7 +184,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_line_wrap</function></funcdef> - <paramdef>int <parameter>line_wrap</parameter></paramdef> + <paramdef>bool <parameter>line_wrap</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -386,7 +386,7 @@ <simpara> Any of the first three parameters can be passed as <literal>null</literal>, making it possible to define only one aspect - of the text's appearance. + of the text's appearance, or many. </simpara> <simpara> The first parameter <parameter>font</parameter> is a Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.11 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.11 Thu Jan 31 14:55:21 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Mon Feb 4 01:15:51 2002 @@ -187,10 +187,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Disassociates widget from current parent. </shortdesc> <desc> - + <simpara> + This method takes away the association between the calling widget + and its current <classname>GdkWindow</classname> parent, allowing + a new parent to be set for the widget. + </simpara> </desc> </method> @@ -262,7 +266,16 @@ Displays calling widget and its children. </shortdesc> <desc> - + <simpara> + This method is used to display the calling widget and its children. + The extent to which it 'sees' children is system-dependant; some + systems will not display children belonging to a child widget when + <function class="GtkWidget">show_all()</function> is called from a + top-level container. You may find that you still need to + <function class="GtkWidget">show()</function> the children individually + in order to display them, and it is good practice to do so + consistently. + </simpara> </desc> </method> @@ -277,7 +290,13 @@ Hides calling widget and its children. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">hide_all()</function> is the corollary to + <function class="GtkWidget">show_all()</function>, and the same + reservations regards the levels of children that will respond to this + call, apply. If in doubt, <function class="GtkWidget">hide()</function> + the child widgets individually. + </simpara> </desc> </method> @@ -292,7 +311,22 @@ Maps calling widget to the screen. </shortdesc> <desc> - + <simpara> + This method maps a widget to the screen area it will take. It is + mostly used internally, being one of the methods that is called as + part of the <function class="GtkWidget">show()</function> routine. + It causes the <signalname class="GtkWidget">map</signalname> signal to + be emitted by the widget, which in turn switches a flag causing the + widget to be mapped. + </simpara> + <simpara> + At the point of a widget's becoming mapped, the + <classname>GdkEvent</classname> <literal>GDK_MAP</literal> is + triggered, causing the + <signalname class="GtkWidget">map-event</signalname> signal to also + be emitted by that widget. Use this signal to trigger functions + that rely on the map event having occurred. + </simpara> </desc> </method> @@ -307,7 +341,23 @@ Unmaps calling widget from the screen. </shortdesc> <desc> - + <simpara> + This method destroys information regards the dimensions of the screen + area where the widget is displayed . It is mostly used internally, + being one of the methods that is called as part of the + <function class="GtkWidget">hide()</function> routine. It causes + the <signalname class="GtkWidget">unmap</signalname> signal to be + emitted by the widget, which in turn switches a flag causing the + widget to be unmapped. + </simpara> + <simpara> + At the point of a widget's becoming unmapped, the + <classname>GdkEvent</classname> <literal>GDK_UNMAP</literal> is + triggered, causing the + <signalname class="GtkWidget">unmap-event</signalname> signal to + also be emitted by that widget. Use this signal to trigger functions + that rely on the unmap event having occurred. + </simpara> </desc> </method> @@ -672,14 +722,10 @@ </funcprototype> </funcsynopsis> <shortdesc> - Causes widget to emit the - <signalname class="GtkWidget">event</signalname> signal. + </shortdesc> <desc> - <simpara> - <function class="GtkWidget">event()</function> makes the calling widget - emit the <signalname class="GtkWidget">event</signalname> signal. - </simpara> + </desc> </method>
Index: php-gtk-doc/en/reference/gdk/gdk-functions.xml diff -u php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.3 php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.4 --- php-gtk-doc/en/reference/gdk/gdk-functions.xml:1.3 Fri Feb 1 07:24:39 2002 +++ php-gtk-doc/en/reference/gdk/gdk-functions.xml Mon Feb 4 01:15:49 2002 @@ -3,7 +3,7 @@ <refmeta> <refentrytitle>Misc GDK Functions</refentrytitle> <shortdesc> - Static methods in GDK. + Static functions in GDK. </shortdesc> </refmeta> @@ -37,8 +37,8 @@ </shortdesc> <desc> <simpara> - This function causes a sound to be emitted. The precise nature of the - sound is system-dependant; on win32 it's more of a 'bing'. (ding.wav) + This function causes a warning sound to be emitted. The precise + nature of the sound is system and setup dependant. </simpara> </desc> </method> @@ -76,7 +76,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the system colormap. </shortdesc> <desc> @@ -511,10 +511,92 @@ </funcprototype> </funcsynopsis> <shortdesc> - Loads a given font. + Loads the given font. </shortdesc> <desc> - + <simpara> + This method loads a font_name, which must be given in the form of an + <emphasis>X Logical Font Description</emphasis> + (<acronym>XLFD</acronym>). + </simpara> + <simpara> + The <acronym>XLFD</acronym> is a way of describing a font that is + completely system-independant. It contains 14 fields, most of which + can be represented by a wildcard * in order to allow flexibility when + a match is being sought - the exceptions are + <literal>addedstyle</literal>, which doesn't need one, and + <literal>registry</literal>, which is the only mandatory field. The + description opens with a hyphen, <literal>-</literal>, and each field + is also separated by a hyphen. + </simpara> + <simpara> + If you need more information on fonts than is given here, the full + XWindows definition is available online through the relevant + <ulink url="&url.xlfd;">XWindows documentation</ulink>. + </simpara> + <para> + <simplelist> + <member> + foundry xxx (where the font was created. 'unknown' is okay) + </member> + <member> + family xxx (e.g. Arial) + </member> + <member> + weight xxx (e.g. bold, medium) + </member> + <member> + slant x (r - roman, i = italic, o = oblique) + </member> + <member> + setwidth xxx (e.g. normal, condensed) + </member> + <member> + addedstyle xxx (e.g. serif, sans. Leave blank for none) + </member> + <member> + pixelsize N (set either this or pointsize, not both) + </member> + <member> + pointsize N (point size, e.g. 120) + </member> + <member> + resx N (x res the font was created for, in dots per inch) + </member> + <member> + resy N (y res the font was created for, in dots per inch) + </member> + <member> + space x (m = monospaced, p = proportional, c = cell) + </member> + <member> + averagewidth N (average character width in pixels. 0 if unknown) + </member> + <member> + registry xxx (e.g. utf, iso8859 or adobe) + </member> + <member> + encoding xxx (e.g. 1 or 2 (for iso8859) or fontspecific) + </member> + </simplelist> + </para> + <para> + A typical font-load would look something like this: + <informalexample> + <programlisting role="php"> +$font = +gdk::font_load('-unknown-Arial-normal-r-normal--*-120-96-96-p-0-iso8859-1'); + </programlisting> + </informalexample> + </para> + <note> + <simpara> + Font information in the <acronym>XLFD</acronym> format can be + retrieved from any system by utilising the + <classname>GtkFontSelection</classname> or + <classname>GtkFontSelectionDialog</classname> widgets. + </simpara> + </note> </desc> </method> @@ -532,7 +614,23 @@ Loads a selection of fonts described as a fontset. </shortdesc> <desc> - + <simpara> + This method is used when any of a range of fonts would be acceptable. + Usually, that would be when internationalization is an issue. It could + also be useful anywhere that some flexibility over the choice of font + is needed. + </simpara> + <simpara> + Load in exactly the same way as with + <function>gdk::font_load()</function>, separating each of the potential + fonts to be used with a comma. The system running the application will + use the first font in the set that achieves a match. + </simpara> + <simpara> + In win32 currently, the <function>fontset_load()</function> method is + used internally regardless of whether this or + <function>gdk::font_load()</function> is called. + </simpara> </desc> </method> @@ -616,7 +714,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a <classname>GdkPixmap</classname> from an xpm file. </shortdesc> <desc> @@ -626,12 +724,15 @@ <method id="gdk.method.pixmap_create_from_xpm_d"> <funcsynopsis> <funcprototype> - <funcdef>XXX <function>gdk::pixmap_create_from_xpm_d</function></funcdef> + <funcdef> + <classname>GdkPixmap</classname> + <function>gdk::pixmap_create_from_xpm_d</function> + </funcdef> <paramdef>XXX</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a <classname>GdkPixmap</classname> from inline data. </shortdesc> <desc> @@ -750,10 +851,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen height in pixels. </shortdesc> <desc> - + <simpara> + This function returns the screen height in pixels. This can be + used in size-setting methods to ensure that containers are sized + relative to the screen resolution. + </simpara> </desc> </method> @@ -765,7 +870,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen height in mm. </shortdesc> <desc> @@ -780,10 +885,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen width in pixels. </shortdesc> <desc> - + <simpara> + This function returns the screen width in pixels. This can be + used in size-setting methods to ensure that containers are sized + relative to the screen resolution. + </simpara> </desc> </method> @@ -795,7 +904,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns screen width in mm. </shortdesc> <desc> Index: php-gtk-doc/en/reference/gdk/gdkenum.xml diff -u php-gtk-doc/en/reference/gdk/gdkenum.xml:1.5 php-gtk-doc/en/reference/gdk/gdkenum.xml:1.6 --- php-gtk-doc/en/reference/gdk/gdkenum.xml:1.5 Thu Jan 31 15:24:07 2002 +++ php-gtk-doc/en/reference/gdk/gdkenum.xml Mon Feb 4 01:15:49 2002 @@ -11,27 +11,84 @@ </enum> +<enum id="gdk.enum.gdkdragaction"> + <enumname>GdkDragAction</enumname> + + <enumoption> + <optionname>GDK_ACTION_DEFAULT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_COPY</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_MOVE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_LINK</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_PRIVATE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_ACTION_ASK</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gdk.enum.gdkeventmask"> <enumname>GdkEventMask</enumname> <enumoption> <optionname>GDK_EXPOSURE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_EXPOSE</literal> event + to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">expose-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_POINTER_MOTION_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_MOTION_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">motion-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_POINTER_MOTION_HINT_MASK</optionname> <shortdesc> - + This is a special flag allowing a less intensive version of the + <literal>GDK_POINTER_MOTION_MASK</literal> functionality. This can + be necessary to avoid a time-lag in processing caused by the sheer + volume of <literal>GDK_MOTION_NOTIFY</literal> events produced by + mouse movement. </shortdesc> </enumoption> @@ -66,49 +123,72 @@ <enumoption> <optionname>GDK_BUTTON_PRESS_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_BUTTON_PRESS</literal> + events to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">button-press-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_RELEASE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_BUTTON_RELEASE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">button-release-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_PRESS_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_KEY_PRESS</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">key-press-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_RELEASE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_KEY_RELEASE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">key-release-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_ENTER_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_ENTER_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">enter-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_LEAVE_NOTIFY_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_LEAVE_NOTIFY</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">leave-notify-event</signalname> signal. </shortdesc> </enumoption> <enumoption> <optionname>GDK_FOCUS_CHANGE_MASK</optionname> <shortdesc> - + Setting this flag allows the <literal>GDK_FOCUS_CHANGE</literal> + event to be captured by a widget's <classname>GdkWindow</classname>. + This enables the widget to emit the + <signalname class="GtkWidget">focus-in-event</signalname> or + <signalname class="GtkWidget">focus-out-event</signalname> signal as + appropriate. </shortdesc> </enumoption> @@ -157,7 +237,8 @@ <enumoption> <optionname>GDK_ALL_EVENTS_MASK</optionname> <shortdesc> - + Setting this flag allows any <classname>GdkEvent</classname> to be + captured by a widget's <classname>GdkWindow</classname>. </shortdesc> </enumoption> @@ -169,119 +250,134 @@ <enumoption> <optionname>GDK_NOTHING</optionname> <shortdesc> - + A null event. </shortdesc> </enumoption> <enumoption> <optionname>GDK_DELETE</optionname> <shortdesc> - + This event is triggered when the user clicks on the X button on a + decorated window. </shortdesc> </enumoption> <enumoption> <optionname>GDK_DESTROY</optionname> <shortdesc> - + This event is triggered when a widget is being destroyed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_EXPOSE</optionname> <shortdesc> - + This event is triggered whenever a widget is exposed to display. That + includes all redraws, full or partial. </shortdesc> </enumoption> <enumoption> <optionname>GDK_MOTION_NOTIFY</optionname> <shortdesc> - + This event is triggered when the mouse is moved. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when any mouse button is pressed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_2BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when there are two mouse button presses in + quick succession - a double-click. It is preceded by a second + <literal>GDK_BUTTON_PRESS</literal> and that event's corollary, a + <literal>GDK_BUTTON_RELEASE</literal>. </shortdesc> </enumoption> <enumoption> <optionname>GDK_3BUTTON_PRESS</optionname> <shortdesc> - + This event is triggered when there are three mouse button presses in + quick succession - a treble-click. It is preceded by two + <literal>GDK_BUTTON_PRESS</literal> and one + <literal>GDK_2BUTTON_PRESS</literal> event, as well as the associated + <literal>GDK_BUTTON_RELEASE</literal> events. </shortdesc> </enumoption> <enumoption> <optionname>GDK_BUTTON_RELEASE</optionname> <shortdesc> - + This event is triggered when any mouse button is released. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_PRESS</optionname> <shortdesc> - + This event is triggered when any key is pressed. </shortdesc> </enumoption> <enumoption> <optionname>GDK_KEY_RELEASE</optionname> <shortdesc> - + This event is triggered when any key is released. </shortdesc> </enumoption> <enumoption> <optionname>GDK_ENTER_NOTIFY</optionname> <shortdesc> - + This event is triggered when the cursor enters the screen area of a widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_LEAVE_NOTIFY</optionname> <shortdesc> - + This event is triggered when the cursor leaves the screen area of a widget. </shortdesc> </enumoption> <enumoption> <optionname>GDK_FOCUS_CHANGE</optionname> <shortdesc> - + This event is triggered whenever there is a keyboard focus change, in or + out. </shortdesc> </enumoption> <enumoption> <optionname>GDK_CONFIGURE</optionname> <shortdesc> - + This event is triggered whenever a widget is drawn, that is, at its first + display and on any subsequent redraws caused by moving or resizing. </shortdesc> </enumoption> <enumoption> <optionname>GDK_MAP</optionname> <shortdesc> - + This event is triggered during the + <function class="GtkWidget">show()</function> process, while the widget + is being mapped to the screen. </shortdesc> </enumoption> <enumoption> <optionname>GDK_UNMAP</optionname> <shortdesc> - + This event is triggered during the + <function class="GtkWidget">hide()</function> process, while the widget + is being removed from display. </shortdesc> </enumoption> @@ -392,6 +488,25 @@ </enum> +<enum id="gdk.enum.gtkfonttype"> + <enumname>GdkFontType</enumname> + + <enumoption> + <optionname>GDK_FONT_FONT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_FONT_FONTSET</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gdk.enum.gdkmodifiertype"> <enumname>GdkModifierType</enumname> <!-- @@ -511,6 +626,80 @@ </shortdesc> </enumoption> </enum> + +<enum id="gdk.enum.gdkrgbdither"> + <enumname>GdkRgbDither</enumname> + + <enumoption> + <optionname>GDK_RGB_DITHER_NONE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_RGB_DITHER_NORMAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_RGB_DITHER_MAX</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + +<enum id="gdk.enum.gdkvisualtype"> + <enumname>GdkVisualType</enumname> + + <enumoption> + <optionname>GDK_VISUAL_STATIC_GRAY</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_GRAYSCALE</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_STATIC_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_PSEUDO_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_TRUE_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GDK_VISUAL_DIRECT_COLOR</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <!-- * Local variables: Index: php-gtk-doc/en/reference/gdk/gdkfont.xml diff -u php-gtk-doc/en/reference/gdk/gdkfont.xml:1.1 php-gtk-doc/en/reference/gdk/gdkfont.xml:1.2 --- php-gtk-doc/en/reference/gdk/gdkfont.xml:1.1 Thu Jan 31 15:02:43 2002 +++ php-gtk-doc/en/reference/gdk/gdkfont.xml Mon Feb 4 01:15:49 2002 @@ -4,10 +4,31 @@ <classtitle>GdkFont</classtitle> <classparent></classparent> <shortdesc> - + Structure holding font information. </shortdesc> <desc> - + <simpara> + A <classname>GdkFont</classname> is a data structure containing + basic information about a font, in terms of its + <propname class="GdkFont">type</propname>, + <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname>. There is no constructor, + as the fonts available are provided by the system. The + <classname>GdkFont</classname> structure simply allows a new font to be + loaded and queried. + </simpara> + <simpara> + To load a font, use <function>gdk::font_load()</function>. To load a + fontset - a range of different fonts - use + <function>gdk::fontset_load()</function>. Either function will return + a single <classname>GdkFont</classname>. + </simpara> + <note> + <simpara> + Under win32 currently, all fonts are of the type + <literal>GDK_FONT_FONTSET</literal>, regardless of the loading method. + </simpara> + </note> </desc> </classmeta> @@ -21,25 +42,64 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns an array of sizing information. </shortdesc> <desc> - + <simpara> + <function class="GdkFont">extents()</function> returns an array + of five integers representing the left bearing, right bearing, width, + ascent and descent of the string using the font, or the font itself, + as appropriate. + </simpara> + <simpara> + The left and right bearing are the distance from the drawing origin + to the leftmost and rightmost extent of the drawn string respectively, + measured in pixels. + </simpara> + <simpara> + The width is the length of the current string, measured in pixels. This + measurement supplies information regarding where to begin drawing the + next string, if there is more than one. The returned integer may be + greater or smaller than the value of the right bearing. + </simpara> + <simpara> + The ascent and descent are the pixel measurements of the extents of + the font above and below the baseline. + </simpara> + <simpara> + If you're working with unix, all the above should be correct. If you're + using win32, the left bearing will always be <literal>0</literal>, the + right bearing will match the width, the ascent is actually the + line-height + 1 pixel, and the descent - even more strangely - is the + descent + 1 pixel. Use <classname>GdkFont</classname> properties if you + need the <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname> values under win32. + </simpara> </desc> </method> <method id="gdk.gdkfont.method.measure"> <funcsynopsis> <funcprototype> - <funcdef>int <function>lock</function></funcdef> + <funcdef>int <function>measure</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + The drawn width of a text-string, measured in pixels. </shortdesc> <desc> - + <simpara> + The return from this method is the equivalent of the right bearing + returned by <function class="GdkFont">extents()</function>. It is the + size in pixels of the width of the string, to the point where the final + part of the final character in the string is drawn. + </simpara> + <simpara> + If you need the logical width of the string - that is, to the point + where the next character should be inserted - use + <function class="GdkFont">width()</function> instead. + </simpara> </desc> </method> @@ -51,10 +111,30 @@ </funcprototype> </funcsynopsis> <shortdesc> - + The <function class="GdkFont">height()</function> method is a + particularly useful one. It returns the line height, measured + in pixels. </shortdesc> <desc> - + <simpara> + The return value of <function class="GdkFont">height()</function> is + arrived at by summing the values of <parameter>ascent</parameter> and + <parameter>descent</parameter> returned by + <function class="GdkFont">extents()</function>. + </simpara> + <simpara> + Under win32, this is a bogus value. Add the values returned by the + <classname>GdkFont</classname> properties + <propname class="GdkFont">ascent</propname> and + <propname class="GdkFont">descent</propname> to get the correct value + for height if you are using or intending to port to Windows. + </simpara> + <simpara> + The value of the height is the line-height, given in pixels, and + represents the logical space required by a line. If you are using + this measurement to calculate the size of a text box, you will need to + add 6 pixels to the total to allow for the borders of the text widget. + </simpara> </desc> </method> @@ -66,10 +146,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + The logical width of a text string, measured in pixels. </shortdesc> <desc> - + <simpara> + <function class="GdkFont">width()</function> returns the logical width + of the text string, measured in pixels. The logical width includes the + area up to where the next character should be drawn. + </simpara> + <simpara> + This method is completely broken in Windows, and will always return + the right bearing measurement instead. + </simpara> </desc> </method> @@ -81,11 +169,18 @@ <propname>type</propname> <proptype>int</proptype> <shortdesc> - + Font or fontset type. </shortdesc> <desc> <simpara> - + The returned integer may have a value of <literal>0</literal>, + indicating that the font was loaded as a unique font, or of + <literal>1</literal>, indicating that the font was loaded as part + of a fontset. See <enumname>GdkFontType</enumname>. + </simpara> + <simpara> + Note that under win32 this property will always have a value of + <literal>1</literal>, as all fonts are loaded as fontsets. </simpara> </desc> </property> @@ -94,11 +189,17 @@ <propname>ascent</propname> <proptype>int</proptype> <shortdesc> - + Baseline to top of logical area. </shortdesc> <desc> <simpara> - + The <propname class="GdkFont">ascent</propname> is the distance + between a font's baseline and the top of the logical space taken + up by that font. + </simpara> + <simpara> + Add this to the <propname class="GdkFont">descent</propname> to + obtain the full line-height value in pixels. </simpara> </desc> </property> @@ -107,11 +208,13 @@ <propname>descent</propname> <proptype>int</proptype> <shortdesc> - + Baseline to bottom of logical area. </shortdesc> <desc> <simpara> - + The <propname class="GdkFont">descent</propname> is the distance + between a font's baseline and the bottom of the logical space taken + up by that font. </simpara> </desc> </property> Index: php-gtk-doc/en/reference/gtk/gtkeditable.xml diff -u php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.4 php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkeditable.xml Mon Feb 4 01:15:49 2002 @@ -7,7 +7,13 @@ Base class for text-editing widgets. </shortdesc> <desc> - + <simpara> + <classname>GtkEditable</classname> is an abstract base class providing + <classname>GtkEntry</classname> and <classname>GtkText</classname> with + several methods, signals and properties, and also a set of keybindings + that can be used for editing. + </simpara> + <!-- of which more later! - sf feb 02 --> </desc> </classmeta> @@ -32,15 +38,26 @@ <method id="gtk.gtkeditable.method.insert_text"> <funcsynopsis> <funcprototype> - <funcdef>XXX <function>insert_text</function></funcdef> - <paramdef>XXX</paramdef> + <funcdef>void <function>insert_text</function></funcdef> + <paramdef>string <parameter>text_string</parameter></paramdef> + <paramdef>int <parameter>position</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Inserts a string of text. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">insert_text()</function> is the simplest + way of putting text into an editable widget. + <classname>GtkText</classname> has an alternative method, + <function class="GtkText">insert()</function>, which gives greater + control over the appearance of the text, amongst other things. + </simpara> + <simpara> + The <function class="GtkEditable">insert_text()</function> method also + causes the signal of the same name to be emitted. + </simpara> </desc> </method> Index: php-gtk-doc/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/en/reference/gtk/gtkenum.xml:1.27 php-gtk-doc/en/reference/gtk/gtkenum.xml:1.28 --- php-gtk-doc/en/reference/gtk/gtkenum.xml:1.27 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtkenum.xml Mon Feb 4 01:15:50 2002 @@ -594,6 +594,25 @@ </enum> +<enum id="gtk.enum.gtkorientation"> + <enumname>GtkOrientation</enumname> + + <enumoption> + <optionname>GTK_ORIENTATION_HORIZONTAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ORIENTATION_VERTICAL</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + +</enum> + <enum id="gtk.enum.gtkpacktype"> <enumname>GtkPackType</enumname> @@ -610,6 +629,39 @@ <shortdesc> Specifies that the packing should be done from the bottom or right of the container widget. + </shortdesc> + </enumoption> + +</enum> + +<enum id="gtk.enum.gtkpositiontype"> + <enumname>GtkPositionType</enumname> + + <enumoption> + <optionname>GTK_POS_LEFT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_RIGHT</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_TOP</optionname> + <shortdesc> + + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_POS_BOTTOM</optionname> + <shortdesc> + </shortdesc> </enumoption> Index: php-gtk-doc/en/reference/gtk/gtktext.xml diff -u php-gtk-doc/en/reference/gtk/gtktext.xml:1.6 php-gtk-doc/en/reference/gtk/gtktext.xml:1.7 --- php-gtk-doc/en/reference/gtk/gtktext.xml:1.6 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtktext.xml Mon Feb 4 01:15:50 2002 @@ -155,7 +155,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_word_wrap</function></funcdef> - <paramdef>int <parameter>word_wrap</parameter></paramdef> + <paramdef>bool <parameter>word_wrap</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -184,7 +184,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_line_wrap</function></funcdef> - <paramdef>int <parameter>line_wrap</parameter></paramdef> + <paramdef>bool <parameter>line_wrap</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -386,7 +386,7 @@ <simpara> Any of the first three parameters can be passed as <literal>null</literal>, making it possible to define only one aspect - of the text's appearance. + of the text's appearance, or many. </simpara> <simpara> The first parameter <parameter>font</parameter> is a Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.11 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.12 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.11 Thu Jan 31 14:55:21 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Mon Feb 4 01:15:51 2002 @@ -187,10 +187,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Disassociates widget from current parent. </shortdesc> <desc> - + <simpara> + This method takes away the association between the calling widget + and its current <classname>GdkWindow</classname> parent, allowing + a new parent to be set for the widget. + </simpara> </desc> </method> @@ -262,7 +266,16 @@ Displays calling widget and its children. </shortdesc> <desc> - + <simpara> + This method is used to display the calling widget and its children. + The extent to which it 'sees' children is system-dependant; some + systems will not display children belonging to a child widget when + <function class="GtkWidget">show_all()</function> is called from a + top-level container. You may find that you still need to + <function class="GtkWidget">show()</function> the children individually + in order to display them, and it is good practice to do so + consistently. + </simpara> </desc> </method> @@ -277,7 +290,13 @@ Hides calling widget and its children. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">hide_all()</function> is the corollary to + <function class="GtkWidget">show_all()</function>, and the same + reservations regards the levels of children that will respond to this + call, apply. If in doubt, <function class="GtkWidget">hide()</function> + the child widgets individually. + </simpara> </desc> </method> @@ -292,7 +311,22 @@ Maps calling widget to the screen. </shortdesc> <desc> - + <simpara> + This method maps a widget to the screen area it will take. It is + mostly used internally, being one of the methods that is called as + part of the <function class="GtkWidget">show()</function> routine. + It causes the <signalname class="GtkWidget">map</signalname> signal to + be emitted by the widget, which in turn switches a flag causing the + widget to be mapped. + </simpara> + <simpara> + At the point of a widget's becoming mapped, the + <classname>GdkEvent</classname> <literal>GDK_MAP</literal> is + triggered, causing the + <signalname class="GtkWidget">map-event</signalname> signal to also + be emitted by that widget. Use this signal to trigger functions + that rely on the map event having occurred. + </simpara> </desc> </method> @@ -307,7 +341,23 @@ Unmaps calling widget from the screen. </shortdesc> <desc> - + <simpara> + This method destroys information regards the dimensions of the screen + area where the widget is displayed . It is mostly used internally, + being one of the methods that is called as part of the + <function class="GtkWidget">hide()</function> routine. It causes + the <signalname class="GtkWidget">unmap</signalname> signal to be + emitted by the widget, which in turn switches a flag causing the + widget to be unmapped. + </simpara> + <simpara> + At the point of a widget's becoming unmapped, the + <classname>GdkEvent</classname> <literal>GDK_UNMAP</literal> is + triggered, causing the + <signalname class="GtkWidget">unmap-event</signalname> signal to + also be emitted by that widget. Use this signal to trigger functions + that rely on the unmap event having occurred. + </simpara> </desc> </method> @@ -672,14 +722,10 @@ </funcprototype> </funcsynopsis> <shortdesc> - Causes widget to emit the - <signalname class="GtkWidget">event</signalname> signal. + </shortdesc> <desc> - <simpara> - <function class="GtkWidget">event()</function> makes the calling widget - emit the <signalname class="GtkWidget">event</signalname> signal. - </simpara> + </desc> </method>