mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 21:51:02 +00:00
Prepare UI support
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "registry.hpp"
|
||||
#include "network.hpp"
|
||||
#include "threading.hpp"
|
||||
#include "window.hpp"
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
40
src/common/platform/window.hpp
Normal file
40
src/common/platform/window.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
using pointer = uint64_t;
|
||||
|
||||
#ifndef OS_WINDOWS
|
||||
typedef struct tagPOINT
|
||||
{
|
||||
LONG x;
|
||||
LONG y;
|
||||
} POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT;
|
||||
#endif
|
||||
|
||||
using wparam = pointer;
|
||||
using lparam = pointer;
|
||||
using lresult = pointer;
|
||||
|
||||
typedef struct _LARGE_STRING
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG MaximumLength : 31;
|
||||
ULONG bAnsi : 1;
|
||||
pointer Buffer;
|
||||
} LARGE_STRING;
|
||||
|
||||
using hwnd = pointer;
|
||||
using hmenu = pointer;
|
||||
using hinstance = pointer;
|
||||
|
||||
struct msg
|
||||
{
|
||||
hwnd hwnd;
|
||||
UINT message;
|
||||
wparam wParam;
|
||||
lparam lParam;
|
||||
DWORD time;
|
||||
POINT pt;
|
||||
#ifdef _MAC
|
||||
DWORD lPrivate;
|
||||
#endif
|
||||
};
|
||||
Reference in New Issue
Block a user