Blame src/internal/gdi/gdi_window.h
|
|
388229 |
#ifndef GDI_WINDOW_H
|
|
|
388229 |
#define GDI_WINDOW_H
|
|
|
388229 |
|
|
|
388229 |
#include <psxtypes/psxtypes.h>
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
#define GDI_GWL_USERDATA (-21)
|
|
|
388229 |
#define GDI_GWL_EXSTYLE (-20)
|
|
|
388229 |
#define GDI_GWL_STYLE (-16)
|
|
|
388229 |
#define GDI_GWL_ID (-12)
|
|
|
388229 |
#define GDI_GWL_HINSTANCE (-6)
|
|
|
388229 |
#define GDI_GWL_WNDPROC (-4)
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef struct _gdi_point {
|
|
|
388229 |
int32_t x;
|
|
|
388229 |
int32_t y;
|
|
|
388229 |
} gdi_point;
|
|
|
388229 |
|
|
|
388229 |
typedef struct _gdi_rect {
|
|
|
388229 |
int32_t left;
|
|
|
388229 |
int32_t top;
|
|
|
388229 |
int32_t right;
|
|
|
388229 |
int32_t bottom;
|
|
|
388229 |
} gdi_rect;
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef struct _gdi_msg {
|
|
|
388229 |
void * hwnd;
|
|
|
388229 |
uint32_t message;
|
|
|
388229 |
uintptr_t wparam;
|
|
|
388229 |
intptr_t lparam;
|
|
|
388229 |
uint32_t time;
|
|
|
388229 |
gdi_point pt;
|
|
|
388229 |
} gdi_msg;
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_peek_message(
|
|
|
388229 |
gdi_msg * msg,
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
uint32_t msg_filter_min,
|
|
|
388229 |
uint32_t msg_filter_max,
|
|
|
388229 |
uint32_t remove_msg);
|
|
|
388229 |
|
|
|
388229 |
typedef gdi_peek_message gdi_peek_message_ansi;
|
|
|
388229 |
typedef gdi_peek_message gdi_peek_message_utf16;
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_get_system_metrics(
|
|
|
388229 |
int32_t index);
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_is_iconic(
|
|
|
388229 |
void * hwnd);
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_is_zoomed(
|
|
|
388229 |
void * hwnd);
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_move_window(
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
int32_t x,
|
|
|
388229 |
int32_t y,
|
|
|
388229 |
int32_t nwindth,
|
|
|
388229 |
int32_t nheight,
|
|
|
388229 |
int32_t repaint);
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_set_window_pos(
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
void * hwnd_insert_after,
|
|
|
388229 |
int32_t x,
|
|
|
388229 |
int32_t y,
|
|
|
388229 |
int32_t cx,
|
|
|
388229 |
int32_t cy,
|
|
|
388229 |
uint32_t flags);
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_get_window_rect(
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
gdi_rect * rect);
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_get_client_rect(
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
gdi_rect * rect);
|
|
|
388229 |
|
|
|
388229 |
typedef void * __stdcall gdi_get_desktop_window(void);
|
|
|
388229 |
|
|
|
388229 |
|
|
|
388229 |
typedef int32_t __stdcall gdi_set_window_long_ptr(
|
|
|
388229 |
void * hwnd,
|
|
|
388229 |
int32_t index,
|
|
|
388229 |
intptr_t new_long);
|
|
|
388229 |
|
|
|
388229 |
typedef gdi_set_window_long_ptr gdi_set_window_long_ptr_ansi;
|
|
|
388229 |
typedef gdi_set_window_long_ptr gdi_set_window_long_ptr_utf16;
|
|
|
388229 |
|
|
|
388229 |
#endif
|