diff options
author | cflip <cflip@cflip.net> | 2022-01-01 16:25:08 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-01-01 16:25:08 -0700 |
commit | 3828bb56022c636a7dd056a4781249222ea0d3ca (patch) | |
tree | 3552634861456591c78cce31ab1b534a10b45832 /gui.h | |
parent | 36ed961e04f87038d2df721926c6ffd030dfa47c (diff) |
Clean up GUI appearance
Diffstat (limited to 'gui.h')
-rw-r--r-- | gui.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,14 +1,14 @@ #pragma once +#include <SDL2/SDL.h> + #include <vector> #include "sequence.h" -struct SDL_Renderer; - class Slider { public: Slider(int x, int y, float* valuePtr, float scaling = 1.f) - : m_x(x), m_y(y), value(valuePtr), valueScaling(scaling) {} + : m_bounds({ x, y, 25, 75 }), value(valuePtr), valueScaling(scaling) {} void Draw(SDL_Renderer*); bool InBounds(int x, int y); @@ -16,7 +16,7 @@ public: float* value; float valueScaling; private: - int m_x, m_y; + SDL_Rect m_bounds; }; class GUI { |