MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::NormalizeSizeOperator Class Reference

This class keeps widget seemingly fixed size on screen by adjusting scale to counter changes in transformations in parent tree. More...

#include <NormalizeSizeOperator.hpp>

Inherits Operator.

Detailed Description

This class keeps widget seemingly fixed size on screen by adjusting scale to counter changes in transformations in parent tree.

Base scale is taken from STYLE layer or DEFAULT layer. Widget size can be changed to offset the changes in scale with NormalizeMode flags, to for example make widget stay certain size relative to it's parent, but still change scale to make UI stay fixed scale on screen