gtk2-ng/docs/reference/gtk/tmpl/gtklayout.sgml
2017-08-03 13:15:04 +01:00

196 lines
2.8 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- ##### SECTION Title ##### -->
GtkLayout
<!-- ##### SECTION Short_Description ##### -->
Infinite scrollable area containing child widgets and/or custom drawing
<!-- ##### SECTION Long_Description ##### -->
<para>
#GtkLayout is similar to #GtkDrawingArea in that it’s a “blank slate” and
doesn’t do anything except paint a blank background by default. It’s different
in that it supports scrolling natively (you can add it to a #GtkScrolledWindow)
and can contain child widgets since it’s a #GtkContainer.
</para>
<para>
If you just want to draw, a #GtkDrawingArea is a better choice since it has
lower overhead. If you just need to position child widgets at specific points,
then #GtkFixed provides that functionality on its own.
</para>
<para>
When handling expose events on a #GtkLayout, you must draw to
GTK_LAYOUT (layout)-&gt;bin_window, rather than to
GTK_WIDGET (layout)-&gt;window, as you would for a #GtkDrawingArea.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
#GtkDrawingArea, #GtkFixed, #GtkScrolledWindow
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### SECTION Image ##### -->
<!-- ##### STRUCT GtkLayout ##### -->
<para>
</para>
<!-- ##### SIGNAL GtkLayout::set-scroll-adjustments ##### -->
<para>
</para>
@layout: the object which received the signal.
@arg1:
@arg2:
<!-- ##### ARG GtkLayout:hadjustment ##### -->
<para>
</para>
<!-- ##### ARG GtkLayout:height ##### -->
<para>
</para>
<!-- ##### ARG GtkLayout:vadjustment ##### -->
<para>
</para>
<!-- ##### ARG GtkLayout:width ##### -->
<para>
</para>
<!-- ##### ARG GtkLayout:x ##### -->
<para>
</para>
<!-- ##### ARG GtkLayout:y ##### -->
<para>
</para>
<!-- ##### FUNCTION gtk_layout_new ##### -->
<para>
</para>
@hadjustment:
@vadjustment:
@Returns:
<!-- ##### FUNCTION gtk_layout_put ##### -->
<para>
</para>
@layout:
@child_widget:
@x:
@y:
<!-- ##### FUNCTION gtk_layout_move ##### -->
<para>
</para>
@layout:
@child_widget:
@x:
@y:
<!-- ##### FUNCTION gtk_layout_set_size ##### -->
<para>
</para>
@layout:
@width:
@height:
<!-- ##### FUNCTION gtk_layout_get_size ##### -->
<para>
</para>
@layout:
@width:
@height:
<!-- ##### 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:
<!-- ##### FUNCTION gtk_layout_get_bin_window ##### -->
<para>
</para>
@layout:
@Returns: