cvs: php-gtk-doc /examples/reference/gtk/gtkhandlebox constructor.phpw /manual/en/reference/gtk gtkbox.xml gtkhandlebox.xml gtkhbox.xml
[email protected] ("Christian Weiske")
| Newsgroups | php.gtk.doc |
|---|---|
| Message-ID | <cvscweiske1159607681@cvsserver> |
cweiske Sat Sep 30 09:14:41 2006 UTC
Added files:
/php-gtk-doc/examples/reference/gtk/gtkhandlebox constructor.phpw
Modified files:
/php-gtk-doc/manual/en/reference/gtk gtkbox.xml gtkhandlebox.xml
gtkhbox.xml
Log:
GthHandleBox docs
cweiske-20060930091441.txt
(text/plain, 16.3 KB)
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkbox.xml?r1=1.14&r2=1.15&diff_format=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkbox.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkbox.xml:1.14 php-gtk-doc/manual/en/reference/gtk/gtkbox.xml:1.15
--- php-gtk-doc/manual/en/reference/gtk/gtkbox.xml:1.14 Fri Aug 11 07:31:15 2006
+++ php-gtk-doc/manual/en/reference/gtk/gtkbox.xml Sat Sep 30 09:14:41 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<classentry id="gtk.gtkbox">
<classmeta>
<classtitle>GtkBox</classtitle>
@@ -26,7 +26,6 @@
</classmeta>
<methods>
-
<method id="gtk.gtkbox.method.get_homogeneous">
<funcsynopsis>
<funcprototype>
@@ -67,7 +66,6 @@
&seealso;
<function class="GtkBox">set_spacing</function>
</para>
-
</desc>
</method>
@@ -121,7 +119,6 @@
</programlisting>
</example>
-
<simpara>
&seealso;
<function class="GtkBox">pack_start</function>
@@ -191,7 +188,6 @@
</xi:include>
</programlisting>
</example>
-
</desc>
</method>
@@ -241,7 +237,6 @@
<function class="GtkBox">pack_start</function>
<function class="GtkBox">pack_end</function>
</para>
-
</desc>
</method>
@@ -294,7 +289,7 @@
</desc>
</method>
- <method id="gtk.gtkbox.method.pack_end_defaults">
+ <method id="gtk.gtkbox.method.pack_end_defaults">
<funcsynopsis>
<funcprototype>
<funcdef> <function>pack_end_defaults</function></funcdef>
@@ -302,14 +297,15 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
- DEPRECATED: use <function class="GtkBox">pack_end</function> instead
+ &deprecated;: use <function class="GtkBox">pack_end</function> instead
</shortdesc>
- <desc>
+ <desc>
<para>
- &deprecated.method;
+ &deprecated.method;
</para>
</desc>
</method>
+
<method id="gtk.gtkbox.method.pack_start_defaults">
<funcsynopsis>
<funcprototype>
@@ -318,11 +314,11 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
- DEPRECATED: use <function class="GtkBox">pack_start</function> instead
+ &deprecated;: use <function class="GtkBox">pack_start</function> instead
</shortdesc>
<desc>
<para>
- &deprecated.method;
+ &deprecated.method;
</para>
</desc>
</method>
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml?r1=1.7&r2=1.8&diff_format=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml:1.7 php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml:1.8
--- php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml:1.7 Fri Aug 11 07:31:16 2006
+++ php-gtk-doc/manual/en/reference/gtk/gtkhandlebox.xml Sat Sep 30 09:14:41 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<classentry id="gtk.gtkhandlebox">
<classmeta>
<classtitle>GtkHandleBox</classtitle>
@@ -8,12 +8,35 @@
A container for creating detachable window elements.
</shortdesc>
<desc>
-
+ <para>
+ The GtkHandleBox widget allows a portion of a window to be "torn off".
+ It is a bin widget which displays its child and a handle that the user
+ can drag to tear off a separate window (the float window) containing
+ the child widget.
+ A thin ghost is drawn in the original location of the handlebox.
+ By dragging the separate window back to its original location,
+ it can be reattached.
+ </para>
+ <para>
+ When reattaching, the ghost and float window, must be aligned
+ along one of the edges, the <emphasis>snap edge</emphasis>.
+ This either can be specified by the application programmer explicitely,
+ or GTK+ will pick a reasonable default based on the handle position.
+ </para>
+ <para>
+ To make detaching and reattaching the handlebox as minimally confusing
+ as possible to the user, it is important to set the snap edge so that
+ the snap edge does not move when the handlebox is deattached.
+ For instance, if the handlebox is packed at the bottom of a VBox,
+ then when the handlebox is detached, the bottom edge of the handlebox's
+ allocation will remain fixed as the height of the handlebox shrinks,
+ so the snap edge should be set to
+ <optionname enum="GtkPositionType">Gtk::POS_BOTTOM</optionname>.
+ </para>
</desc>
</classmeta>
<constructors>
-
<constructor id="gtk.gtkhandlebox.constructor">
<funcsynopsis>
<funcprototype>
@@ -22,71 +45,86 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Creates a new handle box.
</shortdesc>
<desc>
-
+ <para>
+ Creates a new handle box.
+ </para>
+ <example>
+ <title>Adding a handle box to a window</title>
+ <programlisting role="php">
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+ href="&directory.examples;/reference/gtk/gtkhandlebox/constructor.phpw" parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
+ </programlisting>
+ </example>
</desc>
</constructor>
-
</constructors>
<methods>
-
<method id="gtk.gtkhandlebox.method.get_handle_position">
<funcsynopsis>
<funcprototype>
- <funcdef>GtkPositionType <function>get_handle_position</function></funcdef>
+ <funcdef><enumname>GtkPositionType</enumname> <function>get_handle_position</function></funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Gets the handle position of the handle box.
</shortdesc>
<desc>
<para>
+ Gets the handle position of the handle box.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">set_handle_position</function>
</para>
-
</desc>
</method>
<method id="gtk.gtkhandlebox.method.get_shadow_type">
<funcsynopsis>
<funcprototype>
- <funcdef>GtkShadowType <function>get_shadow_type</function></funcdef>
+ <funcdef><enumname>GtkShadowType</enumname> <function>get_shadow_type</function></funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Gets the type of shadow drawn around the handle box.
</shortdesc>
<desc>
<para>
+ Gets the type of shadow drawn around the handle box.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">set_shadow_type</function>
</para>
-
</desc>
</method>
<method id="gtk.gtkhandlebox.method.get_snap_edge">
<funcsynopsis>
<funcprototype>
- <funcdef>GtkPositionType <function>get_snap_edge</function></funcdef>
+ <funcdef><enumname>GtkPositionType</enumname> <function>get_snap_edge</function></funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Gets the edge used for determining reattachment of the handle box.
</shortdesc>
<desc>
<para>
+ Gets the edge used for determining reattachment of the handle box.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">set_snap_edge</function>
</para>
-
</desc>
</method>
@@ -94,18 +132,20 @@
<funcsynopsis>
<funcprototype>
<funcdef>void <function>set_handle_position</function></funcdef>
- <paramdef>GtkPositionType <parameter>position</parameter></paramdef>
+ <paramdef><enumname>GtkPositionType</enumname> <parameter>position</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Sets the side of the handlebox where the handle is drawn.
</shortdesc>
<desc>
<para>
+ Sets the side of the handlebox where the handle is drawn.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">get_handle_position</function>
</para>
-
</desc>
</method>
@@ -113,18 +153,20 @@
<funcsynopsis>
<funcprototype>
<funcdef>void <function>set_shadow_type</function></funcdef>
- <paramdef>GtkShadowType <parameter>type</parameter></paramdef>
+ <paramdef><enumname>GtkShadowType</enumname> <parameter>type</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Sets the type of shadow to be drawn around the border of the handle box.
</shortdesc>
<desc>
<para>
+ Sets the type of shadow to be drawn around the border of the handle box.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">get_shadow_type</function>
</para>
-
</desc>
</method>
@@ -132,57 +174,155 @@
<funcsynopsis>
<funcprototype>
<funcdef>void <function>set_snap_edge</function></funcdef>
- <paramdef>GtkPositionType <parameter>edge</parameter></paramdef>
+ <paramdef><enumname>GtkPositionType</enumname> <parameter>edge</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Sets the snap edge of a handlebox.
</shortdesc>
<desc>
<para>
+ Sets the snap edge of a handlebox.
+ The snap edge is the edge of the detached child that must be aligned
+ with the corresponding edge of the "ghost" left behind when the child
+ was detached to reattach the torn-off window.
+ Usually, the snap edge should be chosen so that it stays in the same
+ place on the screen when the handlebox is torn off.
+ </para>
+ <para>
+ If the snap edge is not set, then an appropriate value will be guessed
+ from the handle position.
+ If the handle position is
+ <optionname enum="GtkPositionType">Gtk::POS_RIGHT</optionname> or
+ <optionname enum="GtkPositionType">Gtk::POS_LEFT</optionname>, then the
+ snap edge will be
+ <optionname enum="GtkPositionType">Gtk::POS_TOP</optionname>, otherwise
+ it will be <optionname enum="">Gtk::POS_LEFT</optionname>.
+ </para>
+ <para>
+ To unset the value (and let Gtk guess the position), set it to
+ <literal>-1</literal>.
+ </para>
+ <para>
&seealso;
<function class="GtkHandleBox">get_snap_edge</function>
</para>
-
</desc>
</method>
-
</methods>
- <signals>
+ <properties>
+ <prop id="gtk.gtkhandlebox.property.handle-position" type="rw">
+ <propname>handle-position</propname>
+ <proptype><enumname>GtkPositionType</enumname></proptype>
+ <shortdesc>
+ Position of the handle relative to the child widget.
+ </shortdesc>
+ <desc>
+ <para>
+ Position of the handle relative to the child widget.
+ </para>
+ <para>
+ Default: <optionname enum="GtkPositionType">Gtk::POS_LEFT</optionname>
+ </para>
+ </desc>
+ </prop>
+
+ <prop id="gtk.gtkhandlebox.property.shadow-type" type="rw">
+ <propname>shadow-type</propname>
+ <proptype><enumname>GtkShadowType</enumname></proptype>
+ <shortdesc>
+ Appearance of the shadow that surrounds the container.
+ </shortdesc>
+ <desc>
+ <para>
+ Appearance of the shadow that surrounds the container.
+ </para>
+ <para>
+ Default: <optionname enum="GtkShadowType">Gtk::SHADOW_ETCHED_OUT</optionname>
+ </para>
+ </desc>
+ </prop>
+
+ <prop id="gtk.gtkhandlebox.property.snap-edge" type="rw">
+ <propname>snap-edge</propname>
+ <proptype><enumname>GtkPositionType</enumname></proptype>
+ <shortdesc>
+ Side of the handlebox that's lined up with the docking point to dock the handlebox.
+ </shortdesc>
+ <desc>
+ <para>
+ Side of the handlebox that's lined up with the docking point
+ to dock the handlebox.
+ </para>
+ <para>
+ Default: <optionname enum="GtkPositionType">Gtk::POS_LEFT</optionname>
+ </para>
+ </desc>
+ </prop>
+
+ <prop id="gtk.gtkhandlebox.property.snap-edge-set" type="rw">
+ <propname>snap-edge-set</propname>
+ <proptype>boolean</proptype>
+ <shortdesc>
+ Whether to use the value from the <literal>snap_edge</literal> property.
+ </shortdesc>
+ <desc>
+ <para>
+ Whether to use the value from the
+ <propname class="GtkHandleBox">snap_edge</propname> property or a
+ value derived from
+ <propname class="GtkHandleBox">handle_position</propname>.
+ </para>
+ <para>
+ Default: <literal>false</literal>
+ </para>
+ </desc>
+ </prop>
+ </properties>
+
+
+ <signals>
<signal id="gtk.gtkhandlebox.signal.child-attached">
<signalname>child-attached</signalname>
<funcsynopsis>
<funcprototype>
<funcdef>void <cbfunction>callback</cbfunction></funcdef>
- <paramdef>GtkHandleBox <parameter>handlebox</parameter></paramdef>
- <paramdef>GtkWidget <parameter>UNKNOWN</parameter></paramdef>
+ <paramdef><classname>GtkHandleBox</classname> <parameter>handlebox</parameter></paramdef>
+ <paramdef><classname>GtkWidget</classname> <parameter>child_widget</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
+ The contents of the box are reattached to the main window.
</shortdesc>
<desc>
-
+ <para>
+ This signal is emitted when the contents of the handlebox are reattached
+ to the main window.
+ </para>
</desc>
</signal>
-
+
<signal id="gtk.gtkhandlebox.signal.child-detached">
<signalname>child-detached</signalname>
<funcsynopsis>
<funcprototype>
<funcdef>void <cbfunction>callback</cbfunction></funcdef>
- <paramdef>GtkHandleBox <parameter>handlebox</parameter></paramdef>
- <paramdef>GtkWidget <parameter>UNKNOWN</parameter></paramdef>
+ <paramdef><classname>GtkHandleBox</classname> <parameter>handlebox</parameter></paramdef>
+ <paramdef><classname>GtkWidget</classname> <parameter>child_widget</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
+ The widget is detached from the main window.
</shortdesc>
<desc>
-
+ <para>
+ This signal is emitted when the contents of the handlebox are detached
+ from the main window.
+ </para>
</desc>
</signal>
-
</signals>
-</classentry>
+</classentry>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml?r1=1.8&r2=1.9&diff_format=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml:1.8 php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml:1.9
--- php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml:1.8 Wed Aug 23 16:04:24 2006
+++ php-gtk-doc/manual/en/reference/gtk/gtkhbox.xml Sat Sep 30 09:14:41 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<classentry id="gtk.gtkhbox">
<classmeta>
<classtitle>GtkHBox</classtitle>
@@ -10,20 +10,20 @@
<desc>
<para>
The <classname>GtkHBox</classname> container is designed to organize child
- widgets along a single row, allocating the same height to all children.
+ widgets along a single row, allocating the same height to all children.
This overrides any child requisition size, and child widgets that take up
less than the allocated space are horizontally centered by default within
that space.
</para>
<para>
Adding child widgets to a <classname>GtkHBox</classname> is done by packing
- methods that are either inherited from the <classname>GtkBox</classname>
- class, such as <function class="GtkBox">pack_start</function>, or by the
+ methods that are either inherited from the <classname>GtkBox</classname>
+ class, such as <function class="GtkBox">pack_start</function>, or by the
less flexible <function class="GtkContainer">add</function>, common to all
container widgets.
</para>
- <para>GtkHBox and GtkVBox, in combination, are the most commonly used
- packing widgets.For sample code on how to use both, check the
+ <para>GtkHBox and GtkVBox, in combination, are the most commonly used
+ packing widgets.For sample code on how to use both, check the
<classname>GtkVBox</classname> constructor entry.</para>
<para>
&seealso;
http://cvs.php.net/viewvc.cgi/php-gtk-doc/examples/reference/gtk/gtkhandlebox/constructor.phpw?view=markup&rev=1.1
Index: php-gtk-doc/examples/reference/gtk/gtkhandlebox/constructor.phpw
+++ php-gtk-doc/examples/reference/gtk/gtkhandlebox/constructor.phpw
<?php
$vbox = new GtkVBox();
$handlebox = new GtkHandleBox();
$handlebox->add(new GtkLabel('I can be detached'));
$vbox->pack_start($handlebox, false);
$vbox->pack_start(new GtkTextView());
$wnd = new GtkWindow();
$wnd->connect_simple('destroy', array('gtk', 'main_quit'));
$wnd->add($vbox);
$wnd->show_all();
Gtk::main();
?>