mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00
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:
parent
26502e4082
commit
6d41b1981d
24 changed files with 268 additions and 152 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue