TDeskTop Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


The desktop of the application More...

#include <app.h>

Inherits: TGroup, TDeskInit

Public Members

Protected Members


Detailed Description

The desktop of the application.

TDesktop is a simple child of TGroup. By default it has a TBackground object inside which paints its background. All the application windows are inserted and showed in this object.

See Also: TApplication, TGroup


TDeskTop( const TRect& bounds ) [public]

Constructor.

`bounds' is the bounding rectangle of the desktop.

void cascade( const TRect& ) [public]

Moves all the windows in a cascade-like fashion.

void handleEvent( TEvent& ) [public virtual]

Standard TGroup event handler.

Calls TGroup::handleEvent() and after checks for commands cmNext and cmPrev.

See Also:
TGroup::handleEvent

TBackground* initBackground( TRect ) [public static]

Creates a new background.

Returns a pointer to a newly-allocated TBackground object. Just redefine it if you want a custom background.

See Also:
TBackground

void tile( const TRect& ) [public]

Moves all the windows in a tile-like fashion.

void tileError() [public virtual]

Called on tiling error.

This method is called whenever cascade() or tile() run into troubles in moving the windows. You can redefine it if you want to give an error message to the user.

See Also:
TDeskTop::cascade, TDeskTop::tile

void shutDown() [public virtual]

Releases TDeskTop resources.

This method releases all the resources allocated by the TDeskTop. It sets pointer `background' to 0 and then calls TGroup::shutDown().

See Also:
TDeskTop::background, TGroup::shutDown

static char defaultBkgrnd[public]

The default pattern which will be used for painting the background.

TStreamable* build() [public static]

Creates a new TDeskTop.

Used to recover the view from a stream.

TBackground *background[protected]

This variable stores a pointer to the background object.

Boolean tileColumnsFirst[protected]

True if method tile() should favour columns first.

See Also:
TDeskTop::tile

TDeskTop( StreamableInit ) [protected]

Constructor.

Used to recover the view from a stream.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc