mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-17 06:34:08 +00:00
renamed appkit backend to cocoa and got something that compiles
This commit is contained in:
@@ -27,7 +27,7 @@ enum MwLLBackends {
|
||||
MwLLBackendX11 = 0,
|
||||
MwLLBackendGDI,
|
||||
MwLLBackendWayland,
|
||||
MwLLBackendAppKit,
|
||||
MwLLBackendCocoa,
|
||||
};
|
||||
|
||||
struct _MwLLCommon {
|
||||
@@ -62,8 +62,8 @@ struct _MwLLCommonPixmap {
|
||||
#ifdef USE_WAYLAND
|
||||
#include <Mw/LowLevel/Wayland.h>
|
||||
#endif
|
||||
#ifdef USE_APPKIT
|
||||
#include <Mw/LowLevel/AppKit.h>
|
||||
#ifdef USE_COCOA
|
||||
#include <Mw/LowLevel/Cocoa.h>
|
||||
#endif
|
||||
|
||||
union _MwLL {
|
||||
@@ -77,8 +77,8 @@ union _MwLL {
|
||||
#ifdef USE_WAYLAND
|
||||
struct _MwLLWayland wayland;
|
||||
#endif
|
||||
#ifdef USE_APPKIT
|
||||
struct _MwLLAppKit appkit;
|
||||
#ifdef USE_COCOA
|
||||
struct _MwLLCocoa cocoa;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -93,8 +93,8 @@ union _MwLLColor {
|
||||
#ifdef USE_WAYLAND
|
||||
struct _MwLLWaylandColor wayland;
|
||||
#endif
|
||||
#ifdef USE_APPKIT
|
||||
struct _MwLLAppKitColor appkit;
|
||||
#ifdef USE_COCOA
|
||||
struct _MwLLCocoaColor cocoa;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -109,8 +109,8 @@ union _MwLLPixmap {
|
||||
#ifdef USE_WAYLAND
|
||||
struct _MwLLWaylandPixmap wayland;
|
||||
#endif
|
||||
#ifdef USE_APPKIT
|
||||
struct _MwLLAppKitPixmap appkit;
|
||||
#ifdef USE_COCOA
|
||||
struct _MwLLCocoaPixmap cocoa;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
28
include/Mw/LowLevel/Cocoa.h
Normal file
28
include/Mw/LowLevel/Cocoa.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*!
|
||||
* @file Mw/LowLevel/Cocoa.h
|
||||
* @brief Work in progress Cocoa Backend
|
||||
* @warning This is used internally.
|
||||
*/
|
||||
#ifndef __MW_LOWLEVEL_COCOA_H__
|
||||
#define __MW_LOWLEVEL_COCOA_H__
|
||||
|
||||
#include <Mw/LowLevel.h>
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
MWDECL int MwLLCocoaCallInit(void);
|
||||
|
||||
struct _MwLLCocoa {
|
||||
struct _MwLLCommon common;
|
||||
void* real;
|
||||
};
|
||||
|
||||
struct _MwLLCocoaColor {
|
||||
struct _MwLLCommonColor common;
|
||||
};
|
||||
|
||||
struct _MwLLCocoaPixmap {
|
||||
struct _MwLLCommonPixmap common;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user