Audacity  3.2.0
auStaticText.h
Go to the documentation of this file.
1 /*!********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  @file auStaticText.h
6 
7  Paul Licameli split from Theme.h
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_AU_STATIC_TEXT__
12 #define __AUDACITY_AU_STATIC_TEXT__
13 
14 #include <wx/window.h> // to inherit
15 
16 class wxString;
17 class wxPaintEvent;
18 
19 class AUDACITY_DLL_API auStaticText : public wxWindow
20 {
21 public:
22  auStaticText(wxWindow* parent, wxString text);
23  void OnPaint(wxPaintEvent & evt);
24  bool AcceptsFocus() const override { return false; }
25  void OnErase(wxEraseEvent& event) {
26  static_cast<void>(event);
27  };
29 };
30 
31 #endif
auStaticText::AcceptsFocus
bool AcceptsFocus() const override
Definition: auStaticText.h:24
auStaticText::OnErase
void OnErase(wxEraseEvent &event)
Definition: auStaticText.h:25
auStaticText::DECLARE_EVENT_TABLE
DECLARE_EVENT_TABLE()
auStaticText
is like wxStaticText, except it can be themed. wxStaticText can't be.
Definition: auStaticText.h:20