12 #ifndef VIDEO_VIDEO_DRIVER_HPP 13 #define VIDEO_VIDEO_DRIVER_HPP 15 #include "../driver.h" 16 #include "../core/geometry_type.hpp" 28 virtual void MakeDirty(
int left,
int top,
int width,
int height) = 0;
72 virtual bool ClaimMousePointer()
virtual void MakeDirty(int left, int top, int width, int height)=0
Mark a particular area dirty.
virtual void ReleaseBlitterLock()
Release any lock(s) required to be held when changing blitters.
virtual bool HasGUI() const
Whether the driver has a graphical user interface with the end user.
static Driver ** GetActiveDriver(Driver::Type type)
Get the active driver for the given type.
Dimension _cur_resolution
The current resolution.
virtual bool ToggleFullscreen(bool fullscreen)=0
Change the full screen setting.
int _num_resolutions
The number of resolutions.
Dimension _resolutions[32]
List of resolutions.
virtual bool ChangeResolution(int w, int h)=0
Change the resolution of the window.
char * _ini_videodriver
The video driver a stored in the configuration file.
virtual void AcquireBlitterLock()
Acquire any lock(s) required to be held when changing blitters.
A driver for communicating with the user.
static VideoDriver * GetInstance()
Get the currently active instance of the video driver.
bool _rightclick_emulate
Whether right clicking is emulated.
virtual void MainLoop()=0
Perform the actual drawing.
The base of all video drivers.
virtual void EditBoxLostFocus()
An edit box lost the input focus.
virtual bool AfterBlitterChange()
Callback invoked after the blitter was changed.
Dimensions (a width and height) of a rectangle in 2D.