AspectFrame.ratio

float ratio() @property

Get ratio property.

Returns

The aspect ratio to be used by the [gtk.aspect_frame.AspectFrame].

This property is only used if property@Gtk.AspectFrame:obey-child is set to false.

void ratio(float propval) @property

Set ratio property.

Parameters

propvalThe aspect ratio to be used by the [gtk.aspect_frame.AspectFrame]. This property is only used if property@Gtk.AspectFrame:obey-child is set to false.