Wayland example window
This commit is contained in:
parent
160b746182
commit
26f54c4581
30 changed files with 825 additions and 22 deletions
|
@ -15,8 +15,11 @@ list(APPEND TestFiles
|
|||
graphics/TestRasterizer.cpp
|
||||
ipc/TestDbus.cpp
|
||||
image/TestPngWriter.cpp
|
||||
network/TestNetworkManagerClient.cpp
|
||||
network/TestNetworkManagerServer.cpp
|
||||
publishing/TestPdfWriter.cpp
|
||||
video/TestVideoDecoder.cpp
|
||||
windows/TestWaylandWindow.cpp
|
||||
web/TestMarkdownParser.cpp
|
||||
web/TestXmlParser.cpp)
|
||||
|
||||
|
@ -28,8 +31,11 @@ list(APPEND TestNames
|
|||
TestRasterizer
|
||||
TestDbus
|
||||
TestPngWriter
|
||||
TestNetworkManagerClient
|
||||
TestNetworkManagerServer
|
||||
TestPdfWriter
|
||||
TestVideoDecoder
|
||||
TestWaylandWindow
|
||||
TestMarkdownParser
|
||||
TestXmlParser)
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include "Image.h"
|
||||
#include "PngWriter.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
unsigned width = 200;
|
||||
|
|
12
test/network/TestNetworkManagerClient.cpp
Normal file
12
test/network/TestNetworkManagerClient.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "NetworkManager.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "into main" << std::endl;
|
||||
auto network_manager = NetworkManager::Create();
|
||||
|
||||
network_manager->RunHttpClient();
|
||||
return 0;
|
||||
}
|
12
test/network/TestNetworkManagerServer.cpp
Normal file
12
test/network/TestNetworkManagerServer.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "NetworkManager.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "into main" << std::endl;
|
||||
auto network_manager = NetworkManager::Create();
|
||||
|
||||
network_manager->RunHttpServer();
|
||||
return 0;
|
||||
}
|
23
test/windows/TestWaylandWindow.cpp
Normal file
23
test/windows/TestWaylandWindow.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "WaylandWindowInterface.h"
|
||||
|
||||
#include "Window.h"
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
WaylandWindowInterface window_interface;
|
||||
window_interface.connect();
|
||||
|
||||
auto window = mt::Window::Create();
|
||||
window->SetSize(800, 600);
|
||||
|
||||
window_interface.addWindow(window.get());
|
||||
|
||||
window_interface.createSurface();
|
||||
|
||||
window_interface.run();
|
||||
|
||||
window_interface.disconnect();
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue