1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

Add qt/ui_qt_window.cpp

This commit is contained in:
twinaphex 2016-06-09 20:11:26 +02:00
parent b4085b6118
commit 69f32c3a35
5 changed files with 69 additions and 2 deletions

View File

@ -248,7 +248,9 @@ endif
ifeq ($(HAVE_QT), 1)
HAVE_QT_WRAPPER=0
OBJ += ui/drivers/ui_qt.o
OBJ += ui/drivers/ui_qt.o \
ui/drivers/qt/ui_qt_window.o
# TODO/FIXME - figure out which libraries we need to link against
LIBS += -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -L./ui/drivers/qt/wrapper/build/release

View File

@ -128,6 +128,10 @@ UI
#include "../ui/drivers/win32/ui_win32_window.cpp"
#endif
#if defined(HAVE_QT)
#include "../ui/drivers/qt/ui_qt_window.cpp"
#endif
/*============================================================
VIDEO DRIVER
============================================================ */

View File

@ -0,0 +1,60 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <boolean.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "wrapper/wrapper.h"
#include "../../ui_companion_driver.h"
static void ui_window_qt_destroy(void *data)
{
}
static void ui_window_qt_set_focused(void *data)
{
}
static void ui_window_qt_set_visible(void *data,
bool set_visible)
{
}
static void ui_window_qt_set_title(void *data, char *buf)
{
}
static void ui_window_qt_set_droppable(void *data, bool droppable)
{
}
static bool ui_window_qt_focused(void *data)
{
return true;
}
const ui_window_t ui_window_qt = {
ui_window_qt_destroy,
ui_window_qt_set_focused,
ui_window_qt_set_visible,
ui_window_qt_set_title,
ui_window_qt_set_droppable,
ui_window_qt_focused,
"qt"
};

View File

@ -145,7 +145,7 @@ const ui_companion_driver_t ui_companion_qt = {
NULL,
&ui_browser_window_null,
&ui_msg_window_null,
&ui_window_null,
&ui_window_qt,
&ui_application_null,
"qt",
};

View File

@ -145,6 +145,7 @@ extern const ui_browser_window_t ui_browser_window_win32;
extern const ui_window_t ui_window_null;
extern const ui_window_t ui_window_cocoa;
extern const ui_window_t ui_window_qt;
extern const ui_window_t ui_window_win32;
extern const ui_msg_window_t ui_msg_window_null;