Move the Qt style to a new backend: the Qt backend

Currently the Qt backend still redirect everything to the GL backend,
but the goal is to use QPainter and QWindow

This also adds a "default" backend, whose goal is to select the proper
backend at compile time
This commit is contained in:
Olivier Goffart 2020-08-31 16:45:59 +02:00
parent 26502e4082
commit 6d41b1981d
24 changed files with 268 additions and 152 deletions

View file

@ -21,7 +21,7 @@ struct ComponentVTable;
struct ItemVTable;
}
#include "sixtyfps_internal.h"
#include "sixtyfps_gl_internal.h"
#include "sixtyfps_default_backend_internal.h"
namespace sixtyfps {
@ -57,7 +57,7 @@ using ItemTreeNode = cbindgen_private::ItemTreeNode<uint8_t>;
struct ComponentWindow
{
ComponentWindow() { cbindgen_private::sixtyfps_component_window_gl_renderer_init(&inner); }
ComponentWindow() { cbindgen_private::sixtyfps_component_window_init(&inner); }
~ComponentWindow() { cbindgen_private::sixtyfps_component_window_drop(&inner); }
ComponentWindow(const ComponentWindow &) = delete;
ComponentWindow(ComponentWindow &&) = delete;