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
| #pragma once
| #include <wx/wx.h>
| #include <wx/listctrl.h>
| #include <wx/dataview.h>
| #include <list>
| #include <wx/graphics.h>
|
|
|
|
| struct ColorIndexInfo
| {
| int start_index;
| int end_index;
| wxColour color;
| };
|
|
|
| class WidgetsRenderUtil {
| public:
| // »æÖÆÎı¾ÄÚÈÝ
| static int drawText(wxDC* dc, wxString st, wxPoint startP, int lineWidth, int lineHeight, std::list<ColorIndexInfo> colors = std::list<ColorIndexInfo>(), wxColour defaultColor = *wxBLACK);
|
| static int drawText(wxGraphicsContext* gc, wxString st, wxPoint startP, int lineWidth, int lineHeight, std::list<ColorIndexInfo> colors = std::list<ColorIndexInfo>(), wxColour defaultColor = *wxBLACK);
|
| // »æÖư´Å¥
| static void drawBtn(wxDC* dc, wxString st, wxRect rect,wxColour textColor, wxColour bgColor, wxAlignment align = wxALIGN_CENTER);
|
| // »æÖư´Å¥
| static void drawBtnByGC(wxGraphicsContext* gc, wxString st, wxRect rect, wxColour textColor, wxColour bgColor);
|
|
|
| };
|
|