2.9.16
Coherent GT
A modern user interface library for games
Coherent::UIGT::UISystemListener Class Referenceabstract

Interface for UI system notifications and callbacks. More...

#include <Coherent/Coherent/UIGT/UISystemListener.h>

Public Member Functions

virtual ~UISystemListener ()
 Virtual destructor.
 
virtual double GetMonotonicallyIncreasingTime ()=0
 Called when the system needs a monotonically increasing timestamp, in seconds, since an arbirary point in time. The SDK would not accept a non-increasing timestamp and in such case would use the last known one. The callback is only executed when you've explicitly specified that you want to control time using the Coherent::UIGT::SystemSettings::ControlTime field. More...
 
virtual ViewGetTestView (const ViewInfo &, const char *)
 Called when the Coherent GT TestDriver needs a new view to be used for tests. More...
 
virtual void TestRunDone ()
 Called when the Coherent GT TestDriver has finished a session. The application may use this notification to quit.
 
virtual void TakeScreenshot (int, ScreenshotResponse *)
 Called when the Coherent GT TestDriver requests a screenshot. The application must call the ReceiveData method of the Screenshot response with the view id and the raw image bytes in RGBA format on the main thread.
 

Detailed Description

Interface for UI system notifications and callbacks.

Member Function Documentation

◆ GetMonotonicallyIncreasingTime()

virtual double Coherent::UIGT::UISystemListener::GetMonotonicallyIncreasingTime ( )
pure virtual

Called when the system needs a monotonically increasing timestamp, in seconds, since an arbirary point in time. The SDK would not accept a non-increasing timestamp and in such case would use the last known one. The callback is only executed when you've explicitly specified that you want to control time using the Coherent::UIGT::SystemSettings::ControlTime field.

Returns
The method implementation should return the monotonically increasing timestamp, in seconds.

◆ GetTestView()

virtual View* Coherent::UIGT::UISystemListener::GetTestView ( const ViewInfo ,
const char *   
)
inlinevirtual

Called when the Coherent GT TestDriver needs a new view to be used for tests.

Parameters
infoview info for the newly created view
urlthe URL that the view should load
Returns
Return an existing view that loads the URL or null to allow default view to be created