about summary refs log tree commit diff stats
path: root/src/eye_indicator.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-01-19 18:16:41 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-01-19 18:16:41 -0500
commit0a3c0c6882db2976c2b6fdbebbc127747ed63703 (patch)
tree53d568418f3eb15c149bf7d60d93433e572fa7db /src/eye_indicator.h
parent402d559af2a727f106fa7fa59132b6710a5ae84e (diff)
downloadlingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.tar.gz
lingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.tar.bz2
lingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.zip
Area popups are now painted
Instead of being a bunch of controls. This fixes the problem with the window being slow to drag around, and with items in lists disappearing. Overall W for me.
Diffstat (limited to 'src/eye_indicator.h')
-rw-r--r--src/eye_indicator.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/eye_indicator.h b/src/eye_indicator.h deleted file mode 100644 index e8fd890..0000000 --- a/src/eye_indicator.h +++ /dev/null
@@ -1,30 +0,0 @@
1#ifndef EYE_INDICATOR_H_778150F2
2#define EYE_INDICATOR_H_778150F2
3
4#include <wx/wxprec.h>
5
6#ifndef WX_PRECOMP
7#include <wx/wx.h>
8#endif
9
10class EyeIndicator : public wxWindow {
11 public:
12 EyeIndicator(wxWindow* parent);
13
14 void SetChecked(bool checked);
15
16 private:
17 static const wxImage& GetUncheckedImage();
18 static const wxImage& GetCheckedImage();
19
20 void OnPaint(wxPaintEvent& event);
21
22 void Redraw();
23
24 bool intended_checked_ = false;
25
26 wxBitmap rendered_;
27 bool rendered_checked_ = false;
28};
29
30#endif /* end of include guard: EYE_INDICATOR_H_778150F2 */