This commit is contained in:
IoIxD
2026-01-09 14:43:44 -07:00
parent 079cfa18b9
commit 2d3bd9213e
13 changed files with 402 additions and 69 deletions

View File

@@ -27,6 +27,7 @@ enum MwLLBackends {
MwLLBackendX11 = 0,
MwLLBackendGDI,
MwLLBackendWayland,
MwLLBackendAppKit,
};
struct _MwLLCommon {
@@ -61,6 +62,9 @@ struct _MwLLCommonPixmap {
#ifdef USE_WAYLAND
#include <Mw/LowLevel/Wayland.h>
#endif
#ifdef USE_APPKIT
#include <Mw/LowLevel/AppKit.h>
#endif
union _MwLL {
struct _MwLLCommon common;
@@ -73,6 +77,9 @@ union _MwLL {
#ifdef USE_WAYLAND
struct _MwLLWayland wayland;
#endif
#ifdef USE_APPKIT
struct _MwLLAppKit appkit;
#endif
};
union _MwLLColor {
@@ -86,6 +93,9 @@ union _MwLLColor {
#ifdef USE_WAYLAND
struct _MwLLWaylandColor wayland;
#endif
#ifdef USE_APPKIT
struct _MwLLAppKitColor appkit;
#endif
};
union _MwLLPixmap {
@@ -99,6 +109,9 @@ union _MwLLPixmap {
#ifdef USE_WAYLAND
struct _MwLLWaylandPixmap wayland;
#endif
#ifdef USE_APPKIT
struct _MwLLAppKitPixmap appkit;
#endif
};
#endif
#include <Mw/TypeDefs.h>