All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::NullGfxDriver Class Reference

This class provides a graphics driver that does nothing. More...

#include <MultiWidgets/NullGfxDriver.hpp>

Inheritance diagram for MultiWidgets::NullGfxDriver:
MultiWidgets::GfxDriver

Public Member Functions

virtual bool autoConfigure ()
 Configure the driver. More...
 
virtual size_t frame () const
 Returns the frame the driver is rendering. More...
 
virtual bool init (Application &app)
 Initializes the driver. More...
 
virtual void keepMouseCursorVisible (bool keepVisible)
 Tells the driver to keep the mouse cursor visible, even after timeout.
 
virtual Luminous::MultiHeadmultiHead ()
 Returns related Luminous::MultiHead object. More...
 
virtual bool needGUI () const
 Do we need GUI (is it necessary to initialize Luminous). More...
 
 NullGfxDriver ()
 Constructor for the driver.
 
virtual void render ()
 Increases frame number and sleeps for 1 ms.
 
virtual void shutdown ()
 Shuts down the driver.
 
virtual ~NullGfxDriver ()
 Destructor for the driver.
 

Detailed Description

This class provides a graphics driver that does nothing.

It is meant to be used with console applications when no windows are required.

Member Function Documentation

virtual bool MultiWidgets::NullGfxDriver::autoConfigure ( )
virtual

Configure the driver.

Never fails.

Returns
Was the configuration successful?

Implements MultiWidgets::GfxDriver.

virtual size_t MultiWidgets::NullGfxDriver::frame ( ) const
virtual

Returns the frame the driver is rendering.

Returns
Frame rendered

Implements MultiWidgets::GfxDriver.

virtual bool MultiWidgets::NullGfxDriver::init ( Application app)
virtual

Initializes the driver.

This never fails.

Parameters
appRelated application.
Returns
true

Implements MultiWidgets::GfxDriver.

virtual Luminous::MultiHead& MultiWidgets::NullGfxDriver::multiHead ( )
virtual

Returns related Luminous::MultiHead object.

Returns
Related Luminous::MultiHead

Implements MultiWidgets::GfxDriver.

virtual bool MultiWidgets::NullGfxDriver::needGUI ( ) const
virtual

Do we need GUI (is it necessary to initialize Luminous).

Always false

Returns
Is initialization of Luminous required for this driver.

Implements MultiWidgets::GfxDriver.