DummyCore.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. function DummyCore() {
  2. }
  3. Duktape.fin(DummyCore.prototype, function (x) {
  4. if (x === DummyCore.prototype) {
  5. return;
  6. }
  7. Polycode.DummyCore__delete(x.__ptr)
  8. })
  9. DummyCore.prototype.Render = function() {
  10. Polycode.DummyCore_Render(this.__ptr)
  11. }
  12. DummyCore.prototype.systemUpdate = function() {
  13. return Polycode.DummyCore_systemUpdate(this.__ptr)
  14. }
  15. DummyCore.prototype.setCursor = function(cursorType) {
  16. Polycode.DummyCore_setCursor(this.__ptr, cursorType)
  17. }
  18. DummyCore.prototype.createThread = function(target) {
  19. Polycode.DummyCore_createThread(this.__ptr, target)
  20. }
  21. DummyCore.prototype.createMutex = function() {
  22. var retVal = new CoreMutex()
  23. retVal.__ptr = Polycode.DummyCore_createMutex(this.__ptr)
  24. return retVal
  25. }
  26. DummyCore.prototype.copyStringToClipboard = function(str) {
  27. Polycode.DummyCore_copyStringToClipboard(this.__ptr, str)
  28. }
  29. DummyCore.prototype.getClipboardString = function() {
  30. return Polycode.DummyCore_getClipboardString(this.__ptr)
  31. }
  32. DummyCore.prototype.createFolder = function(folderPath) {
  33. Polycode.DummyCore_createFolder(this.__ptr, folderPath)
  34. }
  35. DummyCore.prototype.copyDiskItem = function(itemPath,destItemPath) {
  36. Polycode.DummyCore_copyDiskItem(this.__ptr, itemPath,destItemPath)
  37. }
  38. DummyCore.prototype.moveDiskItem = function(itemPath,destItemPath) {
  39. Polycode.DummyCore_moveDiskItem(this.__ptr, itemPath,destItemPath)
  40. }
  41. DummyCore.prototype.removeDiskItem = function(itemPath) {
  42. Polycode.DummyCore_removeDiskItem(this.__ptr, itemPath)
  43. }
  44. DummyCore.prototype.openFolderPicker = function() {
  45. return Polycode.DummyCore_openFolderPicker(this.__ptr)
  46. }
  47. DummyCore.prototype.openFilePicker = function(extensions,allowMultiple) {
  48. Polycode.DummyCore_openFilePicker(this.__ptr, extensions,allowMultiple)
  49. }
  50. DummyCore.prototype.saveFilePicker = function(extensions) {
  51. return Polycode.DummyCore_saveFilePicker(this.__ptr, extensions)
  52. }
  53. DummyCore.prototype.handleVideoModeChange = function(modeInfo) {
  54. Polycode.DummyCore_handleVideoModeChange(this.__ptr, modeInfo)
  55. }
  56. DummyCore.prototype.flushRenderContext = function() {
  57. Polycode.DummyCore_flushRenderContext(this.__ptr)
  58. }
  59. DummyCore.prototype.openURL = function(url) {
  60. Polycode.DummyCore_openURL(this.__ptr, url)
  61. }
  62. DummyCore.prototype.getTicks = function() {
  63. return Polycode.DummyCore_getTicks(this.__ptr)
  64. }
  65. DummyCore.prototype.executeExternalCommand = function(command,args,inDirectory) {
  66. return Polycode.DummyCore_executeExternalCommand(this.__ptr, command,args,inDirectory)
  67. }
  68. DummyCore.prototype.systemParseFolder = function(pathString,showHidden,targetVector) {
  69. return Polycode.DummyCore_systemParseFolder(this.__ptr, pathString,showHidden,targetVector)
  70. }