diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-12 19:13:34 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-12 19:13:34 +0100 |
| commit | a359219e33fdf3afb5ddfbb084563054a947b106 (patch) | |
| tree | 91dab9c21321f73152993183cd6e8cf4a04017f8 /src/components/Scrollbar.hpp | |
Create project
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 |
