2018-06-07 23:07:58 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-27 17:08:44 +01:00
|
|
|
#include <ddraw.h>
|
2018-06-07 23:07:58 +02:00
|
|
|
|
2021-06-20 11:03:55 +02:00
|
|
|
#include <Common/CompatWeakPtr.h>
|
2020-12-27 17:08:44 +01:00
|
|
|
#include <Common/CompatRef.h>
|
|
|
|
#include <Gdi/Region.h>
|
2018-06-07 23:07:58 +02:00
|
|
|
|
|
|
|
namespace Gdi
|
|
|
|
{
|
2020-12-27 17:08:44 +01:00
|
|
|
namespace Window
|
2018-06-07 23:07:58 +02:00
|
|
|
{
|
2022-01-08 14:17:21 +01:00
|
|
|
struct LayeredWindow
|
|
|
|
{
|
|
|
|
HWND hwnd;
|
|
|
|
RECT rect;
|
|
|
|
Gdi::Region region;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<LayeredWindow> getVisibleLayeredWindows();
|
2020-12-27 17:08:44 +01:00
|
|
|
void onStyleChanged(HWND hwnd, WPARAM wParam);
|
|
|
|
void onSyncPaint(HWND hwnd);
|
|
|
|
void present(CompatRef<IDirectDrawSurface7> dst, CompatRef<IDirectDrawSurface7> src,
|
|
|
|
CompatRef<IDirectDrawClipper> clipper);
|
|
|
|
void present(Gdi::Region excludeRegion);
|
|
|
|
void updateAll();
|
|
|
|
}
|
2018-06-07 23:07:58 +02:00
|
|
|
}
|