| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsGUIButtonBase.h"
- #include "BsDockManager.h"
- #include "boost/signal.hpp"
- namespace BansheeEditor
- {
- class GUIDockSlider : public BS::GUIButtonBase
- {
- public:
- static const CM::String& getGUITypeName();
- static GUIDockSlider* create(BS::GUIWidget& parent, bool horizontal, const BS::GUIElementStyle* style = nullptr);
- static GUIDockSlider* create(BS::GUIWidget& parent, bool horizontal, const BS::GUIOptions& layoutOptions, const BS::GUIElementStyle* style = nullptr);
- boost::signal<void(const CM::Vector2I&)> onDragged;
- protected:
- virtual bool mouseEvent(const BS::GUIMouseEvent& ev);
- private:
- CM::Vector2I mLastDragPosition;
- bool mHorizontal;
- bool mIsMouseOver;
- bool mIsCursorSet;
- bool mDragInProgress;
- GUIDockSlider(BS::GUIWidget& parent, bool horizontal, const BS::GUIElementStyle* style, const BS::GUILayoutOptions& layoutOptions);
- };
- }
|