enum Gtk::ContentFit
Overview
Controls how a content should be made to fit inside an allocation.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/gtk.crEnum Members
-
Fill =
0_u32
-
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.
-
Contain =
1_u32
-
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.
-
Cover =
2_u32
-
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.
-
ScaleDown =
3_u32
-
The content is scaled down to fit the allocation, if needed, otherwise its original size is used.
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.