about summary refs log blame commit diff stats
path: root/src/report_popup.h
blob: bbb0bef0c752ddfca793ede6b44592a2cc581616 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17















                                             
                         


                                    

                                              

                    

                                 

                       


                                                          
#ifndef REPORT_POPUP_H_E065BED4
#define REPORT_POPUP_H_E065BED4

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

class ReportPopup : public wxScrolledCanvas {
 public:
  explicit ReportPopup(wxWindow* parent);

  void SetDoorId(int door_id);

  void Reset();

  void ResetIndicators();
  void UpdateIndicators();

 private:
  void OnPaint(wxPaintEvent& event);
  void OnDPIChanged(wxDPIChangedEvent& event);

  void LoadIcons();

  int door_id_ = -1;

  const wxBitmap* unchecked_eye_;
  const wxBitmap* checked_eye_;

  int full_width_ = 0;
  int full_height_ = 0;

  wxBitmap rendered_;
};

#endif /* end of include guard: REPORT_POPUP_H_E065BED4 */