DragAndDrop.h 862 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_DRAGANDDROP_H
  8. #define GWEN_DRAGANDDROP_H
  9. #include <sstream>
  10. #include "Gwen/Skin.h"
  11. #include "Gwen/Structures.h"
  12. namespace Gwen
  13. {
  14. namespace DragAndDrop
  15. {
  16. extern GWEN_EXPORT Package* CurrentPackage;
  17. extern GWEN_EXPORT Gwen::Controls::Base* SourceControl;
  18. extern GWEN_EXPORT Gwen::Controls::Base* HoveredControl;
  19. bool GWEN_EXPORT Start( Gwen::Controls::Base* pControl, Package* pPackage );
  20. bool GWEN_EXPORT OnMouseButton( Gwen::Controls::Base* pHoveredControl, int x, int y, bool bDown );
  21. void GWEN_EXPORT OnMouseMoved( Gwen::Controls::Base* pHoveredControl, int x, int y );
  22. void GWEN_EXPORT RenderOverlay( Gwen::Controls::Canvas* pCanvas, Skin::Base* skin );
  23. void GWEN_EXPORT ControlDeleted( Gwen::Controls::Base* pControl );
  24. }
  25. }
  26. #endif