12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef HEADER_FLEXLAY_SCROLLBAR_HPP
- #define HEADER_FLEXLAY_SCROLLBAR_HPP
- #include <ClanLib/GUI/component.h>
- #include <memory>
- class ScrollbarImpl;
- class Scrollbar : public CL_Component
- {
- protected:
- virtual ~Scrollbar() {}
- public:
- enum Orientation { HORIZONTAL, VERTICAL };
- Scrollbar(const CL_Rect& rect, Orientation orientation, CL_Component* parent);
- void set_range(float min, float max);
- void set_pagesize(float size);
- void set_pos(float pos);
- CL_Signal_v1<float>& sig_scrollbar_move();
- private:
- std::shared_ptr<ScrollbarImpl> impl;
- };
- #endif
|