Package ch.bailu.gtk.gtk
Interface ContentFit
public interface ContentFit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intScale the content to fit the allocation,
while taking its aspect ratio in consideration.static final intCover the entire allocation, while taking
the content aspect ratio in consideration.static final intMake the content fill the entire allocation,
without taking its aspect ratio in consideration.static final intThe content is scaled down to fit the
allocation, if needed, otherwise its original size is used.
-
Field Details
-
FILL
static final int FILLMake 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.- See Also:
-
CONTAIN
static final int CONTAINScale 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.- See Also:
-
COVER
static final int COVERCover 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.- See Also:
-
SCALE_DOWN
static final int SCALE_DOWNThe content is scaled down to fit the
allocation, if needed, otherwise its original size is used.- See Also:
-