wxCaret now exists not only under MSW but on any supported platform as well

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-05-25 18:01:48 +00:00
parent 062c486171
commit 0290598f58
6 changed files with 635 additions and 5 deletions

View File

@@ -19,10 +19,16 @@
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxWindowBase;
// ---------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// headers we have to include
// ----------------------------------------------------------------------------
#include "wx/gdicmn.h" // for wxPoint, wxSize
// ----------------------------------------------------------------------------
// A caret is a blinking cursor showing the position where the typed text will
// appear. It can be either a solid block or a custom bitmap (TODO)
// ---------------------------------------------------------------------------
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxCaretBase
{
@@ -63,6 +69,9 @@ public:
// is the caret valid?
bool IsOk() const { return m_width != 0 && m_height != 0; }
// is the caret currently shown?
bool IsVisible() const { return m_countVisible > 0; }
// get the caret position
void GetPosition(int *x, int *y) const
{
@@ -167,11 +176,10 @@ private:
// now include the real thing
// ---------------------------------------------------------------------------
#ifdef __WXMSW__
#if defined(__WXMSW__)
#include "wx/msw/caret.h"
#else
// not implemented yet
typedef wxCaretBase wxCaret;
#include "wx/generic/caret.h"
#endif // platform
#endif // _WX_CARET_H_BASE_