1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkLayout
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
Infinite scrollable area containing child widgets and/or custom drawing
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
#GtkLayout is similar to #GtkDrawingArea in that it's a "blank slate"
|
|
|
|
and doesn't do anything but paint a blank background by default. It's
|
|
|
|
different in that it supports scrolling natively (you can add it to a
|
|
|
|
#GtkScrolledWindow), and it can contain child widgets, since it's a
|
|
|
|
#GtkContainer. However if you're just going to draw, a #GtkDrawingArea
|
|
|
|
is a better choice since it has lower overhead.
|
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
<para>
|
|
|
|
When handling expose events on a #GtkLayout, you must draw to
|
|
|
|
GTK_LAYOUT (layout)->bin_window, rather than to
|
|
|
|
GTK_WIDGET (layout)->window, as you would for a drawing
|
|
|
|
area.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
#GtkDrawingArea, #GtkScrolledWindow
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GtkLayout ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-09-08 19:33:06 +00:00
|
|
|
@bin_window:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@hadjustment:
|
|
|
|
@vadjustment:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_put ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
2001-09-08 19:33:06 +00:00
|
|
|
@child_widget:
|
1999-08-16 18:51:52 +00:00
|
|
|
@x:
|
|
|
|
@y:
|
2001-09-08 19:33:06 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@widget:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_move ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
2001-09-08 19:33:06 +00:00
|
|
|
@child_widget:
|
1999-08-16 18:51:52 +00:00
|
|
|
@x:
|
|
|
|
@y:
|
2001-09-08 19:33:06 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@widget:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_set_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
2001-09-08 06:24:46 +00:00
|
|
|
<!-- ##### FUNCTION gtk_layout_get_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_layout_freeze ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_thaw ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_get_hadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_get_vadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_set_hadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@adjustment:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_layout_set_vadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout:
|
|
|
|
@adjustment:
|
|
|
|
|
|
|
|
|
2000-10-29 08:03:34 +00:00
|
|
|
<!-- ##### SIGNAL GtkLayout::set-scroll-adjustments ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@layout: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
|
2001-04-01 04:05:42 +00:00
|
|
|
<!-- ##### ARG GtkLayout:hadjustment ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
Horizontal scroll adjustment, see gtk_layout_set_hadjustment()
|
2001-04-01 04:05:42 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkLayout:vadjustment ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
Vertical scroll adjustment, see gtk_layout_set_vadjustment()
|
2001-04-01 04:05:42 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkLayout:width ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
Layout width, see gtk_layout_set_size()
|
2001-04-01 04:05:42 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkLayout:height ##### -->
|
|
|
|
<para>
|
2001-09-08 19:33:06 +00:00
|
|
|
Layout height, see gtk_layout_set_size()
|
2001-04-01 04:05:42 +00:00
|
|
|
</para>
|
|
|
|
|