Package: gtk

Class gtk-aspect-frame

Superclasses

gtk-frame, gtk-bin, gtk-container, gtk-widget, g-initially-unowned, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

ratio
The "ratio" property of type :float (Read / Write)
Aspect ratio if "obey-child" is nil.
Allowed values: [0.0001, 10000.0]
Default value: 1.0
obey-child
The "obey-child" property of type :boolean (Read / Write)
Force aspect ratio to match that of the frame's child.
Default value: true
xalign
The "xalign" property of type :float (Read / Write)
X alignment of the child.
Allowed values: [0.0, 1.0]
Default value: 0.5
yalign
The "yalign" property of type :float (Read / Write)
Y alignment of the child.
Allowed values: [0.0, 1.0]
Default value: 0.5

Details

The gtk-aspect-frame 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. gtk-aspect-frame derives from gtk-frame, so it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child.
 

Slot Access Functions

Inherited Slot Access Functions

2013-5-17