Drag[en]gine Script Module DragonScript
1.23
|
Aspect ratio behavior. More...
Public Attributes | |
clip | |
Protect aspect ratio clipping widget to fill available space. More... | |
fit | |
Protect aspect ratio fitting widget into available space. More... | |
stretch | |
No aspect ratio protection. More... | |
Aspect ratio behavior.
Dragengine.Gui.Layouts.StackLayout.AspectRatio.clip |
Protect aspect ratio clipping widget to fill available space.
Widgets are guaranteed to keep their aspect ratio. The size and position is corrected in a way the widget entirely fills the container. This ensures no empty borders exist around widgets widgets but potentially clips widgets.
Dragengine.Gui.Layouts.StackLayout.AspectRatio.fit |
Protect aspect ratio fitting widget into available space.
Widgets are guaranteed to keep their aspect ratio. The size and position is corrected in a way the widget fits entirely inside the container. This ensures widgets are not clipped and are fully visible but potentially introduces empty borders.
Dragengine.Gui.Layouts.StackLayout.AspectRatio.stretch |
No aspect ratio protection.
Widgets can turn out stretched loosing their aspect ratio.