dolphin/Source/Core/DolphinQt/Host.cpp

103 lines
1.6 KiB
C++
Raw Normal View History

// Copyright 2014 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <cstring>
#include <QApplication>
#include <QResizeEvent>
#include "Common/MsgHandler.h"
#include "Core/Host.h"
#include "DolphinQt/Host.h"
#include "DolphinQt/MainWindow.h"
HostTitleEvent::HostTitleEvent(const std::string& title)
: QEvent((QEvent::Type)HostEvent::TitleEvent),
m_title(title)
{
}
void Host_Message(int id)
{
// TODO
}
void Host_UpdateMainFrame()
{
// TODO
}
void Host_UpdateTitle(const std::string& title)
{
qApp->postEvent(g_main_window, new HostTitleEvent(title));
}
void* Host_GetRenderHandle()
{
return (void*)(g_main_window->GetRenderWidget()->winId());
}
void Host_RequestRenderWindowSize(int w, int h)
{
DRenderWidget* render_widget = g_main_window->GetRenderWidget();
qApp->postEvent(render_widget, new QResizeEvent(QSize(w, h), render_widget->size()));
}
bool Host_RendererHasFocus()
{
return g_main_window->RenderWidgetHasFocus();
}
bool Host_UIHasFocus()
{
return g_main_window->isActiveWindow();
}
2015-01-04 16:09:56 +00:00
bool Host_RendererIsFullscreen()
{
return false; // TODO
}
void Host_RequestFullscreen(bool enable)
{
// TODO
}
void Host_NotifyMapLoaded()
{
// TODO
}
void Host_UpdateDisasmDialog()
{
// TODO
}
void Host_SetStartupDebuggingParameters()
{
// TODO
}
void Host_SetWiiMoteConnectionState(int state)
{
// TODO
}
void Host_ConnectWiimote(int wm_idx, bool connect)
{
// TODO
}
void Host_ShowVideoConfig(void* parent, const std::string& backend_name,
const std::string& config_name)
{
// TODO
}
void Host_RefreshDSPDebuggerWindow()
{
// TODO
}