- allow to save/restore some properties into the registry (like font,
[wine/gsoc_dplay.git] / programs / wineconsole / winecon_user.h
blob944ec571c2e337a7c8773ddd8e978f2ecb2cc617
1 /*
2 * an application for displaying Win32 console
3 * USER32 backend
5 * Copyright 2001 Eric Pouech
6 */
8 #include <winbase.h>
9 #include <wingdi.h>
10 #include <winuser.h>
11 #include "winecon_private.h"
13 struct inner_data_user {
14 /* the following fields are only user by the USER backend (should be hidden in user) */
15 HWND hWnd; /* handle to windows for rendering */
16 HFONT hFont; /* font used for rendering, usually fixed */
17 HDC hMemDC; /* memory DC holding the bitmap below */
18 HBITMAP hBitmap; /* bitmap of display window content */
19 HMENU hPopMenu; /* popup menu triggered by right mouse click */
21 HBITMAP cursor_bitmap; /* bitmap used for the caret */
22 BOOL hasSelection; /* a rectangular mouse selection has taken place */
23 COORD selectPt1; /* start (and end) point of a mouse selection */
24 COORD selectPt2;
27 #define PRIVATE(data) ((struct inner_data_user*)((data)->private))
29 /* from user.c */
30 extern COLORREF WCUSER_ColorMap[16];
31 extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL);
32 extern BOOL WCUSER_SetFont(struct inner_data* data, const LOGFONT* font);
33 extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf);
34 extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data, const TEXTMETRIC* tm);
35 extern BOOL WCUSER_AreFontsEqual(const struct config_data* config, const LOGFONT* lf);
36 extern void WCUSER_CopyFont(struct config_data* config, const LOGFONT* lf);