summaryrefslogtreecommitdiff
path: root/ui/uiComponentPlacer.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-19 03:19:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-19 03:19:38 +0000
commit0d432961a29d509cd0d1fa80361f04009dcf9c17 (patch)
treebc7536b0ac454a3c466c904123b41498dc6b1905 /ui/uiComponentPlacer.cpp
parentReplace basic query tool with a ImGui version (diff)
downloadilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.tar.bz2
ilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.tar.xz
ilt-0d432961a29d509cd0d1fa80361f04009dcf9c17.zip
Remove lots of stuff not required or superseded with ImGui use
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;
-}