Module: Gtk::ContentFit

Defined in:
(unknown)

Constant Summary collapse

FILL =

Make the content fill the entire allocation,
without taking its aspect ratio in consideration. The resulting
content will appear as stretched if its aspect ratio is different
from the allocation aspect ratio.

0 or :fill
CONTAIN =

Scale the content to fit the allocation,
while taking its aspect ratio in consideration. The resulting
content will appear as letterboxed if its aspect ratio is different
from the allocation aspect ratio.

1 or :contain
COVER =

Cover the entire allocation, while taking
the content aspect ratio in consideration. The resulting content
will appear as clipped if its aspect ratio is different from the
allocation aspect ratio.

2 or :cover
SCALE_DOWN =

The content is scaled down to fit the
allocation, if needed, otherwise its original size is used.

3 or :scale_down