blob: 3ed97ae4ac6e8fe479dba98426d03b210f65124d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|