2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: mfutils.h
|
|
|
|
// Purpose: Metafile utilities: reading a placeable metafile independently
|
|
|
|
// of Windows.
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-06-09 12:42:34 -04:00
|
|
|
// Licence: wxWindows licence
|
2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _MFUTILS_H_
|
|
|
|
#define _MFUTILS_H_
|
|
|
|
|
2003-07-25 17:20:57 -04:00
|
|
|
|
2005-10-06 14:17:23 -04:00
|
|
|
#include "wx/metafile.h"
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
#ifndef GetRValue
|
2004-06-09 12:42:34 -04:00
|
|
|
#define GetRValue(rgb) ((unsigned char)(rgb))
|
|
|
|
#define GetGValue(rgb) ((unsigned char)(((int)(rgb)) >> 8))
|
|
|
|
#define GetBValue(rgb) ((unsigned char)((rgb)>>16))
|
2000-03-03 06:25:10 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Metafile Functions */
|
2003-08-14 10:32:07 -04:00
|
|
|
// some compilers have them in their include files
|
|
|
|
|
|
|
|
#ifndef META_SETBKCOLOR
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETBKCOLOR 0x0201
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETBKMODE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETBKMODE 0x0102
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETMAPMODE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETMAPMODE 0x0103
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETROP2
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETROP2 0x0104
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETRELABS
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETRELABS 0x0105
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETPOLYFILLMODE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETPOLYFILLMODE 0x0106
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETSTRETCHBLTMODE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETSTRETCHBLTMODE 0x0107
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETTEXTCHAREXTRA
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETTEXTCHAREXTRA 0x0108
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETTEXTCOLOR
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETTEXTCOLOR 0x0209
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETTEXTJUSTIFICATION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETTEXTJUSTIFICATION 0x020A
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETWINDOWORG
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETWINDOWORG 0x020B
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETWINDOWEXT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETWINDOWEXT 0x020C
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETVIEWPORTORG
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETVIEWPORTORG 0x020D
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETVIEWPORTEXT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETVIEWPORTEXT 0x020E
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_OFFSETWINDOWORG
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_OFFSETWINDOWORG 0x020F
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SCALEWINDOWEXT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SCALEWINDOWEXT 0x0410
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_OFFSETVIEWPORTORG
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_OFFSETVIEWPORTORG 0x0211
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SCALEVIEWPORTEXT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SCALEVIEWPORTEXT 0x0412
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_LINETO
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_LINETO 0x0213
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_MOVETO
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_MOVETO 0x0214
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_EXCLUDECLIPRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_EXCLUDECLIPRECT 0x0415
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_INTERSECTCLIPRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_INTERSECTCLIPRECT 0x0416
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ARC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ARC 0x0817
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ELLIPSE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ELLIPSE 0x0418
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_FLOODFILL
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_FLOODFILL 0x0419
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_PIE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_PIE 0x081A
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_RECTANGLE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_RECTANGLE 0x041B
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ROUNDRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ROUNDRECT 0x061C
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_PATBLT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_PATBLT 0x061D
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SAVEDC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SAVEDC 0x001E
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETPIXEL
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETPIXEL 0x041F
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_OFFSETCLIPRGN
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_OFFSETCLIPRGN 0x0220
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_TEXTOUT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_TEXTOUT 0x0521
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_BITBLT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_BITBLT 0x0922
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_STRETCHBLT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_STRETCHBLT 0x0B23
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_POLYGON
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_POLYGON 0x0324
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_POLYLINE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_POLYLINE 0x0325
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ESCAPE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ESCAPE 0x0626
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_RESTOREDC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_RESTOREDC 0x0127
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_FILLREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_FILLREGION 0x0228
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_FRAMEREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_FRAMEREGION 0x0429
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_INVERTREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_INVERTREGION 0x012A
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_PAINTREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_PAINTREGION 0x012B
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SELECTCLIPREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SELECTCLIPREGION 0x012C
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SELECTOBJECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SELECTOBJECT 0x012D
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETTEXTALIGN
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETTEXTALIGN 0x012E
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_DRAWTEXT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_DRAWTEXT 0x062F
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_CHORD
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CHORD 0x0830
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETMAPPERFLAGS
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETMAPPERFLAGS 0x0231
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_EXTTEXTOUT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_EXTTEXTOUT 0x0a32
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETDIBTODEV
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETDIBTODEV 0x0d33
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SELECTPALETTE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SELECTPALETTE 0x0234
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_REALIZEPALETTE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_REALIZEPALETTE 0x0035
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ANIMATEPALETTE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ANIMATEPALETTE 0x0436
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_SETPALENTRIES
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_SETPALENTRIES 0x0037
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_POLYPOLYGON
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_POLYPOLYGON 0x0538
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_RESIZEPALETTE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_RESIZEPALETTE 0x0139
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_DIBBITBLT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_DIBBITBLT 0x0940
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_DIBSTRETCHBLT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_DIBSTRETCHBLT 0x0b41
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_DIBCREATEPATTERNBRUSH
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_DIBCREATEPATTERNBRUSH 0x0142
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_STRETCHDIB
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_STRETCHDIB 0x0f43
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_EXTFLOODFILL
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_EXTFLOODFILL 0x0548
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_RESETDC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_RESETDC 0x014C
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_STARTDOC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_STARTDOC 0x014D
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_STARTPAGE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_STARTPAGE 0x004F
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ENDPAGE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ENDPAGE 0x0050
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ABORTDOC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ABORTDOC 0x0052
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_ENDDOC
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_ENDDOC 0x005E
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_DELETEOBJECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_DELETEOBJECT 0x01f0
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef META_CREATEPALETTE
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEPALETTE 0x00f7
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEBRUSH
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEBRUSH 0x00F8
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEPATTERNBRUSH
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEPATTERNBRUSH 0x01F9
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEPENINDIRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEPENINDIRECT 0x02FA
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEFONTINDIRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEFONTINDIRECT 0x02FB
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEBRUSHINDIRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEBRUSHINDIRECT 0x02FC
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEBITMAPINDIRECT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEBITMAPINDIRECT 0x02FD
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEBITMAP
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEBITMAP 0x06FE
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef META_CREATEREGION
|
2004-06-09 12:42:34 -04:00
|
|
|
#define META_CREATEREGION 0x06FF
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/* Background Modes */
|
2003-08-14 10:32:07 -04:00
|
|
|
#ifndef TRANSPARENT
|
|
|
|
#define TRANSPARENT 1
|
|
|
|
#endif
|
|
|
|
#ifndef OPAQUE
|
|
|
|
#define OPAQUE 2
|
|
|
|
#endif
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/* Pen Styles */
|
2003-08-14 10:32:07 -04:00
|
|
|
#ifndef PS_SOLID
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_SOLID 0
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_DASH
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_DASH 1
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_DOT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_DOT 2
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_DASHDOT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_DASHDOT 3
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_DASHDOTDOT
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_DASHDOTDOT 4
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_NULL
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_NULL 5
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef PS_INSIDEFRAME
|
2004-06-09 12:42:34 -04:00
|
|
|
#define PS_INSIDEFRAME 6
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/* PitchAndFamily family values (high 4 bits) */
|
2003-08-14 10:32:07 -04:00
|
|
|
#ifndef FF_DONTCARE
|
|
|
|
#define FF_DONTCARE 0x00
|
|
|
|
#endif
|
|
|
|
#ifndef FF_ROMAN
|
|
|
|
#define FF_ROMAN 0x10
|
|
|
|
#endif
|
|
|
|
#ifndef FF_SWISS
|
|
|
|
#define FF_SWISS 0x20
|
|
|
|
#endif
|
|
|
|
#ifndef FF_MODERN
|
|
|
|
#define FF_MODERN 0x30
|
|
|
|
#endif
|
|
|
|
#ifndef FF_SCRIPT
|
|
|
|
#define FF_SCRIPT 0x40
|
|
|
|
#endif
|
|
|
|
#ifndef FF_DECORATIVE
|
|
|
|
#define FF_DECORATIVE 0x50
|
2000-03-03 06:25:10 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Brush Styles */
|
2003-08-14 10:32:07 -04:00
|
|
|
#ifndef BS_SOLID
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_SOLID 0
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_NULL
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_NULL 1
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_HOLLOW
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_HOLLOW BS_NULL
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_HATCHED
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_HATCHED 2
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_PATTERN
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_PATTERN 3
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_INDEXED
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_INDEXED 4
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
|
|
|
#ifndef BS_DIBPATTERN
|
2004-06-09 12:42:34 -04:00
|
|
|
#define BS_DIBPATTERN 5
|
2003-08-14 10:32:07 -04:00
|
|
|
#endif
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/* Hatch Styles */
|
2003-08-14 10:32:07 -04:00
|
|
|
#ifndef HS_HORIZONTAL
|
|
|
|
#define HS_HORIZONTAL 0
|
|
|
|
#endif
|
|
|
|
#ifndef HS_VERTICAL
|
|
|
|
#define HS_VERTICAL 1
|
|
|
|
#endif
|
|
|
|
#ifndef HS_FDIAGONAL
|
|
|
|
#define HS_FDIAGONAL 2
|
|
|
|
#endif
|
|
|
|
#ifndef HS_BDIAGONAL
|
|
|
|
#define HS_BDIAGONAL 3
|
|
|
|
#endif
|
|
|
|
#ifndef HS_CROSS
|
|
|
|
#define HS_CROSS 4
|
|
|
|
#endif
|
|
|
|
#ifndef HS_DIAGCROSS
|
|
|
|
#define HS_DIAGCROSS 5
|
|
|
|
#endif
|
2000-03-03 06:25:10 -05:00
|
|
|
|
2003-07-25 17:20:57 -04:00
|
|
|
class WXDLLIMPEXP_OGL wxMetaRecord: public wxObject
|
2000-03-03 06:25:10 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
int metaFunction;
|
|
|
|
long param1;
|
|
|
|
long param2;
|
|
|
|
long param3;
|
|
|
|
long param4;
|
|
|
|
long param5;
|
|
|
|
long param6;
|
|
|
|
long param7;
|
|
|
|
long param8;
|
2002-03-15 15:50:40 -05:00
|
|
|
wxChar *stringParam;
|
2000-03-03 06:25:10 -05:00
|
|
|
wxRealPoint *points;
|
2002-03-15 15:50:40 -05:00
|
|
|
|
2000-03-03 06:25:10 -05:00
|
|
|
wxMetaRecord(int fun)
|
|
|
|
{
|
|
|
|
metaFunction = fun; points = NULL; stringParam = NULL;
|
|
|
|
param1 = 0;
|
|
|
|
}
|
|
|
|
~wxMetaRecord(void);
|
|
|
|
};
|
|
|
|
|
2003-07-25 17:20:57 -04:00
|
|
|
class WXDLLIMPEXP_OGL wxXMetaFile: public wxObject
|
2000-03-03 06:25:10 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
double lastX;
|
|
|
|
double lastY;
|
|
|
|
bool ok;
|
|
|
|
|
|
|
|
double left;
|
|
|
|
double top;
|
|
|
|
double right;
|
|
|
|
double bottom;
|
|
|
|
|
|
|
|
wxList metaRecords;
|
|
|
|
wxList gdiObjects; // List of wxMetaRecord objects created with Create...,
|
|
|
|
// referenced by position in list by SelectObject
|
2002-12-18 01:24:15 -05:00
|
|
|
wxXMetaFile(const wxChar* file = NULL);
|
2000-03-03 06:25:10 -05:00
|
|
|
~wxXMetaFile(void);
|
2002-03-15 15:50:40 -05:00
|
|
|
|
2000-03-03 06:25:10 -05:00
|
|
|
// After this is called, the metafile cannot be used for anything
|
|
|
|
// since it is now owned by the clipboard.
|
|
|
|
bool SetClipboard(int width = 0, int height = 0);
|
|
|
|
|
|
|
|
bool Play(wxDC *dc);
|
|
|
|
inline bool Ok(void) const { return ok; }
|
2002-12-18 01:24:15 -05:00
|
|
|
bool ReadFile(const wxChar *file);
|
2000-03-03 06:25:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _MFUTILS_H_
|