coastline 0.0.4
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1#ifndef COASTLINE_EAR_WINDOW_H
2#define COASTLINE_EAR_WINDOW_H
3
4#if TGR_PLATFORM == TGR_PLATFORM_WIN
5#include <windows.h>
6#else
7#include <stdint.h>
8
9#include <SDL3/SDL_video.h>
10
11#include "common/types.h"
12#endif
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
19#if TGR_PLATFORM == TGR_PLATFORM_WIN
24extern HWND g_hEarNotifyWindow;
25
31extern UINT g_uEarNotifyMessage;
32#else
38extern SDL_Window *g_hEarNotifyWindow;
39
46extern UINT g_uEarNotifyMessage;
47#endif
48
54extern char g_earProductName[];
56
63void __stdcall ShowEarMessage(const char *message);
64
65#if TGR_PLATFORM == TGR_PLATFORM_WIN
74BOOL __stdcall PostEarWindowMessage(WPARAM event, LPARAM notification);
75
83
92BOOL __stdcall EAR_DLL_AssignHwnd(HWND window);
93#else
102BOOL __stdcall PostEarWindowMessage(uintptr_t event, intptr_t notification);
103
109BOOL __stdcall EarAssignHwndExportWrapper(SDL_Window *window);
110
118BOOL __stdcall EAR_DLL_AssignHwnd(SDL_Window *window);
119#endif
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif /* COASTLINE_EAR_WINDOW_H */
The integer and floating-point types of the console, for headers shared with Windows.
BOOL __stdcall PostEarWindowMessage(WPARAM event, LPARAM notification)
Post an asynchronous playback notification to the assigned Windows window.
BOOL __stdcall EAR_DLL_AssignHwnd(HWND window)
Assign a valid window handle or search for the first enumerated window of this process.
void __stdcall ShowEarMessage(const char *message)
Show a message over the window of the game.
BOOL __stdcall EarAssignHwndExportWrapper(HWND window)
Forward notification-window assignment to EAR_DLL_AssignHwnd().
typedef BOOL
typedef HWND
typedef LPARAM
typedef UINT
typedef WPARAM