]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/scrtimer.h
Added new wxGraphicsContext:Create( wxPrinterDC ) instead of wxDC:CreateGraphicsContext
[wxWidgets.git] / include / wx / univ / scrtimer.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/scrtimer.h
3 // Purpose: wxScrollTimer: small helper class for wxScrollArrow/Thumb
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 18.02.01
7 // RCS-ID: $Id$
8 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_UNIV_SCRTIMER_H
13 #define _WX_UNIV_SCRTIMER_H
14
15 // NB: this class is implemented in scrolbar.cpp
16
17 #include "wx/defs.h"
18
19 #if wxUSE_TIMER
20
21 #include "wx/timer.h"
22
23 // ----------------------------------------------------------------------------
24 // wxScrollTimer: the timer used when the arrow or scrollbar shaft is kept
25 // pressed
26 // ----------------------------------------------------------------------------
27
28 class WXDLLIMPEXP_CORE wxScrollTimer : public wxTimer
29 {
30 public:
31 // default ctor
32 wxScrollTimer();
33
34 // start generating the events
35 void StartAutoScroll();
36
37 // the base class method
38 virtual void Notify();
39
40 protected:
41 // to implement in derived classes: perform the scroll action and return
42 // true to continue scrolling or false to stop
43 virtual bool DoNotify() = 0;
44
45 // should we skip the next timer event?
46 bool m_skipNext;
47 };
48
49 #endif // wxUSE_TIMER
50
51 #endif // _WX_UNIV_SCRTIMER_H