cxWidgets 1.0
Public Member Functions | List of all members
cx::cxApp Class Reference

Holds application setup & exit logic, as well as the application's main frame. More...

#include <cxApp.h>

Inheritance diagram for cx::cxApp:
Inheritance graph
Collaboration diagram for cx::cxApp:
Collaboration graph

Public Member Functions

 cxApp ()
 
virtual ~cxApp ()
 
virtual long mainLoop ()
 Enters the main loop.
 
virtual long onRun ()
 This virtual function is where the execution of a program written with cxWidgets starts. The default implementation just enters the main loop and starts handling the events until it terminates.
 
virtual long run ()
 Synonym for onRun().
 
virtual long onInit ()
 Application initialization & startup commands will go here.
 
virtual long onExit ()
 Things to be done upon applicatoin exit will go here.
 
virtual std::string cxTypeStr () const override
 Returns the name of the cxWidgets class. This is overridden.
 
- Public Member Functions inherited from cx::cxObject
 cxObject ()
 
virtual ~cxObject ()
 
virtual void beep ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::cxObject
static bool UseColors ()
 
static void UseColors (bool useIt)
 
static bool UseBeeps ()
 
static void UseBeeps (bool useIt)
 
- Static Protected Attributes inherited from cx::cxObject
static bool useColors
 Whether or not to use colors.
 
static bool useBeeps
 Whether or not to enable beeping.
 

Detailed Description

Holds application setup & exit logic, as well as the application's main frame.

This class is not finished yet and currently shouldn't be used.

Constructor & Destructor Documentation

◆ cxApp()

cx::cxApp::cxApp ( )

◆ ~cxApp()

cx::cxApp::~cxApp ( )
virtual

Member Function Documentation

◆ cxTypeStr()

std::string cx::cxApp::cxTypeStr ( ) const
overridevirtual

Returns the name of the cxWidgets class. This is overridden.

in cxObject-based classes. This can be used to determine

the type of cxWidgets object that deriving classes derive from

in applications.

Returns
The name of the cxWidgets class.

Reimplemented from cx::cxObject.

◆ mainLoop()

long cx::cxApp::mainLoop ( )
virtual

Enters the main loop.

Returns
Return code

References cx::cxID_EXIT.

◆ onExit()

long cx::cxApp::onExit ( )
virtual

Things to be done upon applicatoin exit will go here.

Returns

References cx::cxID_EXIT.

◆ onInit()

long cx::cxApp::onInit ( )
virtual

Application initialization & startup commands will go here.

Returns
Return code

References cx::cxID_EXIT.

◆ onRun()

long cx::cxApp::onRun ( )
virtual

This virtual function is where the execution of a program written with cxWidgets starts. The default implementation just enters the main loop and starts handling the events until it terminates.

Returns
Return code

References cx::cxID_EXIT.

Referenced by run().

◆ run()

long cx::cxApp::run ( )
virtual

Synonym for onRun().

Returns
Return value of onRun()

References onRun().


The documentation for this class was generated from the following files: