Host.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Copyright 2014 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #include <cstring>
  5. #include <QApplication>
  6. #include <QResizeEvent>
  7. #include "Common/MsgHandler.h"
  8. #include "Core/Host.h"
  9. #include "DolphinQt/MainWindow.h"
  10. void Host_Message(int id)
  11. {
  12. // TODO
  13. }
  14. void Host_UpdateMainFrame()
  15. {
  16. // TODO
  17. }
  18. void Host_UpdateTitle(const std::string& title)
  19. {
  20. // TODO
  21. }
  22. void* Host_GetRenderHandle()
  23. {
  24. return (void*)(g_main_window->GetRenderWidget()->winId());
  25. }
  26. void Host_RequestRenderWindowSize(int w, int h)
  27. {
  28. DRenderWidget* render_widget = g_main_window->GetRenderWidget();
  29. qApp->postEvent(render_widget, new QResizeEvent(QSize(w, h), render_widget->size()));
  30. }
  31. bool Host_RendererHasFocus()
  32. {
  33. return g_main_window->RenderWidgetHasFocus();
  34. }
  35. bool Host_UIHasFocus()
  36. {
  37. return g_main_window->isActiveWindow();
  38. }
  39. bool Host_RendererIsFullscreen()
  40. {
  41. return false; // TODO
  42. }
  43. void Host_RequestFullscreen(bool enable)
  44. {
  45. // TODO
  46. }
  47. void Host_NotifyMapLoaded()
  48. {
  49. // TODO
  50. }
  51. void Host_UpdateDisasmDialog()
  52. {
  53. // TODO
  54. }
  55. void Host_SetStartupDebuggingParameters()
  56. {
  57. // TODO
  58. }
  59. void Host_SetWiiMoteConnectionState(int state)
  60. {
  61. // TODO
  62. }
  63. void Host_ConnectWiimote(int wm_idx, bool connect)
  64. {
  65. // TODO
  66. }
  67. void Host_ShowVideoConfig(void* parent, const std::string& backend_name,
  68. const std::string& config_name)
  69. {
  70. // TODO
  71. }
  72. void Host_RefreshDSPDebuggerWindow()
  73. {
  74. // TODO
  75. }