projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wxGTK compilation in wxUSE_MENUS==0 case.
[wxWidgets.git]
/
include
/
wx
/
generic
/
caret.h
diff --git
a/include/wx/generic/caret.h
b/include/wx/generic/caret.h
index f9dd4d386626284d577e1e99b00555510f627bc9..36380b6ea5641ea990a7b66319ec08540b6125a1 100644
(file)
--- a/
include/wx/generic/caret.h
+++ b/
include/wx/generic/caret.h
@@
-1,5
+1,5
@@
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: generic/caret.h
+// Name:
wx/
generic/caret.h
// Purpose: generic wxCaret class
// Author: Vadim Zeitlin (original code by Robert Roebling)
// Modified by:
// Purpose: generic wxCaret class
// Author: Vadim Zeitlin (original code by Robert Roebling)
// Modified by:
@@
-16,15
+16,13
@@
#include "wx/dc.h"
#include "wx/overlay.h"
#include "wx/dc.h"
#include "wx/overlay.h"
-#if wxHAS_NATIVE_OVERLAY
- #define wxHAS_CARET_USING_OVERLAYS 1
-#else
- #define wxHAS_CARET_USING_OVERLAYS 0
+#ifdef wxHAS_NATIVE_OVERLAY
+ #define wxHAS_CARET_USING_OVERLAYS
#endif
#endif
-class WXDLLIMPEXP_CORE wxCaret;
+class WXDLLIMPEXP_
FWD_
CORE wxCaret;
-class WXDLL
EXPORT
wxCaretTimer : public wxTimer
+class WXDLL
IMPEXP_CORE
wxCaretTimer : public wxTimer
{
public:
wxCaretTimer(wxCaret *caret);
{
public:
wxCaretTimer(wxCaret *caret);
@@
-72,13
+70,13
@@
protected:
void Refresh();
// draw the caret on the given DC
void Refresh();
// draw the caret on the given DC
- void DoDraw(wxDC *dc);
+ void DoDraw(wxDC *dc
, wxWindow* win
);
private:
// GTK specific initialization
void InitGeneric();
private:
// GTK specific initialization
void InitGeneric();
-#if wxHAS_CARET_USING_OVERLAYS
+#if
def
wxHAS_CARET_USING_OVERLAYS
// the overlay for displaying the caret
wxOverlay m_overlay;
#else
// the overlay for displaying the caret
wxOverlay m_overlay;
#else