1Gtk2::Alignment(3) User Contributed Perl Documentation Gtk2::Alignment(3)
2
3
4
6 Gtk2::Alignment - wrapper for GtkAlignment
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::Alignment
16
18 Glib::Object::_Unregistered::AtkImplementorIface
19 Gtk2::Buildable
20
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
57 'bottom-padding' (Glib::UInt : default 0 : readable / writable /
58 private / static-nick / static-blurb)
59 The padding to insert at the bottom of the widget.
60
61 'left-padding' (Glib::UInt : default 0 : readable / writable / private
62 / static-nick / static-blurb)
63 The padding to insert at the left of the widget.
64
65 'right-padding' (Glib::UInt : default 0 : readable / writable / private
66 / static-nick / static-blurb)
67 The padding to insert at the right of the widget.
68
69 'top-padding' (Glib::UInt : default 0 : readable / writable / private /
70 static-nick / static-blurb)
71 The padding to insert at the top of the widget.
72
73 'xalign' (float : default 0.5 : readable / writable / private / static-
74 nick / static-blurb)
75 Horizontal position of child in available space. 0.0 is left
76 aligned, 1.0 is right aligned
77
78 'xscale' (float : default 1 : readable / writable / private / static-
79 nick / static-blurb)
80 If available horizontal space is bigger than needed for the child,
81 how much of it to use for the child. 0.0 means none, 1.0 means all
82
83 'yalign' (float : default 0.5 : readable / writable / private / static-
84 nick / static-blurb)
85 Vertical position of child in available space. 0.0 is top aligned,
86 1.0 is bottom aligned
87
88 'yscale' (float : default 1 : readable / writable / private / static-
89 nick / static-blurb)
90 If available vertical space is bigger than needed for the child,
91 how much of it to use for the child. 0.0 means none, 1.0 means all
92
94 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
95 Gtk2::Container, Gtk2::Bin
96
98 Copyright (C) 2003-2011 by the gtk2-perl team.
99
100 This software is licensed under the LGPL. See Gtk2 for a full notice.
101
102
103
104perl v5.36.0 2022-07-22 Gtk2::Alignment(3)