Enumerations

UI/Canvas

Brief descriptions

Enumerations

nau::ui::RescalePolicy

Governs canvas behavior when the window size changes.

Detailed information

ui::RescalePolicy

engine/core/modules/ui/include/nau/ui/elements/canvas.h

enum class nau::ui::RescalePolicy

Governs canvas behavior when the window size changes.

Values:

enumerator FitToSize

The canvas will be stretched proportionally to fit the window. However, there will be empty stripes along the larger axis in case proportions mismatch.

enumerator FitVertically

The canvas will be stetched proportinally to vertically fit the window. However, either there will be horizontal empty stripes or horizontal edges will be cropped in case proportions mismatch.

enumerator FitHorizontally

The canvas will be stetched proportinally to horizontally fit the window. However, either there will be vertical empty stripes or vertical edges will be cropped in case proportions mismatch.

enumerator Stretch

The canvas will be streched to fill the entire window possibly violating proportions.

enumerator NoRescale

The canvas will keep its size, but either an empty area surrounding it will appear or it will be cropped.