diff options
Diffstat (limited to 'src/components/Scrollbar.hpp')
| -rw-r--r-- | src/components/Scrollbar.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/Scrollbar.hpp b/src/components/Scrollbar.hpp new file mode 100644 index 0000000..3ed97ae --- /dev/null +++ b/src/components/Scrollbar.hpp @@ -0,0 +1,16 @@ +#include "Component.hpp" +#include <algorithm> // std::max +#include <cmath> + +namespace cgeditor { +class Scrollbar : public Component { + /// @brief Set to true if it is the horizontal scrollbar + bool IsHorizontal; + Element bg,bar; + double DragY,DragX; + bool Trigger; +public: + Scrollbar(Status* s,bool IsHorizontal); + void Refresh(); +}; +} // namespace cgeditor
\ No newline at end of file |
