1Gtk2::Alignment(3)    User Contributed Perl Documentation   Gtk2::Alignment(3)
2
3
4

NAME

6       Gtk2::Alignment - wrapper for GtkAlignment
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Bin
15                                  +----Gtk2::Alignment
16

INTERFACES

18         Glib::Object::_Unregistered::AtkImplementorIface
19         Gtk2::Buildable
20

METHODS

22   widget = Gtk2::Alignment->new ($xalign, $yalign, $xscale, $yscale)
23       ·   $xalign (double)
24
25       ·   $yalign (double)
26
27       ·   $xscale (double)
28
29       ·   $yscale (double)
30
31   $alignment->set ($xalign, $yalign, $xscale, $yscale)
32       ·   $xalign (double)
33
34       ·   $yalign (double)
35
36       ·   $xscale (double)
37
38       ·   $yscale (double)
39
40   (padding_top, padding_bottom, padding_left, padding_right) =
41       $alignment->get_padding
42       Since: gtk+ 2.4
43
44   $alignment->set_padding ($padding_top, $padding_bottom, $padding_left,
45       $padding_right)
46       ·   $padding_top (integer)
47
48       ·   $padding_bottom (integer)
49
50       ·   $padding_left (integer)
51
52       ·   $padding_right (integer)
53
54       Since: gtk+ 2.4
55

PROPERTIES

57       'bottom-padding' (Glib::UInt : default 0 : readable / writable /
58       private)
59           The padding to insert at the bottom of the widget.
60
61       'left-padding' (Glib::UInt : default 0 : readable / writable / private)
62           The padding to insert at the left of the widget.
63
64       'right-padding' (Glib::UInt : default 0 : readable / writable /
65       private)
66           The padding to insert at the right of the widget.
67
68       'top-padding' (Glib::UInt : default 0 : readable / writable / private)
69           The padding to insert at the top of the widget.
70
71       'xalign' (float : default 0.5 : readable / writable / private)
72           Horizontal position of child in available space. 0.0 is left
73           aligned, 1.0 is right aligned
74
75       'xscale' (float : default 1 : readable / writable / private)
76           If available horizontal space is bigger than needed for the child,
77           how much of it to use for the child. 0.0 means none, 1.0 means all
78
79       'yalign' (float : default 0.5 : readable / writable / private)
80           Vertical position of child in available space. 0.0 is top aligned,
81           1.0 is bottom aligned
82
83       'yscale' (float : default 1 : readable / writable / private)
84           If available vertical space is bigger than needed for the child,
85           how much of it to use for the child. 0.0 means none, 1.0 means all
86

SEE ALSO

88       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
89       Gtk2::Container, Gtk2::Bin
90
92       Copyright (C) 2003-2011 by the gtk2-perl team.
93
94       This software is licensed under the LGPL.  See Gtk2 for a full notice.
95
96
97
98perl v5.30.0                      2019-07-26                Gtk2::Alignment(3)
Impressum