X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6212a0cb7e6285f62198a9411d91bbe8dc06e60..6604fd4c23f2a4f392d460ae2d07efd6db359234:/src/dfb/window.cpp diff --git a/src/dfb/window.cpp b/src/dfb/window.cpp index 548616b0fb..6fed4e69f4 100644 --- a/src/dfb/window.cpp +++ b/src/dfb/window.cpp @@ -72,6 +72,15 @@ IMPLEMENT_ABSTRACT_CLASS(wxWindowDFB, wxWindowBase) BEGIN_EVENT_TABLE(wxWindowDFB, wxWindowBase) END_EVENT_TABLE() +//----------------------------------------------------------------------------- +// global functions +//----------------------------------------------------------------------------- + +wxWindow *wxGetActiveWindow() +{ + return wxWindow::FindFocus(); +} + // ---------------------------------------------------------------------------- // constructors and such // ---------------------------------------------------------------------------- @@ -548,10 +557,11 @@ int wxWindowDFB::GetCharWidth() const return dc.GetCharWidth(); } -void wxWindowDFB::GetTextExtent(const wxString& string, - int *x, int *y, - int *descent, int *externalLeading, - const wxFont *theFont) const +void wxWindowDFB::DoGetTextExtent(const wxString& string, + int *x, int *y, + int *descent, + int *externalLeading, + const wxFont *theFont) const { wxWindowDC dc((wxWindow*)this); dc.GetTextExtent(string, x, y, descent, externalLeading, (wxFont*)theFont); @@ -791,7 +801,7 @@ void wxWindowDFB::RemoveOverlay(wxOverlayImpl *overlay) #define KEY(dfb, wx) \ case dfb: \ wxLogTrace(TRACE_EVENTS, \ - _T("key " #dfb " mapped to " #wx)); \ + wxT("key " #dfb " mapped to " #wx)); \ return wx // returns translated keycode, i.e. the one for KEYUP/KEYDOWN where 'a'..'z' is @@ -993,7 +1003,6 @@ void wxWindowDFB::HandleKeyEvent(const wxDFBWindowEvent& event_) event.SetTimestamp(wxDFB_EVENT_TIMESTAMP(e)); event.m_rawCode = e.key_code; event.m_keyCode = GetTranslatedKeyCode(e.key_id); - event.m_scanCode = 0; // not used by wx at all #if wxUSE_UNICODE event.m_uniChar = e.key_symbol; #endif