gtk.Layoutinfinite scrollable area containing child widgets and custom
drawingSynopsisgtk.Layoutgtk.Containergtk.LayouthadjustmentNonevadjustmentNoneputchild_widgetxymovechild_widgetxyset_sizewidthheightget_sizeget_hadjustmentget_vadjustmentset_hadjustmentadjustmentset_vadjustmentadjustmentAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.Container
+-- gtk.Layout
Properties
"hadjustment"Read-WriteThe gtk.Adjustment
for the horizontal position."vadjustment"Read-WriteThe gtk.Adjustment
for the vertical position."width"Read-Writethe layout width"height"Read-Writethe layout height
Child Properties
"x"Read-Writethe X position of the child"y"Read-Writethe Y position of the child
Attributes
"bin_window"Readthe window of a layout to draw into
Signal Prototypes"set-scroll-adjustments"callbacklayouthadjustmentvadjustmentuser_param1...DescriptionThe gtk.Layout is a
simple container widget similar to the gtk.Fixed container
widget. Like the gtk.Fixed the gtk.Layout places a
child widget at a specific position within the container. The gtk.Layout offers
two features beyond the gtk.Fixed
widget:a very large width and height for the container - limited
by the size of an unsigned integer.horizontal and vertical adjustments can be specified for
use with scrollbars, etc.The gtk.Layout can also
be drawn on similar to drawing on a gtk.DrawingArea.
When handling expose events on a gtk.Layout, you must
draw to the window specified by the bin_window attribute
rather than the widget window attribute.Constructorgtk.LayouthadjustmentNonevadjustmentNonehadjustment :horizontal adjustment, or
Nonevadjustment :vertical adjustment, or
NoneReturns :a new gtk.LayoutCreates a new gtk.Layout. Usually
the hadjustment and
vadjustment arguments are not specified or are
specified as None, so that new adjustments are
created.Methodsgtk.Layout.putputchild_widgetxychild_widget :the child widgetx :the X position of child
widgety :the Y position of child
widgetThe put() method adds
child_widget to the layout and places its upper, left
corner at the position specified by x and
y.gtk.Layout.movemovechild_widgetxychild_widget :a current child of the
layoutx :the X position to move
child_widget toy :the Y position to move
child_widget toThe move() method moves a current child
of the layout (specified by child_widget) to the new
position specified by x and y.
The upper, left corner of child_widget will be placed
at (x, y).gtk.Layout.set_sizeset_sizewidthheightwidth :width of the layout areaheight :height of the layout areaThe set_size() method sets the size of
the virtual area of the layout to the values specified by
width and height. The "width"
and "height" properties are also set by this method.gtk.Layout.get_sizeget_sizeReturns :a tuple containing the width and height set on
layoutThe get_size() method returns a tuple
that contains the width and height of the virtual size that has been set on
the layout. See set_size().gtk.Layout.get_hadjustmentget_hadjustmentReturns :a horizontal adjustmentThe get_hadjustment() method returns
the value of the "hadjustment" property that contains the horizontal
adjustment object associated with the layout. This function should only be
called after the layout has been placed in a gtk.ScrolledWindow
or has otherwise been configured for scrolling. See gtk.ScrolledWindow,
gtk.Scrollbar,
gtk.Adjustment
for details.gtk.Layout.get_vadjustmentget_vadjustmentReturns :a vertical adjustmentThe get_vadjustment() method returns
the "vadjustment" property that contains the vertical adjustment object
associated with the layout. This function should only be called after the
layout has been placed in a gtk.ScrolledWindow
or has otherwise been configured for scrolling. See gtk.ScrolledWindow,
gtk.Scrollbar,
gtk.Adjustment
for details.gtk.Layout.set_hadjustmentset_hadjustmentadjustmentadjustment :a horizontal adjustmentThe set_hadjustment() method sets the
horizontal adjustment for the layout (and the "hadjustment" property) to the
value of adjustment. See gtk.ScrolledWindow,
gtk.Scrollbar,
gtk.Adjustment
for details.gtk.Layout.set_vadjustmentset_vadjustmentadjustmentadjustment :a vertical adjustmentThe set_vadjustment() method sets the
vertical adjustment for the layout (and the "vadjustment" property) to the
value of adjustment. See gtk.ScrolledWindow,
gtk.Scrollbar,
gtk.Adjustment
for details.SignalsThe "set-scroll-adjustments" gtk.Layout Signalcallbacklayouthadjustmentvadjustmentuser_param1...layout :the layout that received the
signalhadjustment :the horizontal adjustment associated with the
layout.vadjustment :the horizontal adjustment associated with the
layout.user_param1 :the first user parameter (if any) specified
with the connect()
method... :additional user parameters (if
any)The "set-scroll-adjustments" signal is emitted when one of the
adjustments associated with a layout is changed.