summaryrefslogtreecommitdiff
path: root/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/gui.h b/gui.h
deleted file mode 100644
index ee6a51c..0000000
--- a/gui.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#pragma once
-
-#include <SDL2/SDL.h>
-
-#include <vector>
-#include "sequence.h"
-
-class Slider {
-public:
- Slider(int x, int y, float* valuePtr, float scaling = 1.f)
- : m_bounds({ x, y, 25, 75 }), value(valuePtr), valueScaling(scaling) {}
-
- void Draw(SDL_Renderer*);
- bool InBounds(int x, int y);
-
- float* value;
- float valueScaling;
-private:
- SDL_Rect m_bounds;
-};
-
-class GUI {
-public:
- GUI(Sequence&);
-
- void OnMouseDown(int x, int y);
- void OnMouseUp();
- void OnMouseMove(int x, int y);
-
- void Repaint(SDL_Renderer*, int currentStep);
-private:
- std::vector<Slider> m_sliders;
-
- Sequence& m_sequence;
- Slider* m_activeSlider{ nullptr };
- int m_dragStart{ 0 };
-}; \ No newline at end of file