#include <app.h>
Inheritance diagram for TBackground::
Public Methods | |
TBackground (const TRect &bounds, char aPattern) | |
virtual void | draw () |
virtual TPalette& | getPalette () const |
Static Public Methods | |
TStreamable* | build () |
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 |
TBackground is a very simple view which by default is the background of the desktop. It is a rectangle painted with an uniform pattern.
Definition at line 29 of file app.h.
|
Constructor. `bounds' is the bounding rectangle of the background. growMode is set to gfGrowHiX | gfGrowHiY, and the pattern data member is set to `aPattern'. |
|
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. |
|
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. |
|
Fills the background view rectangle with the current pattern in the default color. Reimplemented from TView. |
|
Returns a reference to the standard TBackground palette. Reimplemented from TView. |
|
Used to recover the view from a stream. Reads from the input stream `is'. Reimplemented from TView. |
|
Used to store the view in a stream. Writes to the output stream `os'. Reimplemented from TView. |
|
Undocumented. Reimplemented from TView. |
|
Is the pattern used to fill the view. |