Factor out wxWidgetCocoaImpl::GetViewWithText()

Extract this function from wxWidgetCocoaImpl::SetFont() to allow its
reuse.

No changes, this is a pure refactoring.
This commit is contained in:
Vadim Zeitlin
2021-03-13 23:01:21 +01:00
parent f6194cb797
commit ede4ff9490
2 changed files with 15 additions and 5 deletions

View File

@@ -241,6 +241,10 @@ protected:
// was the wx event for the current native key down event sent
bool WasKeyDownSent() const;
// Return the view to apply the font/colour to.
NSView* GetViewWithText() const;
NSEvent* m_lastKeyDownEvent;
bool m_lastKeyDownWXSent;
#if !wxOSX_USE_NATIVE_FLIPPED