Definition at line 44 of file CellularPanel.cpp.
◆ Filter()
CellularPanel::Filter::Filter |
( |
| ) |
|
|
inline |
◆ ~Filter()
CellularPanel::Filter::~Filter |
( |
| ) |
|
|
inline |
Definition at line 51 of file CellularPanel.cpp.
52 {
53 wxEvtHandler::RemoveFilter( this );
54 }
◆ Create()
static void CellularPanel::Filter::Create |
( |
| ) |
|
|
inlinestatic |
◆ FilterEvent()
int CellularPanel::Filter::FilterEvent |
( |
wxEvent & |
event | ) |
|
|
inlineoverride |
Definition at line 61 of file CellularPanel.cpp.
62 {
63 const auto type = event.GetEventType();
64 if (type == wxEVT_KEY_DOWN &&
65 static_cast< wxKeyEvent& >( event ).GetKeyCode() == WXK_ESCAPE ) {
66 bool eatEvent = false;
68 if (pPanel) {
69 eatEvent = true;
70
71
72
73 pPanel->HandleEscapeKey( true );
74 }
75 }
76 if (eatEvent)
77 return Event_Processed;
78 }
79 else if ((type == wxEVT_LEFT_DOWN ||
80 type == wxEVT_RIGHT_DOWN ||
81 type == wxEVT_MIDDLE_DOWN)) {
84
85
87
88 }
89 }
90 return Event_Skip;
91 }
static wxWeakRef< CellularPanel > spClickedPanel
static wxWeakRef< CellularPanel > spEnteredPanel
References spClickedPanel, and spEnteredPanel.
◆ spClickedPanel
wxWeakRef< CellularPanel > CellularPanel::Filter::spClickedPanel = nullptr |
|
static |
◆ spEnteredPanel
wxWeakRef< CellularPanel > CellularPanel::Filter::spEnteredPanel = nullptr |
|
static |
The documentation for this struct was generated from the following file: