PolyUWPCore.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "PolyCore.h"
  3. #include <vector>
  4. using namespace Polycode;
  5. #define POLYCODE_CORE UWPCore
  6. class PolycodeView {
  7. public:
  8. };
  9. class UWPCore : public Core {
  10. public:
  11. UWPCore(PolycodeView *view, int xRes, int yRes, bool fullScreen, bool vSync, int aaLevel, int anisotropyLevel, int frameRate, int monitorIndex = -1, bool retinaSupport = false);
  12. ~UWPCore();
  13. void Render();
  14. bool systemUpdate();
  15. void setCursor(int cursorType);
  16. void lockMutex(CoreMutex *mutex);
  17. void unlockMutex(CoreMutex *mutex);
  18. CoreMutex *createMutex();
  19. void copyStringToClipboard(const String& str);
  20. String getClipboardString();
  21. void createFolder(const String& folderPath);
  22. void copyDiskItem(const String& itemPath, const String& destItemPath);
  23. void moveDiskItem(const String& itemPath, const String& destItemPath);
  24. void removeDiskItem(const String& itemPath);
  25. String openFolderPicker();
  26. std::vector<String> openFilePicker(std::vector<CoreFileExtension> extensions, bool allowMultiple);
  27. String saveFilePicker(std::vector<CoreFileExtension> extensions);
  28. void handleVideoModeChange(VideoModeChangeInfo *modeInfo);
  29. void flushRenderContext();
  30. void resizeTo(int xRes, int yRes);
  31. void openURL(String url);
  32. unsigned int getTicks();
  33. String executeExternalCommand(String command, String args, String inDirectory);
  34. bool systemParseFolder(const Polycode::String& pathString, bool showHidden, std::vector<OSFileEntry> &targetVector);
  35. };