18#include "AUI/Render/IRenderer.h"
27 struct BackgroundCropping {
31 BackgroundCropping()
noexcept =
default;
32 BackgroundCropping(
const BackgroundCropping&)
noexcept =
default;
34 offset(offset), size(size) {}
36 static const BackgroundCropping H4_1;
37 static const BackgroundCropping H4_2;
38 static const BackgroundCropping H4_3;
39 static const BackgroundCropping H4_4;
53 void applyFor(
AView* view)
override;
56 const auto& value()
const noexcept {
64inline const ass::BackgroundCropping ass::BackgroundCropping::H4_1 = { glm::vec2{0.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} };
65inline const ass::BackgroundCropping ass::BackgroundCropping::H4_2 = { glm::vec2{1.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} };
66inline const ass::BackgroundCropping ass::BackgroundCropping::H4_3 = { glm::vec2{2.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} };
67inline const ass::BackgroundCropping ass::BackgroundCropping::H4_4 = { glm::vec2{3.f / 4.f, 0.f}, glm::vec2{1.f / 4.f, 1.f} };
Base class of all UI objects.
Definition AView.h:78
Controls background texture cropping by exact UV coordinates. Useful for texture atlases.
Definition BackgroundCropping.h:27
Base class for all properties.
Definition IPropertyBase.h:50