From 149e7c0836927e14a926a952bd1a7f0d1b49e779 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 5 May 2023 15:46:58 -0400 Subject: Organised repo --- src/eye_indicator.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/eye_indicator.h (limited to 'src/eye_indicator.h') diff --git a/src/eye_indicator.h b/src/eye_indicator.h new file mode 100644 index 0000000..e8fd890 --- /dev/null +++ b/src/eye_indicator.h @@ -0,0 +1,30 @@ +#ifndef EYE_INDICATOR_H_778150F2 +#define EYE_INDICATOR_H_778150F2 + +#include + +#ifndef WX_PRECOMP +#include +#endif + +class EyeIndicator : public wxWindow { + public: + EyeIndicator(wxWindow* parent); + + void SetChecked(bool checked); + + private: + static const wxImage& GetUncheckedImage(); + static const wxImage& GetCheckedImage(); + + void OnPaint(wxPaintEvent& event); + + void Redraw(); + + bool intended_checked_ = false; + + wxBitmap rendered_; + bool rendered_checked_ = false; +}; + +#endif /* end of include guard: EYE_INDICATOR_H_778150F2 */ -- cgit 1.4.1