Basic FreeType renderer implementation.
[gdipp.git] / gdipp_client / painter.h
blobc098fb71af79a6f46b50e4e97bd8597db6b4c78f
1 #pragma once
3 #include "gdipp_client/helper.h"
5 namespace gdipp
8 class painter
10 public:
11 virtual ~painter();
13 virtual bool begin(const dc_context *context);
14 virtual void end();
15 virtual bool paint(int x, int y, UINT options, CONST RECT *lprect, gdipp_rpc_bitmap_glyph_run &glyph_run, INT ctrl_right, INT black_right) = 0;
17 protected:
18 const dc_context *_context;
19 POINT _cursor;
20 COLORREF _bg_color;
21 FT_Render_Mode _render_mode;
22 UINT _text_alignment;
23 COLORREF _text_color;