Package: gtk

Class gtk-layout

Superclasses

gtk-container, gtk-widget, g-initially-unowned, gtk-buildable, gtk-scrollable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

height
The "height" property of type :uint (Read / Write)
The height of the layout.
Allowed values: <= G_MAXINT
Default value: 100
width
The "width" property of type :uint (Read / Write)
The width of the layout.
Allowed values: <= G_MAXINT
Default value: 100

Details

gtk-layout is similar to gtk-drawing-area in that it is a "blank slate" and does not do anything but paint a blank background by default. It is different in that it supports scrolling natively, you can add it to a gtk-scrolled-window, and it can contain child widgets, since it is a gtk-container. However if you are just going to draw, a gtk-drawing-area is a better choice since it has lower overhead.

When handling expose events on a gtk-layout, you must draw to GTK_LAYOUT (layout)->bin_window, rather than to GTK_WIDGET (layout)->window, as you would for a drawing area.

Child Property Details

The "x" child property
"x" of type :int (Read / Write)
x position of child widget.
Default value: 0

The "y" child property
"y" of type :int (Read / Write)
y position of child widget.
Default value: 0
 

Slot Access Functions

Inherited Slot Access Functions

See also

2014-8-20