1
2@c %start of fragment
3
4@node GtkLayout
5@chapter GtkLayout
6Infinite scrollable area containing child widgets and/or custom drawing
7
8@section Overview
9@code{<gtk-layout>} is similar to @code{<gtk-drawing-area>} in that it's a
10"blank slate" and doesn't do anything but paint a blank background by default.
11It's different in that it supports scrolling natively (you can add it to a
12@code{<gtk-scrolled-window>}), and it can contain child widgets, since it's a
13@code{<gtk-container>}. However if you're just going to draw, a
14@code{<gtk-drawing-area>} is a better choice since it has lower overhead.
15
16When handling expose events on a @code{<gtk-layout>}, you must draw to
17GTK_LAYOUT (layout)->bin_window, rather than to GTK_WIDGET (layout)->window, as
18you would for a drawing area.
19
20@section Usage
21@include defuns-gtklayout.xml.texi
22
23@c %end of fragment
24