openMSX
SDLVisibleSurfaceBase.hh
Go to the documentation of this file.
1 #ifndef SDLVISIBLESURFACEBASE_HH
2 #define SDLVISIBLESURFACEBASE_HH
3 
4 #include "SDLOutputSurface.hh"
5 #include "VisibleSurface.hh"
6 #include "SDLSurfacePtr.hh"
7 
8 namespace openmsx {
9 
13 {
14 public:
15  void updateWindowTitle() override;
16  bool setFullScreen(bool fullscreen) override;
17  ~SDLVisibleSurfaceBase() override;
18 
19 protected:
21  void createSurface(int width, int height, unsigned flags);
22  virtual void fullScreenUpdated(bool fullscreen) = 0;
23 
26 
27 private:
28  static int windowPosX;
29  static int windowPosY;
30 };
31 
32 } // namespace openmsx
33 
34 #endif
openmsx::SDLVisibleSurfaceBase::updateWindowTitle
void updateWindowTitle() override
Definition: SDLVisibleSurfaceBase.cc:82
VisibleSurface.hh
openmsx::SDLVisibleSurfaceBase
Common functionality for the plain SDL and SDLGL VisibleSurface classes.
Definition: SDLVisibleSurfaceBase.hh:13
openmsx::SDLVisibleSurfaceBase::fullScreenUpdated
virtual void fullScreenUpdated(bool fullscreen)=0
openmsx::VisibleSurface::VisibleSurface
VisibleSurface(Display &display, RTScheduler &rtScheduler, EventDistributor &eventDistributor, InputEventGenerator &inputEventGenerator, CliComm &cliComm, VideoSystem &videoSystem)
Definition: VisibleSurface.cc:15
openmsx::SDLVisibleSurfaceBase::setFullScreen
bool setFullScreen(bool fullscreen) override
Definition: SDLVisibleSurfaceBase.cc:88
openmsx::SDLVisibleSurfaceBase::~SDLVisibleSurfaceBase
~SDLVisibleSurfaceBase() override
Definition: SDLVisibleSurfaceBase.cc:17
openmsx::VisibleSurface
An OutputSurface which is visible to the user, such as a window or a full screen display.
Definition: VisibleSurface.hh:28
SDLSurfacePtr.hh
SDLOutputSurface.hh
openmsx::SDLOutputSurface
A frame buffer where pixels can be written to.
Definition: SDLOutputSurface.hh:30
openmsx::SDLVisibleSurfaceBase::createSurface
void createSurface(int width, int height, unsigned flags)
Definition: SDLVisibleSurfaceBase.cc:30
openmsx::SDLVisibleSurfaceBase::window
SDLWindowPtr window
Definition: SDLVisibleSurfaceBase.hh:25
SDLSubSystemInitializer< SDL_INIT_VIDEO >
SDLWindowPtr
std::unique_ptr< SDL_Window, SDLDestroyWindow > SDLWindowPtr
Definition: SDLSurfacePtr.hh:153
openmsx::SDLVisibleSurfaceBase::videoSubSystem
SDLSubSystemInitializer< SDL_INIT_VIDEO > videoSubSystem
Definition: SDLVisibleSurfaceBase.hh:24
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5