BsGUIWindowDropArea.h 750 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsGUITexture.h"
  4. #include <boost/signals.hpp>
  5. namespace BansheeEditor
  6. {
  7. class GUIWindowDropArea : public BS::GUITexture
  8. {
  9. public:
  10. static const CM::String& getGUITypeName();
  11. static GUIWindowDropArea* create(const CM::String& styleName = CM::StringUtil::BLANK);
  12. static GUIWindowDropArea* create(const BS::GUIOptions& layoutOptions, const CM::String& styleName = CM::StringUtil::BLANK);
  13. void setFocused(bool focused);
  14. boost::signal<void()> onDraggedItemDropped;
  15. protected:
  16. ~GUIWindowDropArea();
  17. GUIWindowDropArea(const CM::String& styleName, const BS::GUILayoutOptions& layoutOptions);
  18. virtual bool mouseEvent(const BS::GUIMouseEvent& ev);
  19. };
  20. }