X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0290598f588681eb631c0a952a26c7637b8482d0..66b6b04535cf261b7bae7da77332835b242abd04:/src/generic/caret.cpp diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 59a9112c2c..2620630941 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -17,8 +17,8 @@ // headers // ---------------------------------------------------------------------------- -#if 0 //def __GNUG__ - #pragma implementation "caret.h" +#ifdef __GNUG__ +#pragma implementation "caret.h" #endif // For compilers that support precompilation, includes "wx.h". @@ -29,7 +29,8 @@ #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include "wx/window.h" + #include "wx/dcclient.h" #endif //WX_PRECOMP #include "wx/caret.h" @@ -45,6 +46,16 @@ static int gs_blinkTime = 500; // in milliseconds // implementation // ============================================================================ +wxCaretTimer::wxCaretTimer(wxCaret *caret) +{ + m_caret = caret; +} + +void wxCaretTimer::Notify() +{ + m_caret->Blink(); +} + // ---------------------------------------------------------------------------- // wxCaret static functions and data // ----------------------------------------------------------------------------