summaryrefslogtreecommitdiff
path: root/ui/uiComponentPlacer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/uiComponentPlacer.cpp')
-rw-r--r--ui/uiComponentPlacer.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/ui/uiComponentPlacer.cpp b/ui/uiComponentPlacer.cpp
deleted file mode 100644
index 5e645d8..0000000
--- a/ui/uiComponentPlacer.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "uiComponentPlacer.h"
-#include <algorithm>
-
-UIComponentPlacer::UIComponentPlacer(glm::vec2 padding, float spacing, glm::length_t axis) :
- padding {padding}, spacing {spacing}, axis {axis}, current {padding[axis]}
-{
-}
-
-glm::vec2
-UIComponentPlacer::next(glm::vec2 size)
-{
- glm::vec2 n {};
- n[axis] = current;
- n[1 - axis] = padding[1 - axis];
- current += spacing + size[axis];
- max = std::max(max, size[1 - axis]);
- return n;
-}
-
-glm::vec2
-UIComponentPlacer::getLimit() const
-{
- glm::vec2 n {};
- n[axis] = current + padding[axis];
- n[1 - axis] = max + padding[1 - axis];
- return n;
-}