| 1 | /////////////////////////////////////////////////////////////////////////////// |
| 2 | // Name: src/palmos/caret.cpp |
| 3 | // Purpose: Palm OS implementation of wxCaret |
| 4 | // Author: William Osborne - minimal working wxPalmOS port |
| 5 | // Modified by: |
| 6 | // Created: 10.13.04 |
| 7 | // RCS-ID: $Id$ |
| 8 | // Copyright: (c) William Osborne |
| 9 | // Licence: wxWindows licence |
| 10 | /////////////////////////////////////////////////////////////////////////////// |
| 11 | |
| 12 | // =========================================================================== |
| 13 | // declarations |
| 14 | // =========================================================================== |
| 15 | |
| 16 | // --------------------------------------------------------------------------- |
| 17 | // headers |
| 18 | // --------------------------------------------------------------------------- |
| 19 | |
| 20 | // For compilers that support precompilation, includes "wx.h". |
| 21 | #include "wx/wxprec.h" |
| 22 | |
| 23 | #ifdef __BORLANDC__ |
| 24 | #pragma hdrstop |
| 25 | #endif |
| 26 | |
| 27 | #ifndef WX_PRECOMP |
| 28 | #include "wx/window.h" |
| 29 | #include "wx/log.h" |
| 30 | #endif // WX_PRECOMP |
| 31 | |
| 32 | #include "wx/caret.h" |
| 33 | |
| 34 | #if wxUSE_CARET |
| 35 | |
| 36 | #include "wx/palmos/private.h" |
| 37 | |
| 38 | // --------------------------------------------------------------------------- |
| 39 | // macros |
| 40 | // --------------------------------------------------------------------------- |
| 41 | |
| 42 | #define CALL_CARET_API(api, args) \ |
| 43 | if ( !api args ) \ |
| 44 | wxLogLastError(_T(#api)) |
| 45 | |
| 46 | // =========================================================================== |
| 47 | // implementation |
| 48 | // =========================================================================== |
| 49 | |
| 50 | // --------------------------------------------------------------------------- |
| 51 | // blink time |
| 52 | // --------------------------------------------------------------------------- |
| 53 | |
| 54 | //static |
| 55 | int wxCaretBase::GetBlinkTime() |
| 56 | { |
| 57 | return 0; |
| 58 | } |
| 59 | |
| 60 | //static |
| 61 | void wxCaretBase::SetBlinkTime(int milliseconds) |
| 62 | { |
| 63 | } |
| 64 | |
| 65 | // --------------------------------------------------------------------------- |
| 66 | // creating/destroying the caret |
| 67 | // --------------------------------------------------------------------------- |
| 68 | |
| 69 | bool wxCaret::PalmOSCreateCaret() |
| 70 | { |
| 71 | return false; |
| 72 | } |
| 73 | |
| 74 | void wxCaret::OnSetFocus() |
| 75 | { |
| 76 | } |
| 77 | |
| 78 | void wxCaret::OnKillFocus() |
| 79 | { |
| 80 | } |
| 81 | |
| 82 | // --------------------------------------------------------------------------- |
| 83 | // showing/hiding the caret |
| 84 | // --------------------------------------------------------------------------- |
| 85 | |
| 86 | void wxCaret::DoShow() |
| 87 | { |
| 88 | } |
| 89 | |
| 90 | void wxCaret::DoHide() |
| 91 | { |
| 92 | } |
| 93 | |
| 94 | // --------------------------------------------------------------------------- |
| 95 | // moving the caret |
| 96 | // --------------------------------------------------------------------------- |
| 97 | |
| 98 | void wxCaret::DoMove() |
| 99 | { |
| 100 | } |
| 101 | |
| 102 | |
| 103 | // --------------------------------------------------------------------------- |
| 104 | // resizing the caret |
| 105 | // --------------------------------------------------------------------------- |
| 106 | |
| 107 | void wxCaret::DoSize() |
| 108 | { |
| 109 | } |
| 110 | |
| 111 | #endif |