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

TBackground Class Reference

The default desktop background. More...

#include <app.h>

Inheritance diagram for TBackground::

TView TObject TStreamable List of all members.

Public Methods

 TBackground (const TRect &bounds, char aPattern)
virtual void draw ()
virtual TPalettegetPalette () const

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TBackground (StreamableInit)
virtual void write (opstream &os)
virtual void* read (ipstream &is)

Protected Attributes

char pattern

Detailed Description

The default desktop background.

TBackground is a very simple view which by default is the background of the desktop. It is a rectangle painted with an uniform pattern.

See also:
TDeskTop

Definition at line 29 of file app.h.


Constructor & Destructor Documentation

TBackground::TBackground ( const TRect & bounds,
char aPattern )
 

Constructor.

`bounds' is the bounding rectangle of the background.

growMode is set to gfGrowHiX | gfGrowHiY, and the pattern data member is set to `aPattern'.

TBackground::TBackground ( StreamableInit ) [protected]
 

Constructor.

Used to recover the view from a stream.

Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit.


Member Function Documentation

TStreamable * TBackground::build ( ) [static]
 

Creates a new TBackground.

Used to recover the view from a stream.

Called to create an object in certain stream-reading situations.

Reimplemented from TView.

void TBackground::draw ( ) [virtual]
 

Fills the background view rectangle with the current pattern in the default color.

Reimplemented from TView.

TPalette & TBackground::getPalette ( ) const [virtual]
 

Returns a reference to the standard TBackground palette.

Reimplemented from TView.

void * TBackground::read ( ipstream & is ) [protected, virtual]
 

Used to recover the view from a stream.

Reads from the input stream `is'.

Reimplemented from TView.

void TBackground::write ( opstream & os ) [protected, virtual]
 

Used to store the view in a stream.

Writes to the output stream `os'.

Reimplemented from TView.


Member Data Documentation

const char *const TBackground::name [static]
 

Undocumented.

Reimplemented from TView.

Definition at line 86 of file app.h.

char TBackground::pattern [protected]
 

Is the pattern used to fill the view.

Definition at line 54 of file app.h.


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