/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/wupdlock.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/wupdlock.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1225 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/wupdlock.h
3 // Purpose: wxWindowUpdateLocker prevents window redrawing
4 // Author: Vadim Zeitlin
5 // Created: 2006-03-06
6 // RCS-ID: $Id: wupdlock.h 37842 2006-03-07 01:50:21Z VZ $
7 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_WUPDLOCK_H_
12 #define _WX_WUPDLOCK_H_
13
14 #include "wx/window.h"
15
16 // ----------------------------------------------------------------------------
17 // wxWindowUpdateLocker prevents updates to the window during its lifetime
18 // ----------------------------------------------------------------------------
19
20 class wxWindowUpdateLocker
21 {
22 public:
23 // create an object preventing updates of the given window (which must have
24 // a lifetime at least as great as ours)
25 wxWindowUpdateLocker(wxWindow *win) : m_win(win) { win->Freeze(); }
26
27 // dtor thaws the window to permit updates again
28 ~wxWindowUpdateLocker() { m_win->Thaw(); }
29
30 private:
31 wxWindow *m_win;
32
33 DECLARE_NO_COPY_CLASS(wxWindowUpdateLocker)
34 };
35
36 #endif // _WX_WUPDLOCK_H_
37

  ViewVC Help
Powered by ViewVC 1.1.22