Fixed V_DECIMAL macro to reflect where the decVal member is actually
[wine/testsucceed.git] / programs / wineconsole / winecon_user.h
blobd62e6629c10047c9dd1fa2c7dcfc3f640b05fc08
1 /*
2 * an application for displaying Win32 console
3 * USER32 backend
5 * Copyright 2001 Eric Pouech
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include <winbase.h>
23 #include <wingdi.h>
24 #include <winuser.h>
25 #include "winecon_private.h"
27 struct inner_data_user {
28 /* the following fields are only user by the USER backend (should be hidden in user) */
29 HWND hWnd; /* handle to windows for rendering */
30 HFONT hFont; /* font used for rendering, usually fixed */
31 HDC hMemDC; /* memory DC holding the bitmap below */
32 HBITMAP hBitmap; /* bitmap of display window content */
33 HMENU hPopMenu; /* popup menu triggered by right mouse click */
35 HBITMAP cursor_bitmap; /* bitmap used for the caret */
36 BOOL has_selection; /* an area is being selected (selectPt[12] are edges of the rect) */
37 COORD selectPt1; /* start (and end) point of a mouse selection */
38 COORD selectPt2;
41 #define PRIVATE(data) ((struct inner_data_user*)((data)->private))
43 /* from user.c */
44 extern COLORREF WCUSER_ColorMap[16];
45 extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL);
46 extern BOOL WCUSER_SetFont(struct inner_data* data, const LOGFONT* font);
47 extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf);
48 extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data,
49 const TEXTMETRIC* tm, DWORD fontType);
50 extern BOOL WCUSER_AreFontsEqual(const struct config_data* config,
51 const LOGFONT* lf);
52 extern HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd, const LOGFONT* lf);
53 extern void WCUSER_FillLogFont(LOGFONT* lf, const WCHAR* name,
54 UINT height, UINT weight);
56 extern void WCUSER_DumpLogFont(const char* pfx, const LOGFONT* lf, DWORD ft);
57 extern void WCUSER_DumpTextMetric(const TEXTMETRIC* tm, DWORD ft);