Minor changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-08-02 19:06:23 +00:00
parent 9bb2eb9fd6
commit e46286351d
13 changed files with 147 additions and 127 deletions

View File

@@ -12,6 +12,10 @@
#ifndef _WX_CARET_H_BASE_
#define _WX_CARET_H_BASE_
#ifdef __GNUG__
#pragma interface "caret.h"
#endif
// ---------------------------------------------------------------------------
// forward declarations
// ---------------------------------------------------------------------------

View File

@@ -9,15 +9,27 @@
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#if 0 //def __GNUG__
#pragma implementation "caret.h"
#endif
#ifndef _WX_CARET_H_
#define _WX_CARET_H_
#ifdef __GNUG__
#pragma interface "caret.h"
#endif
#include "wx/timer.h"
class wxCaret;
class wxCaretTimer : public wxTimer
{
public:
wxCaretTimer(wxCaret *caret);
virtual void Notify();
private:
wxCaret *m_caret;
};
class wxCaret : public wxCaretBase
{
public:
@@ -46,23 +58,13 @@ protected:
// draw the caret on the given DC
void DoDraw(wxDC *dc);
private:
// GTK specific initialization
void InitGeneric();
class CaretTimer : public wxTimer
{
public:
CaretTimer(wxCaret *caret) { m_caret = caret; }
virtual void Notify() { m_caret->Blink(); }
private:
wxCaret *m_caret;
} m_timer;
bool m_blinkedOut; // TRUE => caret hidden right now
wxCaretTimer m_timer;
bool m_blinkedOut; // TRUE => caret hidden right now
};
#endif // _WX_CARET_H_