Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Properties Author(s) References
A frame that constrains its child to a particular aspect ratio
gtkAspectFrameNew(label = NULL, xalign = NULL, yalign = NULL, ratio = NULL, obey.child = NULL, show = TRUE)
gtkAspectFrameSet(object, xalign = 0, yalign = 0, ratio = 1, obey.child = 1)
gtkAspectFrame(label = NULL, xalign = NULL, yalign = NULL, ratio = NULL, obey.child = NULL, show = TRUE)
1 2 3 4 5 6 7 8 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkFrame
+----GtkAspectFrame
|
GtkAspectFrame implements
AtkImplementorIface and GtkBuildable
.
The GtkAspectFrame
is useful when you want
pack a widget so that it can resize but always retains
the same aspect ratio. For instance, one might be
drawing a small preview of a larger image. GtkAspectFrame
derives from GtkFrame
, so it can draw a label and
a frame around the child. The frame will be
"shrink-wrapped" to the size of the child.
GtkAspectFrame
undocumented
gtkAspectFrame
is the equivalent of gtkAspectFrameNew
.
obey-child
[logical : Read / Write]Force aspect ratio to match that of the frame's child. Default value: TRUE
ratio
[numeric : Read / Write]Aspect ratio if obey_child is FALSE. Allowed values: [0.0001,10000] Default value: 1
xalign
[numeric : Read / Write]X alignment of the child. Allowed values: [0,1] Default value: 0.5
yalign
[numeric : Read / Write]Y alignment of the child. Allowed values: [0,1] Default value: 0.5
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkAspectFrame.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.