2025-09-28 21:15:34 +00:00
|
|
|
/* $Id$ */
|
2025-09-30 13:04:40 +00:00
|
|
|
/*!
|
|
|
|
|
* %file Mw/GDI.h
|
|
|
|
|
* %brief GDI backend
|
|
|
|
|
* %warning This is used internally
|
|
|
|
|
*/
|
2025-09-29 00:06:16 +00:00
|
|
|
#ifndef __MW_GDI_H__
|
|
|
|
|
#define __MW_GDI_H__
|
2025-09-28 21:15:34 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
#include <Mw/MachDep.h>
|
|
|
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
|
#include <Mw/LowLevel.h>
|
2025-09-28 21:15:34 +00:00
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
struct _MwLL {
|
2025-10-01 22:52:00 +00:00
|
|
|
HINSTANCE hInstance;
|
|
|
|
|
HWND hWnd;
|
|
|
|
|
HDC hDC;
|
|
|
|
|
void* user;
|
|
|
|
|
int copy_buffer;
|
2025-09-28 21:15:34 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
MwLLHandler handler;
|
2025-09-28 21:55:50 +00:00
|
|
|
};
|
2025-09-28 21:15:34 +00:00
|
|
|
|
2025-09-29 04:11:24 +00:00
|
|
|
struct _MwLLColor {
|
|
|
|
|
HBRUSH brush;
|
|
|
|
|
|
2025-09-28 21:55:50 +00:00
|
|
|
int red;
|
|
|
|
|
int green;
|
|
|
|
|
int blue;
|
|
|
|
|
};
|
2025-09-28 21:15:34 +00:00
|
|
|
|
2025-09-30 00:52:43 +00:00
|
|
|
struct _MwLLPixmap {
|
|
|
|
|
int width;
|
|
|
|
|
int height;
|
|
|
|
|
|
|
|
|
|
HBITMAP hBitmap;
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-28 21:15:34 +00:00
|
|
|
#endif
|