summaryrefslogtreecommitdiff
path: root/inc/W95_Allocator.hxx
blob: 369fad58059a81839c959b56ebc8465a5f81cb7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// File:        W95_Allocator.hxx
// Created:     Feb 1998
// Author:      PLOTNIKOV Eugeny & CHABROVSKY Dmitry
// Copyright:   Matra Datavision 1998

#ifndef __W95_ALLOCATOR_HXX
# define __W95_ALLOCATOR_HXX

# include "EHDC.hxx"
# include "W32_Allocator.hxx"

struct W95_Allocator : public W32_Allocator {

 W95_Allocator ( int, PW32_Allocator = NULL );
 virtual ~W95_Allocator ();

 virtual void Xform ( void );

 virtual void Play  ( HDC, PSIZE );
 virtual void URect ( LPRECT     );

 virtual void Point        ( int, int                                                    );
 virtual void MarkerPoint  ( int, int                                                    );
 virtual void Line         ( int, int, int, int                                          );
 virtual void PolyEllipse  ( int, int, int, int                                          );
 virtual void Ellipse      ( int, int, int, int                                          );
 virtual void Arc          ( int, int, int, int, double, double                          );
 virtual void PolyChord    ( int, int, int, int, double, double                          );
 virtual void Chord        ( int, int, int, int, double, double                          );
 virtual void PolySector   ( int, int, int, int, double, double                          );
 virtual void Sector       ( int, int, int, int, double, double                          );
 virtual void PolyMarker   ( int                                                         );
 virtual void PolyMarker1  ( int, GetPointFunc, int, void*                               );
 virtual void PolyMarker2  ( int, GetPointFunc, int, void*                               );
 virtual W32_Note* Polygon ( int                                                         );
 virtual W32_Note* Polyline( int                                                         );
 virtual void Image        ( int, int, PW32_Bitmap, double = 1.0                         );
 virtual void Text         ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE         );
 virtual void Polytext     ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE );
 virtual void BeginMarker  ( int, int, int, int, double                                  );
 virtual void EndMarker    ( void                                                        );
 virtual void LineAttrib   ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL                  );
 virtual void PolyAttrib   ( PLOGBRUSH, BOOL, int = ALTERNATE                            );
 virtual void TextAttrib   (
               HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
               BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
              );
 virtual void MarkerAttrib ( COLORREF, DWORD, BOOL                                       );
 virtual void FunCall      ( W32_FCall, int, PW32_FCALLPARAM                             );

 virtual int  TextSize ( HDC, char*,    PSIZE );
 virtual int  TextSize ( HDC, wchar_t*, PSIZE );

 LOGBRUSH  myLineBrush;         // line attributes
 DWORD     myLinePenWidth;
 DWORD     myLineStyleCount;
 PDWORD    myLineStyles;

 LOGBRUSH  myPolyBrush;         // polygon attributes

 COLORREF  myTextColor;         // text attributes

 LOGBRUSH  myMarkerBrush;       // marker attributes
 LOGBRUSH  myMarkerBrushOrig;
 DWORD     myMarkerWidth;

 EHDC      myHDC;

};

typedef W95_Allocator* PW95_Allocator;

#endif  // __W95_ALLOCATOR_HXX