---
name: "GBin.aspect_frame"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GBin.aspect_frame"
---

# GBin.aspect\_frame(3o)

A frame that constrains its child to a particular aspect ratio

## NAME

GBin.aspect\_frame - A frame that constrains its child to a particular aspect ratio

## Class

Class   GBin.aspect\_frame

## Documentation

*class aspect\_frame :* **Gtk.aspect\_frame Gtk.obj -\> object end**

A frame that constrains its child to a particular aspect ratio

**Parameters:**

""

**Gtk.aspect\_frame Gtk.obj**

*val obj :* **Gtk.aspect\_frame Gtk.obj**

*method set\_obey\_child :* **bool -\> unit**

*method set\_ratio :* **float -\> unit**

*method set\_xalign :* **float -\> unit**

*method set\_yalign :* **float -\> unit**

*method obey\_child :* **bool**

*method ratio :* **float**

*method xalign :* **float**

*method yalign :* **float**
