blob: e13d2288643991cd82d833369a0e713a42737720 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#ifndef AREA_WINDOW_H_C2653ACF
#define AREA_WINDOW_H_C2653ACF
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "area_popup.h"
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, AreaPopup* popup);
int GetAreaId() const { return area_id_; }
AreaPopup* GetPopup() { return popup_; }
void UpdateIndicators();
private:
void OnPaint(wxPaintEvent& event);
void OnEnterWindow(wxMouseEvent& event);
void OnLeaveWindow(wxMouseEvent& event);
void Redraw();
int area_id_;
wxBitmap rendered_;
AreaPopup* popup_;
};
#endif /* end of include guard: AREA_WINDOW_H_C2653ACF */
|