QSDK 1.1 Documentation
Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Listener Struct Reference

Inheritance diagram for Listener:

ApplicationListener List of all members.

Public Member Functions

 Listener ()
void onTick (double time)
void onWindowClose ()

Detailed Description

A simple implementation of the ApplicationListener to be able to close the application down when the window is closed.

Definition at line 19 of file ptut01.cpp.


Constructor & Destructor Documentation

Listener::Listener  )  [inline]
 

Definition at line 21 of file ptut01.cpp.

00021 {}


Member Function Documentation

void Listener::onTick double  time  )  [inline, virtual]
 

No action is needed on a per frame basis, so onTick does nothing.

Implements ApplicationListener.

Definition at line 28 of file ptut01.cpp.

00028 {}

void Listener::onWindowClose  )  [inline, virtual]
 

Handle window close events and shutdown the application.

Implements ApplicationListener.

Definition at line 33 of file ptut01.cpp.

References Application::app().

00033 { Q::Application::app().shutdown(); }

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004