2 * an application for displaying Win32 console
5 * Copyright 2001 Eric Pouech
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 */
27 #define PRIVATE(data) ((struct inner_data_user*)((data)->private))
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
);