Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

App Class Reference
[Windowing]

#include <lvt/App.h>

List of all members.


Detailed Description

Abstract LVT Application object.

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.


Member Function Documentation

void Exit int  status = 0  ) 
 

Terminates the main loop.

Exit causes the main loop to terminate, and the Run method to return.

Parameters:
status The value that the Run function should return to the caller. Typically, the application will then return this value from main.

bool Init  ) 
 

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.

int Run Wnd mainWnd  ) 
 

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.

int WndCount  )  const [inline]
 

Returns the number of open top-level windows.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1