openMSX
VRAMObserver.hh
Go to the documentation of this file.
1 #ifndef VRAMOBSERVER_HH
2 #define VRAMOBSERVER_HH
3 
4 #include "EmuTime.hh"
5 
6 namespace openmsx {
7 
11 class VRAMObserver {
12 public:
21  virtual void updateVRAM(unsigned offset, EmuTime::param time) = 0;
22 
36  virtual void updateWindow(bool enabled, EmuTime::param time) = 0;
37 
38 protected:
39  ~VRAMObserver() = default;
40 };
41 
42 } // namespace openmsx
43 
44 #endif
virtual void updateVRAM(unsigned offset, EmuTime::param time)=0
Informs the observer of a change in VRAM contents.
Interface that can be registered at VRAMWindow, to be called when the contents of the VRAM inside tha...
Definition: VRAMObserver.hh:11
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual void updateWindow(bool enabled, EmuTime::param time)=0
Informs the observer that the entire VRAM window will change.