From a359219e33fdf3afb5ddfbb084563054a947b106 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 12 Feb 2022 19:13:34 +0100 Subject: Create project --- src/components/Scrollbar.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/components/Scrollbar.hpp (limited to 'src/components/Scrollbar.hpp') 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 // std::max +#include + +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 -- cgit v1.2.3