#include <lvt/App.h>
Every application that uses the windowing subset of LVT must contain exactly one App object. The App object is responsible for establishing a connection to the windowing system, initializing the event loop, and dispatching events to windows.
Public Member Functions | |
void | Exit (int status=0) |
Terminates the main loop. | |
int | WndCount () const |
Returns the number of open top-level windows. | |
bool | Init () |
Initializes the application. | |
int | Run (Wnd &mainWnd) |
Starts the message loop. |
|
Terminates the main loop. Exit causes the main loop to terminate, and the Run method to return.
|
|
Initializes the application. All LVT programs using the windowing subset must call Init() before calling any other methods of any other objects. Init() establishes a connection to the windowing system, and parses common command line arguments, if any, and removes them from argc and argv. |
|
Starts the message loop. mainWnd is a reference to the application's "main" window. When this window is closed, the message loop will terminate, and Run() will return. |
|
Returns the number of open top-level windows.
|