1Gtk2::AspectFrame(3) User Contributed Perl Documentation Gtk2::AspectFrame(3)
2
3
4
6 Gtk2::AspectFrame - wrapper for GtkAspectFrame
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::Frame
16 +----Gtk2::AspectFrame
17
19 Glib::Object::_Unregistered::AtkImplementorIface
20 Gtk2::Buildable
21
23 widget = Gtk2::AspectFrame->new ($label, $xalign, $yalign, $ratio,
24 $obey_child)
25 • $label (string or undef)
26
27 • $xalign (double)
28
29 • $yalign (double)
30
31 • $ratio (double)
32
33 • $obey_child (boolean)
34
35 $aspect_frame->set_params ($xalign, $yalign, $ratio, $obey_child)
36 • $xalign (double)
37
38 • $yalign (double)
39
40 • $ratio (double)
41
42 • $obey_child (boolean)
43
45 'obey-child' (boolean : default true : readable / writable / private /
46 static-nick / static-blurb)
47 Force aspect ratio to match that of the frame's child
48
49 'ratio' (float : default 1 : readable / writable / private / static-
50 nick / static-blurb)
51 Aspect ratio if obey_child is FALSE
52
53 'xalign' (float : default 0.5 : readable / writable / private / static-
54 nick / static-blurb)
55 X alignment of the child
56
57 'yalign' (float : default 0.5 : readable / writable / private / static-
58 nick / static-blurb)
59 Y alignment of the child
60
62 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
63 Gtk2::Container, Gtk2::Bin, Gtk2::Frame
64
66 Copyright (C) 2003-2011 by the gtk2-perl team.
67
68 This software is licensed under the LGPL. See Gtk2 for a full notice.
69
70
71
72perl v5.36.0 2022-07-22 Gtk2::AspectFrame(3)