| 12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsGUIButtonBase.h"
- #include "BsGUIToggleGroup.h"
- #include "BsImageSprite.h"
- #include "BsTextSprite.h"
- #include "BsGUIContent.h"
- #include "BsEvent.h"
- namespace BansheeEngine
- {
- class BS_ED_EXPORT GUIDropButton : public GUIButtonBase
- {
- public:
- static const String& getGUITypeName();
- static GUIDropButton* create(UINT32 dragType, const String& styleName = StringUtil::BLANK);
- static GUIDropButton* create(UINT32 dragType, const GUIOptions& options,
- const String& styleName = StringUtil::BLANK);
- Event<void(void*)> onDataDropped;
- protected:
- virtual ~GUIDropButton();
- protected:
- GUIDropButton(UINT32 dragType, const String& styleName, const GUIDimensions& dimensions);
- virtual bool _mouseEvent(const GUIMouseEvent& ev);
- virtual bool _acceptDragAndDrop(const Vector2I position, UINT32 typeId) const;
- UINT32 mDragType;
- };
- }
|