BsGUIWindowDropArea.h 694 B

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