Gtk2::Alignment(3pm)

Gtk2::Alignment3pm

Wrapper for gtkalignment

Hierarchy

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

Interfaces

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable

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 : default 0 : readable / writable / private)

The padding to insert at the bottom of the widget.

'left-padding' (Glib::UInt : default 0 : readable / writable / private)

The padding to insert at the left of the widget.

'right-padding' (Glib::UInt : default 0 : readable / writable / private)

The padding to insert at the right of the widget.

'top-padding' (Glib::UInt : default 0 : readable / writable / private)

The padding to insert at the top of the widget.

'xalign' (float : default 0.5 : readable / writable / private)

Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned

'xscale' (float : default 1 : 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' (float : default 0.5 : readable / writable / private)

Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned

'yscale' (float : default 1 : 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

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.