OpenTTD
VideoDriver_Cocoa Class Reference
Inheritance diagram for VideoDriver_Cocoa:
VideoDriver Driver

Public Member Functions

const char * Start (const char *const *param) override
 Start this driver. More...
 
void Stop () override
 Stop the video driver.
 
void MakeDirty (int left, int top, int width, int height) override
 Mark dirty a screen region. More...
 
void MainLoop () override
 Programme main loop.
 
bool ChangeResolution (int w, int h) override
 Change window resolution. More...
 
bool ToggleFullscreen (bool fullscreen) override
 Set a new window mode. More...
 
bool AfterBlitterChange () override
 Callback invoked after the blitter was changed. More...
 
void EditBoxLostFocus () override
 An edit box lost the input focus. More...
 
const char * GetName () const override
 Return driver name. More...
 
- Public Member Functions inherited from VideoDriver
virtual void AcquireBlitterLock ()
 Acquire any lock(s) required to be held when changing blitters. More...
 
virtual void ReleaseBlitterLock ()
 Release any lock(s) required to be held when changing blitters. More...
 
virtual bool ClaimMousePointer ()
 
virtual bool HasGUI () const
 Whether the driver has a graphical user interface with the end user. More...
 
virtual void EditBoxGainedFocus ()
 An edit box gained the input focus.
 

Additional Inherited Members

- Public Types inherited from Driver
enum  Type {
  DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO,
  DT_END
}
 The type of driver. More...
 
- Static Public Member Functions inherited from VideoDriver
static VideoDriverGetInstance ()
 Get the currently active instance of the video driver.
 

Detailed Description

Definition at line 15 of file cocoa_v.h.

Member Function Documentation

◆ AfterBlitterChange()

bool VideoDriver_Cocoa::AfterBlitterChange ( )
overridevirtual

Callback invoked after the blitter was changed.

Returns
True if no error.

Reimplemented from VideoDriver.

◆ ChangeResolution()

bool VideoDriver_Cocoa::ChangeResolution ( int  w,
int  h 
)
overridevirtual

Change window resolution.

Parameters
wNew window width
hNew window height
Returns
Whether change was successful

Implements VideoDriver.

◆ EditBoxLostFocus()

void VideoDriver_Cocoa::EditBoxLostFocus ( )
overridevirtual

An edit box lost the input focus.

Abort character compositing if necessary.

Reimplemented from VideoDriver.

◆ GetName()

const char* VideoDriver_Cocoa::GetName ( ) const
inlineoverridevirtual

Return driver name.

Returns
driver name

Implements Driver.

Definition at line 59 of file cocoa_v.h.

◆ MakeDirty()

void VideoDriver_Cocoa::MakeDirty ( int  left,
int  top,
int  width,
int  height 
)
overridevirtual

Mark dirty a screen region.

Parameters
leftx-coordinate of left border
topy-coordinate of top border
widthwidth or dirty rectangle
heightheight of dirty rectangle

Implements VideoDriver.

Referenced by CocoaSubdriver::~CocoaSubdriver().

◆ Start()

const char* VideoDriver_Cocoa::Start ( const char *const *  parm)
overridevirtual

Start this driver.

Parameters
parmParameters passed to the driver.
Returns
nullptr if everything went okay, otherwise an error message.

Implements Driver.

◆ ToggleFullscreen()

bool VideoDriver_Cocoa::ToggleFullscreen ( bool  fullscreen)
overridevirtual

Set a new window mode.

Parameters
fullscreenWhether to set fullscreen mode or not
Returns
Whether changing the screen mode was successful

Implements VideoDriver.


The documentation for this class was generated from the following file: