Gtk2::Misc(3) User Contributed Perl Documentation Gtk2::Misc(3)

Gtk2::Misc - wrapper for GtkMisc

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

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

$misc->set_alignment ($xalign, $yalign)

  • $xalign (double)
  • $yalign (double)

$misc->set_padding ($xpad, $ypad)

  • $xpad (integer)
  • $ypad (integer)

'xalign' (float : default 0.5 : readable / writable / private / static-nick / static-blurb)
The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.
'xpad' (integer : default 0 : readable / writable / private / static-nick / static-blurb)
The amount of space to add on the left and right of the widget, in pixels
'yalign' (float : default 0.5 : readable / writable / private / static-nick / static-blurb)
The vertical alignment, from 0 (top) to 1 (bottom)
'ypad' (integer : default 0 : readable / writable / private / static-nick / static-blurb)
The amount of space to add on the top and bottom of the widget, in pixels

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

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

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

2023-07-25 perl v5.38.0