Platform.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_PLATFORM_H
  8. #define GWEN_PLATFORM_H
  9. #include "Gwen/Structures.h"
  10. #include "Gwen/Events.h"
  11. namespace Gwen
  12. {
  13. namespace Platform
  14. {
  15. //
  16. // Set the system cursor to iCursor
  17. // Cursors are defined in Structures.h
  18. //
  19. void GWEN_EXPORT SetCursor( unsigned char iCursor );
  20. //
  21. // Used by copy/paste
  22. //
  23. UnicodeString GWEN_EXPORT GetClipboardText();
  24. bool GWEN_EXPORT SetClipboardText( const UnicodeString& str );
  25. //
  26. // Needed for things like double click
  27. //
  28. float GWEN_EXPORT GetTimeInSeconds();
  29. //
  30. // System Dialogs ( Can return false if unhandled )
  31. //
  32. bool GWEN_EXPORT FileOpen( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback );
  33. bool GWEN_EXPORT FileSave( const String& Name, const String& StartPath, const String& Extension, Gwen::Event::Handler* pHandler, Event::Handler::FunctionStr fnCallback );
  34. }
  35. }
  36. #endif