Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.Layouts.StackLayout.AspectRatio Enum Reference

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...
 

Detailed Description

Aspect ratio behavior.

Member Data Documentation

◆ clip

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.

◆ fit

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.

◆ stretch

Dragengine.Gui.Layouts.StackLayout.AspectRatio.stretch

No aspect ratio protection.

Widgets can turn out stretched loosing their aspect ratio.


The documentation for this enum was generated from the following file: