BsGUIWindowDropArea.h 806 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(BS::GUIWidget& parent, const BS::GUIElementStyle* style = nullptr);
  12. static GUIWindowDropArea* create(BS::GUIWidget& parent, const BS::GUIOptions& layoutOptions, const BS::GUIElementStyle* style = nullptr);
  13. void setFocused(bool focused);
  14. boost::signal<void()> onDraggedItemDropped;
  15. protected:
  16. ~GUIWindowDropArea();
  17. GUIWindowDropArea(BS::GUIWidget& parent, const BS::GUIElementStyle* style, const BS::GUILayoutOptions& layoutOptions);
  18. virtual bool mouseEvent(const BS::GUIMouseEvent& ev);
  19. };
  20. }