Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TProgInit Class Reference

Virtual base class for TProgram. More...

#include <app.h>

Inheritance diagram for TProgInit::

TProgram TApplication List of all members.

Public Methods

 TProgInit (TStatusLine *(*cStatusLine)(TRect), TMenuBar *(*cMenuBar)(TRect), TDeskTop *(*cDeskTop)(TRect))

Protected Attributes

TStatusLine* (* createStatusLine )(TRect)
TMenuBar* (* createMenuBar )(TRect)
TDeskTop* (* createDeskTop )(TRect)

Detailed Description

TProgInit is a virtual base class for TProgram.

The TProgram constructor calls the TProgInit base constructor, passing to it the addresses of three initialization functions that create the status line, menu bar, and desk top.

Definition at line 439 of file app.h.


Constructor & Destructor Documentation

TProgInit::TProgInit ( TStatusLine *(* cStatusLine)(TRect),
TMenuBar *(* cMenuBar)(TRect),
TDeskTop *(* cDeskTop)(TRect) )
 

The TProgram constructor calls the TProgInit constructor, passing to it the addresses of three init functions. The TProgInit constructor creates a status line, menu bar, and desk top. If these calls are successful, the three objects are inserted into the TProgram group. Variables TProgram::statusLine, TProgram::menuBar and TProgram::deskTop are set to point at these new objects.

The TGroup constructor is also invoked to create a full screen view: the video TGroup::buffer and default palettes are initialized and the following TView::state flags are set:

 state = sfVisible | sfSelected | sfFocused |
         sfModal | sfExposed;
 


Member Data Documentation

TDeskTop *(* TProgInit::createDeskTop)(TRect) [protected]
 

Creates the desk top with the given size.

TMenuBar *(* TProgInit::createMenuBar)(TRect) [protected]
 

Creates the menu bar with the given size.

TStatusLine *(* TProgInit::createStatusLine)(TRect) [protected]
 

Creates the status line with the given size.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:31 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001