blob: 0806da4ea4f23e73ca1d4e15fc7796ef51d5f6b7 (
plain) (
blame)
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
|
#ifndef AREA_WINDOW_H_C2653ACF
#define AREA_WINDOW_H_C2653ACF
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
class AreaWindow : public wxWindow {
public:
static constexpr int ACTUAL_SIZE = 64;
static constexpr int BORDER_SIZE = 5;
static constexpr int EFFECTIVE_SIZE = ACTUAL_SIZE + BORDER_SIZE * 2;
AreaWindow(wxWindow* parent, int area_id);
int GetAreaId() const { return area_id_; }
private:
void OnPaint(wxPaintEvent& event);
void OnEnterWindow(wxMouseEvent& event);
void Redraw();
int area_id_;
wxBitmap rendered_;
};
#endif /* end of include guard: AREA_WINDOW_H_C2653ACF */
|