Gtk2::Alignment

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

NAME

Gtk2::Alignment  

HIERARCHY

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

 

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface

 

METHODS

 

widget = Gtk2::Alignment->new ($xalign, $yalign, $xscale, $yscale)

* $xalign (double)
* $yalign (double)
* $xscale (double)
* $yscale (double)
 

$alignment->set ($xalign, $yalign, $xscale, $yscale)

* $xalign (double)
* $yalign (double)
* $xscale (double)
* $yscale (double)
 

(padding_top, padding_bottom, padding_left, padding_right) = $alignment->get_padding

Since: gtk+ 2.4
 

$alignment->set_padding ($padding_top, $padding_bottom, $padding_left, $padding_right)

* $padding_top (integer)
* $padding_bottom (integer)
* $padding_left (integer)
* $padding_right (integer)

Since: gtk+ 2.4

 

PROPERTIES

'bottom-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the bottom of the widget.
'left-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the left of the widget.
'right-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the right of the widget.
'top-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the top of the widget.
'xalign' (Glib::Float : readable / writable / private)
Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned
'xscale' (Glib::Float : readable / writable / private)
If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all
'yalign' (Glib::Float : readable / writable / private)
Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned
'yscale' (Glib::Float : readable / writable / private)
If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all
 

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin  

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
widget = Gtk2::Alignment->new ($xalign, $yalign, $xscale, $yscale)
$alignment->set ($xalign, $yalign, $xscale, $yscale)
(padding_top, padding_bottom, padding_left, padding_right) = $alignment->get_padding
$alignment->set_padding ($padding_top, $padding_bottom, $padding_left, $padding_right)
PROPERTIES
SEE ALSO
COPYRIGHT

linux.jgfs.net manual pages