10 #ifndef VIDEO_VIDEO_DRIVER_HPP 11 #define VIDEO_VIDEO_DRIVER_HPP 13 #include "../driver.h" 14 #include "../core/geometry_type.hpp" 27 virtual void MakeDirty(
int left,
int top,
int width,
int height) = 0;
71 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.
virtual void EditBoxGainedFocus()
An edit box gained the input focus.
Dimension _cur_resolution
The current resolution.
virtual bool ToggleFullscreen(bool fullscreen)=0
Change the full screen setting.
std::vector< Dimension > _resolutions
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.