forked from AuroraMiddleware/gtk
Move documentation to inline comments: GtkHBox
This commit is contained in:
parent
a6ed128abf
commit
3cc9575323
1
docs/reference/gtk/tmpl/.gitignore
vendored
1
docs/reference/gtk/tmpl/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
|
gtkhbox.sgml
|
||||||
gtkmessagedialog.sgml
|
gtkmessagedialog.sgml
|
||||||
gtktesting.sgml
|
gtktesting.sgml
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
<!-- ##### SECTION Title ##### -->
|
|
||||||
GtkHBox
|
|
||||||
|
|
||||||
<!-- ##### SECTION Short_Description ##### -->
|
|
||||||
A horizontal container box
|
|
||||||
|
|
||||||
<!-- ##### SECTION Long_Description ##### -->
|
|
||||||
<para>
|
|
||||||
GtkHBox is a container that organizes child widgets into a single row.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Use the #GtkBox packing interface to determine the arrangement,
|
|
||||||
spacing, width, and alignment of GtkHBox children.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
All children are allocated the same height.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
|
||||||
<para>
|
|
||||||
<variablelist>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>#GtkVBox</term>
|
|
||||||
<listitem><para>a sister class that organizes widgets into a column.</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
</variablelist>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<!-- ##### SECTION Stability_Level ##### -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### STRUCT GtkHBox ##### -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_hbox_new ##### -->
|
|
||||||
<para>
|
|
||||||
Creates a new GtkHBox.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@homogeneous: %TRUE if all children are to be given equal space allotments.
|
|
||||||
@spacing: the number of pixels to place by default between children.
|
|
||||||
@Returns: a new GtkHBox.
|
|
||||||
|
|
||||||
|
|
@ -30,6 +30,22 @@
|
|||||||
#include "gtkorientable.h"
|
#include "gtkorientable.h"
|
||||||
#include "gtkalias.h"
|
#include "gtkalias.h"
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SECTION:gtkhbox
|
||||||
|
* @Short_description: A horizontal container box
|
||||||
|
* @Title: GtkHBox
|
||||||
|
* @See_also: #GtkVBox
|
||||||
|
*
|
||||||
|
* #GtkHBox is a container that organizes child widgets into a single row.
|
||||||
|
*
|
||||||
|
* Use the #GtkBox packing interface to determine the arrangement,
|
||||||
|
* spacing, width, and alignment of #GtkHBox children.
|
||||||
|
*
|
||||||
|
* All children are allocated the same height.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GtkHBox, gtk_hbox, GTK_TYPE_BOX)
|
G_DEFINE_TYPE (GtkHBox, gtk_hbox, GTK_TYPE_BOX)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -46,6 +62,15 @@ gtk_hbox_init (GtkHBox *hbox)
|
|||||||
_gtk_box_set_old_defaults (GTK_BOX (hbox));
|
_gtk_box_set_old_defaults (GTK_BOX (hbox));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_hbox_new:
|
||||||
|
* @homogeneous: %TRUE if all children are to be given equal space allotments.
|
||||||
|
* @spacing: the number of pixels to place by default between children.
|
||||||
|
*
|
||||||
|
* Creates a new #GtkHBox.
|
||||||
|
*
|
||||||
|
* Returns: a new #GtkHBox.
|
||||||
|
*/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_hbox_new (gboolean homogeneous,
|
gtk_hbox_new (gboolean homogeneous,
|
||||||
gint spacing)
|
gint spacing)
|
||||||
|
Loading…
Reference in New Issue
Block a user