Gtk2::Container

Section: User Contributed Perl Documentation (3)
Updated: 2008-05-05
Index Return to Main Contents
 

NAME

Gtk2::Container  

HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container

 

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface

 

METHODS

 

$container->add ($widget)

* $widget (Gtk2::Widget)
 

$container->add_with_properties ($widget, ...)

* $widget (Gtk2::Widget)
* ... (list) list of property name/value pairs
 

integer = $container->get_border_width

 

$container->set_border_width ($border_width)

* $border_width (integer)
 

$container->check_resize

 

list = $container->child_get ($child, ...)

* $child (Gtk2::Widget)
* ... (list) list of property names

Returns a list of properties of the child.

 

list = $container->child_get_property ($child, ...)

* $child (Gtk2::Widget)
* ... (list)

Alias for child_get

 

$container->child_set ($child, ...)

* $child (Gtk2::Widget)
* ... (list) list of property name/value pairs

Sets a list of properties on the child.

 

$container->child_set_property ($child, ...)

* $child (Gtk2::Widget)
* ... (list)

Alias for child_set

 

string = $container->child_type

 

list = $container->get_children

Returns a list of Gtk2::Widget's, the children of the container.
 

list = $container->get_focus_chain

Returns a list of Gtk2::Widgets, the focus chain.
 

$container->set_focus_chain (...)

* ... (list) of Gtk2::Widget's, the focus chain

Sets a focus chain, overriding the one computed automatically by GTK+.

In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it's allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn't always packed. The necessary checks are done when the focus chain is actually traversed.

 

$container->set_focus_child ($child)

* $child (Gtk2::Widget)
 

adjustment or undef = $container->get_focus_hadjustment

 

$container->set_focus_hadjustment ($adjustment)

* $adjustment (Gtk2::Adjustment or undef)
 

adjustment or undef = $container->get_focus_vadjustment

 

$container->set_focus_vadjustment ($adjustment)

* $adjustment (Gtk2::Adjustment or undef)
 

$container->forall ($callback, $callback_data=undef)

* $callback (subroutine) Code to invoke on each child widget
* $callback_data (scalar)

Invoke $callback on each child of $container, including ``internal'' children. Most applications should not use this function. Compare with Gtk2::Container::foreach.

 

$container->foreach ($callback, $callback_data=undef)

* $callback (subroutine) Code to invoke on each child widget
* $callback_data (scalar)

Invoke $callback on each child of $container, ignoring ``internal'' children.

 

$container->propagate_expose ($child, $event)

* $child (Gtk2::Widget)
* $event (Gtk2::Gdk::Event)
 

$container->set_reallocate_redraws ($needs_redraws)

* $needs_redraws (boolean)
 

$container->remove ($widget)

* $widget (Gtk2::Widget)
 

$container->resize_children

 

resizemode = $container->get_resize_mode

 

$container->set_resize_mode ($resize_mode)

* $resize_mode (Gtk2::ResizeMode)
 

$container->unset_focus_chain

 

PROPERTIES

'border-width' (Glib::UInt : readable / writable / private)
The width of the empty border outside the containers children
'child' (Gtk2::Widget : writable / private)
Can be used to add a new child to the container
'resize-mode' (Gtk2::ResizeMode : readable / writable / private)
Specify how resize events are handled
 

SIGNALS

add (Gtk2::Container, Gtk2::Widget)
remove (Gtk2::Container, Gtk2::Widget)
check-resize (Gtk2::Container)
set-focus-child (Gtk2::Container, Gtk2::Widget)
 

ENUMS AND FLAGS

 

enum Gtk2::ResizeMode

* 'parent' / 'GTK_RESIZE_PARENT'
* 'queue' / 'GTK_RESIZE_QUEUE'
* 'immediate' / 'GTK_RESIZE_IMMEDIATE'
 

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget  

COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


 

Index

NAME
HIERARCHY
INTERFACES
METHODS
$container->add ($widget)
$container->add_with_properties ($widget, ...)
integer = $container->get_border_width
$container->set_border_width ($border_width)
$container->check_resize
list = $container->child_get ($child, ...)
list = $container->child_get_property ($child, ...)
$container->child_set ($child, ...)
$container->child_set_property ($child, ...)
string = $container->child_type
list = $container->get_children
list = $container->get_focus_chain
$container->set_focus_chain (...)
$container->set_focus_child ($child)
adjustment or undef = $container->get_focus_hadjustment
$container->set_focus_hadjustment ($adjustment)
adjustment or undef = $container->get_focus_vadjustment
$container->set_focus_vadjustment ($adjustment)
$container->forall ($callback, $callback_data=undef)
$container->foreach ($callback, $callback_data=undef)
$container->propagate_expose ($child, $event)
$container->set_reallocate_redraws ($needs_redraws)
$container->remove ($widget)
$container->resize_children
resizemode = $container->get_resize_mode
$container->set_resize_mode ($resize_mode)
$container->unset_focus_chain
PROPERTIES
SIGNALS
ENUMS AND FLAGS
enum Gtk2::ResizeMode
SEE ALSO
COPYRIGHT

linux.jgfs.net manual pages