2021-07-09 13:28:39 +00:00
|
|
|
/*
|
|
|
|
* GDI definitions
|
|
|
|
*
|
|
|
|
* Copyright 1993 Alexandre Julliard
|
|
|
|
* Copyright 2021 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_GDI_PRIVATE_H
|
|
|
|
#define __WINE_GDI_PRIVATE_H
|
|
|
|
|
2021-07-17 14:56:39 +00:00
|
|
|
#include <stdarg.h>
|
2021-09-07 12:11:38 +00:00
|
|
|
#include <limits.h>
|
2021-07-17 14:56:39 +00:00
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "ntgdi.h"
|
|
|
|
|
2021-07-09 13:28:39 +00:00
|
|
|
void set_gdi_client_ptr( HGDIOBJ handle, void *ptr ) DECLSPEC_HIDDEN;
|
2021-09-03 12:59:47 +00:00
|
|
|
void *get_gdi_client_ptr( HGDIOBJ handle, DWORD type ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:16 +00:00
|
|
|
DC_ATTR *get_dc_attr( HDC hdc ) DECLSPEC_HIDDEN;
|
2021-09-07 12:11:15 +00:00
|
|
|
HGDIOBJ get_full_gdi_handle( HGDIOBJ handle ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:16 +00:00
|
|
|
void GDI_hdc_using_object( HGDIOBJ obj, HDC hdc,
|
|
|
|
void (*delete)( HDC hdc, HGDIOBJ handle )) DECLSPEC_HIDDEN;
|
|
|
|
void GDI_hdc_not_using_object( HGDIOBJ obj, HDC hdc ) DECLSPEC_HIDDEN;
|
2021-07-09 13:28:39 +00:00
|
|
|
|
2021-09-03 12:59:47 +00:00
|
|
|
static inline DWORD gdi_handle_type( HGDIOBJ obj )
|
2021-07-20 07:18:50 +00:00
|
|
|
{
|
|
|
|
unsigned int handle = HandleToULong( obj );
|
2021-09-03 12:59:47 +00:00
|
|
|
return handle & NTGDI_HANDLE_TYPE_MASK;
|
2021-07-20 07:18:50 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 12:11:28 +00:00
|
|
|
/* metafile defines */
|
|
|
|
|
|
|
|
#define META_EOF 0x0000
|
|
|
|
|
|
|
|
#define METAFILE_MEMORY 1
|
|
|
|
#define METAFILE_DISK 2
|
|
|
|
|
|
|
|
#define MFVERSION 0x300
|
|
|
|
|
|
|
|
/* Undocumented value for DIB's iUsage: Indicates a mono DIB w/o pal entries */
|
|
|
|
#define DIB_PAL_MONO 2
|
|
|
|
|
|
|
|
/* Format of comment record added by GetWinMetaFileBits */
|
|
|
|
#include <pshpack2.h>
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD comment_id; /* WMFC */
|
|
|
|
DWORD comment_type; /* Always 0x00000001 */
|
|
|
|
DWORD version; /* Always 0x00010000 */
|
|
|
|
WORD checksum;
|
|
|
|
DWORD flags; /* Always 0 */
|
|
|
|
DWORD num_chunks;
|
|
|
|
DWORD chunk_size;
|
|
|
|
DWORD remaining_size;
|
|
|
|
DWORD emf_size;
|
|
|
|
BYTE emf_data[1];
|
|
|
|
} emf_in_wmf_comment;
|
|
|
|
#include <poppack.h>
|
|
|
|
|
2021-07-17 15:00:55 +00:00
|
|
|
static inline BOOL is_meta_dc( HDC hdc )
|
|
|
|
{
|
2021-07-20 07:18:50 +00:00
|
|
|
return gdi_handle_type( hdc ) == NTGDI_OBJ_METADC;
|
2021-07-17 15:00:55 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 10:57:34 +00:00
|
|
|
extern BOOL METADC_Arc( HDC hdc, INT left, INT top, INT right, INT bottom,
|
|
|
|
INT xstart, INT ystart, INT xend, INT yend ) DECLSPEC_HIDDEN;
|
2021-08-12 10:00:25 +00:00
|
|
|
extern BOOL METADC_BitBlt( HDC hdc_dst, INT x_dst, INT y_dst, INT width, INT height,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, DWORD rop );
|
2021-07-17 15:01:18 +00:00
|
|
|
extern BOOL METADC_Chord( HDC hdc, INT left, INT top, INT right, INT bottom, INT xstart,
|
|
|
|
INT ystart, INT xend, INT yend ) DECLSPEC_HIDDEN;
|
2021-08-17 09:39:33 +00:00
|
|
|
extern BOOL METADC_DeleteDC( HDC hdc );
|
2021-07-20 07:19:33 +00:00
|
|
|
extern BOOL METADC_Ellipse( HDC hdc, INT left, INT top, INT right, INT bottom ) DECLSPEC_HIDDEN;
|
2021-08-04 09:21:13 +00:00
|
|
|
extern BOOL METADC_ExcludeClipRect( HDC hdc, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
2021-08-13 10:09:34 +00:00
|
|
|
extern BOOL METADC_ExtEscape( HDC hdc, INT escape, INT input_size, const void *input,
|
|
|
|
INT output_size, void *output ) DECLSPEC_HIDDEN;
|
2021-07-25 08:57:58 +00:00
|
|
|
extern BOOL METADC_ExtFloodFill( HDC hdc, INT x, INT y, COLORREF color,
|
|
|
|
UINT fill_type ) DECLSPEC_HIDDEN;
|
2021-08-04 09:22:02 +00:00
|
|
|
extern BOOL METADC_ExtSelectClipRgn( HDC hdc, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-23 08:49:42 +00:00
|
|
|
extern BOOL METADC_ExtTextOut( HDC hdc, INT x, INT y, UINT flags, const RECT *rect,
|
|
|
|
const WCHAR *str, UINT count, const INT *dx ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:11 +00:00
|
|
|
extern BOOL METADC_FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:56 +00:00
|
|
|
extern BOOL METADC_FrameRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-07-30 11:03:15 +00:00
|
|
|
extern INT METADC_GetDeviceCaps( HDC hdc, INT cap );
|
2021-08-04 09:20:21 +00:00
|
|
|
extern BOOL METADC_IntersectClipRect( HDC hdc, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
2021-07-25 08:57:12 +00:00
|
|
|
extern BOOL METADC_InvertRgn( HDC hdc, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2021-07-17 15:00:55 +00:00
|
|
|
extern BOOL METADC_LineTo( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-07-17 15:20:11 +00:00
|
|
|
extern BOOL METADC_MoveTo( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-04 09:20:53 +00:00
|
|
|
extern BOOL METADC_OffsetClipRgn( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:44 +00:00
|
|
|
extern BOOL METADC_OffsetViewportOrgEx( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:45 +00:00
|
|
|
extern BOOL METADC_OffsetWindowOrgEx( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:36 +00:00
|
|
|
extern BOOL METADC_PaintRgn( HDC hdc, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2021-08-03 10:56:49 +00:00
|
|
|
extern BOOL METADC_PatBlt( HDC hdc, INT left, INT top, INT width, INT height, DWORD rop );
|
2021-07-17 15:01:18 +00:00
|
|
|
extern BOOL METADC_Pie( HDC hdc, INT left, INT top, INT right, INT bottom,
|
|
|
|
INT xstart, INT ystart, INT xend, INT yend ) DECLSPEC_HIDDEN;
|
2021-07-22 09:25:17 +00:00
|
|
|
extern BOOL METADC_PolyPolygon( HDC hdc, const POINT *points, const INT *counts,
|
|
|
|
UINT polygons ) DECLSPEC_HIDDEN;
|
2021-07-22 09:26:00 +00:00
|
|
|
extern BOOL METADC_Polygon( HDC hdc, const POINT *points, INT count ) DECLSPEC_HIDDEN;
|
2021-07-22 09:26:36 +00:00
|
|
|
extern BOOL METADC_Polyline( HDC hdc, const POINT *points,INT count) DECLSPEC_HIDDEN;
|
2021-08-09 09:31:13 +00:00
|
|
|
extern BOOL METADC_RealizePalette( HDC hdc ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:51 +00:00
|
|
|
extern BOOL METADC_Rectangle( HDC hdc, INT left, INT top, INT right, INT bottom) DECLSPEC_HIDDEN;
|
2021-08-17 09:37:39 +00:00
|
|
|
extern BOOL METADC_RestoreDC( HDC hdc, INT level ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:41 +00:00
|
|
|
extern BOOL METADC_RoundRect( HDC hdc, INT left, INT top, INT right, INT bottom,
|
|
|
|
INT ell_width, INT ell_height ) DECLSPEC_HIDDEN;
|
2021-07-30 11:01:56 +00:00
|
|
|
extern BOOL METADC_SaveDC( HDC hdc ) DECLSPEC_HIDDEN;
|
2021-08-06 14:59:08 +00:00
|
|
|
extern BOOL METADC_ScaleViewportExtEx( HDC hdc, INT x_num, INT x_denom, INT y_num,
|
|
|
|
INT y_denom ) DECLSPEC_HIDDEN;
|
2021-08-06 14:59:09 +00:00
|
|
|
extern BOOL METADC_ScaleWindowExtEx( HDC hdc, INT x_num, INT x_denom, INT y_num,
|
|
|
|
INT y_denom ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:32 +00:00
|
|
|
extern HGDIOBJ METADC_SelectObject( HDC hdc, HGDIOBJ obj ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:56 +00:00
|
|
|
extern BOOL METADC_SelectPalette( HDC hdc, HPALETTE palette ) DECLSPEC_HIDDEN;
|
2021-08-16 08:28:29 +00:00
|
|
|
extern BOOL METADC_SetBkColor( HDC hdc, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-07-26 21:30:20 +00:00
|
|
|
extern BOOL METADC_SetBkMode( HDC hdc, INT mode ) DECLSPEC_HIDDEN;
|
2021-08-13 10:09:03 +00:00
|
|
|
extern INT METADC_SetDIBitsToDevice( HDC hdc, INT x_dest, INT y_dest, DWORD width, DWORD height,
|
|
|
|
INT x_src, INT y_src, UINT startscan, UINT lines,
|
|
|
|
const void *bits, const BITMAPINFO *info,
|
|
|
|
UINT coloruse ) DECLSPEC_HIDDEN;
|
2021-08-05 09:26:55 +00:00
|
|
|
extern BOOL METADC_SetLayout( HDC hdc, DWORD layout ) DECLSPEC_HIDDEN;
|
2021-08-05 09:26:28 +00:00
|
|
|
extern BOOL METADC_SetTextCharacterExtra( HDC hdc, INT extra ) DECLSPEC_HIDDEN;
|
2021-08-05 09:25:57 +00:00
|
|
|
extern BOOL METADC_SetMapMode( HDC hdc, INT mode ) DECLSPEC_HIDDEN;
|
2021-08-05 09:26:43 +00:00
|
|
|
extern BOOL METADC_SetMapperFlags( HDC hdc, DWORD flags ) DECLSPEC_HIDDEN;
|
2021-07-23 08:51:16 +00:00
|
|
|
extern BOOL METADC_SetPixel( HDC hdc, INT x, INT y, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-07-29 12:22:01 +00:00
|
|
|
extern BOOL METADC_SetPolyFillMode( HDC hdc, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-29 12:21:59 +00:00
|
|
|
extern BOOL METADC_SetRelAbs( HDC hdc, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-28 09:39:15 +00:00
|
|
|
extern BOOL METADC_SetROP2( HDC hdc, INT rop ) DECLSPEC_HIDDEN;
|
2021-07-29 12:22:03 +00:00
|
|
|
extern BOOL METADC_SetStretchBltMode( HDC hdc, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-26 21:29:36 +00:00
|
|
|
extern BOOL METADC_SetTextAlign( HDC hdc, UINT align ) DECLSPEC_HIDDEN;
|
2021-08-16 08:28:42 +00:00
|
|
|
extern BOOL METADC_SetTextColor( HDC hdc, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-08-05 09:25:19 +00:00
|
|
|
extern BOOL METADC_SetTextJustification( HDC hdc, INT extra, INT breaks ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:40 +00:00
|
|
|
extern BOOL METADC_SetViewportExtEx( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:41 +00:00
|
|
|
extern BOOL METADC_SetViewportOrgEx( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:42 +00:00
|
|
|
extern BOOL METADC_SetWindowExtEx( HDC hdc, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:43 +00:00
|
|
|
extern BOOL METADC_SetWindowOrgEx( HDC, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-12 10:00:13 +00:00
|
|
|
extern BOOL METADC_StretchBlt( HDC hdc_dst, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, INT width_src, INT height_src,
|
|
|
|
DWORD rop );
|
2021-08-13 10:09:16 +00:00
|
|
|
extern INT METADC_StretchDIBits( HDC hdc, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
INT x_src, INT y_src, INT width_src, INT height_src,
|
|
|
|
const void *bits, const BITMAPINFO *info, UINT coloruse,
|
|
|
|
DWORD rop ) DECLSPEC_HIDDEN;
|
2021-09-07 12:11:28 +00:00
|
|
|
|
|
|
|
extern HMETAFILE MF_Create_HMETAFILE(METAHEADER *mh) DECLSPEC_HIDDEN;
|
|
|
|
|
2021-07-20 07:18:50 +00:00
|
|
|
/* enhanced metafiles */
|
2021-09-07 12:11:28 +00:00
|
|
|
|
|
|
|
#define WMFC_MAGIC 0x43464d57
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
EMR emr;
|
|
|
|
INT nBreakExtra;
|
|
|
|
INT nBreakCount;
|
|
|
|
} EMRSETTEXTJUSTIFICATION, *PEMRSETTEXTJUSTIFICATION;
|
|
|
|
|
2021-07-23 08:50:37 +00:00
|
|
|
extern BOOL EMFDC_AbortPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-12 10:00:31 +00:00
|
|
|
extern BOOL EMFDC_AlphaBlend( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, INT width_src, INT height_src,
|
|
|
|
BLENDFUNCTION blend_function );
|
2021-07-20 07:20:02 +00:00
|
|
|
extern BOOL EMFDC_AngleArc( DC_ATTR *dc_attr, INT x, INT y, DWORD radius, FLOAT start,
|
|
|
|
FLOAT sweep ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:24 +00:00
|
|
|
extern BOOL EMFDC_ArcChordPie( DC_ATTR *dc_attr, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend, DWORD type ) DECLSPEC_HIDDEN;
|
2021-07-23 08:50:37 +00:00
|
|
|
extern BOOL EMFDC_BeginPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-12 10:00:25 +00:00
|
|
|
extern BOOL EMFDC_BitBlt( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT width, INT height,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, DWORD rop );
|
2021-07-23 08:50:13 +00:00
|
|
|
extern BOOL EMFDC_CloseFigure( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-23 11:51:23 +00:00
|
|
|
extern void EMFDC_DeleteDC( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:33 +00:00
|
|
|
extern BOOL EMFDC_Ellipse( DC_ATTR *dc_attr, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
2021-07-23 08:50:37 +00:00
|
|
|
extern BOOL EMFDC_EndPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-04 09:21:13 +00:00
|
|
|
extern BOOL EMFDC_ExcludeClipRect( DC_ATTR *dc_attr, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
2021-07-25 08:57:58 +00:00
|
|
|
extern BOOL EMFDC_ExtFloodFill( DC_ATTR *dc_attr, INT x, INT y, COLORREF color,
|
|
|
|
UINT fill_type ) DECLSPEC_HIDDEN;
|
2021-08-04 09:22:02 +00:00
|
|
|
extern BOOL EMFDC_ExtSelectClipRgn( DC_ATTR *dc_attr, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-23 08:49:42 +00:00
|
|
|
extern BOOL EMFDC_ExtTextOut( DC_ATTR *dc_attr, INT x, INT y, UINT flags, const RECT *rect,
|
|
|
|
const WCHAR *str, UINT count, const INT *dx ) DECLSPEC_HIDDEN;
|
2021-08-18 09:58:26 +00:00
|
|
|
extern BOOL EMFDC_FillPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:11 +00:00
|
|
|
extern BOOL EMFDC_FillRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN;
|
2021-08-18 09:59:15 +00:00
|
|
|
extern BOOL EMFDC_FlattenPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:56 +00:00
|
|
|
extern BOOL EMFDC_FrameRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush, INT width,
|
|
|
|
INT height ) DECLSPEC_HIDDEN;
|
2021-07-25 08:58:49 +00:00
|
|
|
extern BOOL EMFDC_GradientFill( DC_ATTR *dc_attr, TRIVERTEX *vert_array, ULONG nvert,
|
|
|
|
void *grad_array, ULONG ngrad, ULONG mode ) DECLSPEC_HIDDEN;
|
2021-08-04 09:20:21 +00:00
|
|
|
extern BOOL EMFDC_IntersectClipRect( DC_ATTR *dc_attr, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
2021-07-25 08:57:12 +00:00
|
|
|
extern BOOL EMFDC_InvertRgn( DC_ATTR *dc_attr, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2021-07-20 07:18:50 +00:00
|
|
|
extern BOOL EMFDC_LineTo( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-09-09 12:00:56 +00:00
|
|
|
extern BOOL EMFDC_MaskBlt( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, HBITMAP mask,
|
|
|
|
INT x_mask, INT y_mask, DWORD rop ) DECLSPEC_HIDDEN;
|
2021-08-13 10:07:48 +00:00
|
|
|
extern BOOL EMFDC_ModifyWorldTransform( DC_ATTR *dc_attr, const XFORM *xform,
|
|
|
|
DWORD mode ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:05 +00:00
|
|
|
extern BOOL EMFDC_MoveTo( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-04 09:20:53 +00:00
|
|
|
extern BOOL EMFDC_OffsetClipRgn( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-07-25 08:56:36 +00:00
|
|
|
extern BOOL EMFDC_PaintRgn( DC_ATTR *dc_attr, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2021-08-03 10:56:49 +00:00
|
|
|
extern BOOL EMFDC_PatBlt( DC_ATTR *dc_attr, INT left, INT top, INT width, INT height, DWORD rop );
|
2021-09-09 12:01:02 +00:00
|
|
|
extern BOOL EMFDC_PlgBlt( DC_ATTR *dc_attr, const POINT *point, HDC hdc_src, INT x_src, INT y_src,
|
|
|
|
INT width, INT height, HBITMAP mask, INT x_mask, INT y_mask ) DECLSPEC_HIDDEN;
|
2021-07-22 09:27:07 +00:00
|
|
|
extern BOOL EMFDC_PolyBezier( DC_ATTR *dc_attr, const POINT *points, DWORD count ) DECLSPEC_HIDDEN;
|
2021-07-22 09:27:36 +00:00
|
|
|
extern BOOL EMFDC_PolyBezierTo( DC_ATTR *dc_attr, const POINT *points, DWORD count ) DECLSPEC_HIDDEN;
|
2021-07-23 08:48:48 +00:00
|
|
|
extern BOOL EMFDC_PolyDraw( DC_ATTR *dc_attr, const POINT *points, const BYTE *types,
|
|
|
|
DWORD count ) DECLSPEC_HIDDEN;
|
2021-07-22 09:26:15 +00:00
|
|
|
extern BOOL EMFDC_PolyPolyline( DC_ATTR *dc_attr, const POINT *points, const DWORD *counts,
|
|
|
|
DWORD polys ) DECLSPEC_HIDDEN;
|
2021-07-22 09:25:17 +00:00
|
|
|
extern BOOL EMFDC_PolyPolygon( DC_ATTR *dc_attr, const POINT *points, const INT *counts,
|
|
|
|
UINT polys ) DECLSPEC_HIDDEN;
|
2021-07-22 09:26:00 +00:00
|
|
|
extern BOOL EMFDC_Polygon( DC_ATTR *dc_attr, const POINT *points, INT count ) DECLSPEC_HIDDEN;
|
2021-07-22 09:26:36 +00:00
|
|
|
extern BOOL EMFDC_Polyline( DC_ATTR *dc_attr, const POINT *points, INT count) DECLSPEC_HIDDEN;
|
2021-07-22 09:27:20 +00:00
|
|
|
extern BOOL EMFDC_PolylineTo( DC_ATTR *dc_attr, const POINT *points, INT count ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:51 +00:00
|
|
|
extern BOOL EMFDC_Rectangle( DC_ATTR *dc_attr, INT left, INT top, INT right,
|
|
|
|
INT bottom) DECLSPEC_HIDDEN;
|
2021-08-17 09:37:39 +00:00
|
|
|
extern BOOL EMFDC_RestoreDC( DC_ATTR *dc_attr, INT level ) DECLSPEC_HIDDEN;
|
2021-07-20 07:19:41 +00:00
|
|
|
extern BOOL EMFDC_RoundRect( DC_ATTR *dc_attr, INT left, INT top, INT right, INT bottom,
|
|
|
|
INT ell_width, INT ell_height ) DECLSPEC_HIDDEN;
|
2021-07-30 11:01:56 +00:00
|
|
|
extern BOOL EMFDC_SaveDC( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-06 14:59:08 +00:00
|
|
|
extern BOOL EMFDC_ScaleViewportExtEx( DC_ATTR *dc_attr, INT x_num, INT x_denom, INT y_num,
|
|
|
|
INT y_denom ) DECLSPEC_HIDDEN;
|
2021-08-06 14:59:09 +00:00
|
|
|
extern BOOL EMFDC_ScaleWindowExtEx( DC_ATTR *dc_attr, INT x_num, INT x_denom, INT y_num,
|
|
|
|
INT y_denom ) DECLSPEC_HIDDEN;
|
2021-08-18 09:58:54 +00:00
|
|
|
extern BOOL EMFDC_SelectClipPath( DC_ATTR *dc_attr, INT mode ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:44 +00:00
|
|
|
extern BOOL EMFDC_SelectObject( DC_ATTR *dc_attr, HGDIOBJ obj ) DECLSPEC_HIDDEN;
|
2021-08-09 09:30:56 +00:00
|
|
|
extern BOOL EMFDC_SelectPalette( DC_ATTR *dc_attr, HPALETTE palette ) DECLSPEC_HIDDEN;
|
2021-07-29 12:21:56 +00:00
|
|
|
extern BOOL EMFDC_SetArcDirection( DC_ATTR *dc_attr, INT dir ) DECLSPEC_HIDDEN;
|
2021-08-16 08:28:29 +00:00
|
|
|
extern BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-07-26 21:30:20 +00:00
|
|
|
extern BOOL EMFDC_SetBkMode( DC_ATTR *dc_attr, INT mode ) DECLSPEC_HIDDEN;
|
2021-08-19 08:24:44 +00:00
|
|
|
extern BOOL EMFDC_SetDCBrushColor( DC_ATTR *dc_attr, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-08-19 08:24:55 +00:00
|
|
|
extern BOOL EMFDC_SetDCPenColor( DC_ATTR *dc_attr, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-08-13 10:09:03 +00:00
|
|
|
extern INT EMFDC_SetDIBitsToDevice( DC_ATTR *dc_attr, INT x_dest, INT y_dest, DWORD width,
|
|
|
|
DWORD height, INT x_src, INT y_src, UINT startscan,
|
|
|
|
UINT lines, const void *bits, const BITMAPINFO *info,
|
|
|
|
UINT coloruse ) DECLSPEC_HIDDEN;
|
2021-08-05 09:26:55 +00:00
|
|
|
extern BOOL EMFDC_SetLayout( DC_ATTR *dc_attr, DWORD layout ) DECLSPEC_HIDDEN;
|
2021-08-05 09:25:57 +00:00
|
|
|
extern BOOL EMFDC_SetMapMode( DC_ATTR *dc_attr, INT mode ) DECLSPEC_HIDDEN;
|
2021-08-05 09:26:43 +00:00
|
|
|
extern BOOL EMFDC_SetMapperFlags( DC_ATTR *dc_attr, DWORD flags ) DECLSPEC_HIDDEN;
|
2021-07-23 08:51:16 +00:00
|
|
|
extern BOOL EMFDC_SetPixel( DC_ATTR *dc_attr, INT x, INT y, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-07-29 12:22:01 +00:00
|
|
|
extern BOOL EMFDC_SetPolyFillMode( DC_ATTR *dc_attr, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-28 09:39:15 +00:00
|
|
|
extern BOOL EMFDC_SetROP2( DC_ATTR *dc_attr, INT rop ) DECLSPEC_HIDDEN;
|
2021-07-29 12:22:03 +00:00
|
|
|
extern BOOL EMFDC_SetStretchBltMode( DC_ATTR *dc_attr, INT mode ) DECLSPEC_HIDDEN;
|
2021-07-26 21:29:36 +00:00
|
|
|
extern BOOL EMFDC_SetTextAlign( DC_ATTR *dc_attr, UINT align ) DECLSPEC_HIDDEN;
|
2021-08-16 08:28:42 +00:00
|
|
|
extern BOOL EMFDC_SetTextColor( DC_ATTR *dc_attr, COLORREF color ) DECLSPEC_HIDDEN;
|
2021-08-05 09:25:19 +00:00
|
|
|
extern BOOL EMFDC_SetTextJustification( DC_ATTR *dc_attr, INT extra, INT breaks ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:40 +00:00
|
|
|
extern BOOL EMFDC_SetViewportExtEx( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:41 +00:00
|
|
|
extern BOOL EMFDC_SetViewportOrgEx( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:42 +00:00
|
|
|
extern BOOL EMFDC_SetWindowExtEx( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-10 06:37:43 +00:00
|
|
|
extern BOOL EMFDC_SetWindowOrgEx( DC_ATTR *dc_attr, INT x, INT y ) DECLSPEC_HIDDEN;
|
2021-08-13 10:08:23 +00:00
|
|
|
extern BOOL EMFDC_SetWorldTransform( DC_ATTR *dc_attr, const XFORM *xform ) DECLSPEC_HIDDEN;
|
2021-08-12 10:00:13 +00:00
|
|
|
extern BOOL EMFDC_StretchBlt( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, INT width_src, INT height_src,
|
|
|
|
DWORD rop );
|
2021-08-13 10:09:16 +00:00
|
|
|
extern BOOL EMFDC_StretchDIBits( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT width_dst,
|
|
|
|
INT height_dst, INT x_src, INT y_src, INT width_src,
|
|
|
|
INT height_src, const void *bits, const BITMAPINFO *info,
|
|
|
|
UINT coloruse, DWORD rop ) DECLSPEC_HIDDEN;
|
2021-08-19 08:23:15 +00:00
|
|
|
extern BOOL EMFDC_StrokeAndFillPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-08-19 08:23:24 +00:00
|
|
|
extern BOOL EMFDC_StrokePath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-09-10 12:27:39 +00:00
|
|
|
extern BOOL EMFDC_TransparentBlt( DC_ATTR *dc_attr, int x_dst, int y_dst, int width_dst,
|
|
|
|
int height_dst, HDC hdc_src, int x_src, int y_src, int width_src,
|
|
|
|
int height_src, UINT color ) DECLSPEC_HIDDEN;
|
2021-08-19 08:24:21 +00:00
|
|
|
extern BOOL EMFDC_WidenPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
|
2021-07-20 07:18:50 +00:00
|
|
|
|
2021-09-07 12:11:28 +00:00
|
|
|
extern HENHMETAFILE EMF_Create_HENHMETAFILE( ENHMETAHEADER *emh, DWORD filesize,
|
|
|
|
BOOL on_disk ) DECLSPEC_HIDDEN;
|
|
|
|
|
2021-09-07 12:11:38 +00:00
|
|
|
static inline int get_dib_stride( int width, int bpp )
|
|
|
|
{
|
|
|
|
return ((width * bpp + 31) >> 3) & ~3;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* only for use on sanitized BITMAPINFO structures */
|
|
|
|
static inline int get_dib_info_size( const BITMAPINFO *info, UINT coloruse )
|
|
|
|
{
|
|
|
|
if (info->bmiHeader.biCompression == BI_BITFIELDS)
|
|
|
|
return sizeof(BITMAPINFOHEADER) + 3 * sizeof(DWORD);
|
|
|
|
if (coloruse == DIB_PAL_COLORS)
|
|
|
|
return sizeof(BITMAPINFOHEADER) + info->bmiHeader.biClrUsed * sizeof(WORD);
|
|
|
|
return FIELD_OFFSET( BITMAPINFO, bmiColors[info->bmiHeader.biClrUsed] );
|
|
|
|
}
|
|
|
|
|
2021-09-20 11:13:47 +00:00
|
|
|
extern HMODULE gdi32_module DECLSPEC_HIDDEN;
|
|
|
|
|
2021-07-09 13:28:39 +00:00
|
|
|
#endif /* __WINE_GDI_PRIVATE_H */
|