# WoopsiUI::ScreenTitle Class Reference

`#include <screentitle.h>`

Inheritance diagram for WoopsiUI::ScreenTitle:

List of all members.

## Public Member Functions
| ScreenTitle (u16 height, Screen *screen, FontBase *font=NULL)
virtual void | draw (Rect clipRect)
virtual bool | focus ()
virtual bool | blur ()
## Protected Member Functions
virtual | ~ScreenTitle ()
| ScreenTitle (const ScreenTitle &screenTitle)
## Protected Attributes
Screen * | _screen

## Detailed Description

Title bar for the AmigaScreen class. Mimics the appearance of the title bar from Amiga Workbench 3.x. Shows the screen's name and offers depth (z-order) and flip (physical display swapping) buttons.

## Constructor & Destructor Documentation

WoopsiUI::ScreenTitle::ScreenTitle | ( | u16 | height,
|  | Screen * | screen,
|  | FontBase * | font = `NULL` |
| ) |  |  |

Constructor.

Parameters:

  | height | The height of the title bar.
  | screen | Pointer to the screen that contains this gadget.
  | font | The font to use for the title bar.

virtual WoopsiUI::ScreenTitle::~ScreenTitle | ( |  | ) | `[inline, protected, virtual]`

Destructor.

WoopsiUI::ScreenTitle::ScreenTitle | ( | const ScreenTitle & | screenTitle | ) | `[inline, protected]`

Copy constructor is protected to prevent usage.

## Member Function Documentation

virtual bool WoopsiUI::ScreenTitle::blur | ( |  | ) | `[virtual]`

Remove focus from the gadget.

Returns:
  True if the gadget lost focus correctly.

Reimplemented from WoopsiUI::Gadget.

virtual void WoopsiUI::ScreenTitle::draw | ( | Rect | clipRect | ) | `[virtual]`

Draw the area of this gadget that falls within the clipping region. Called by the draw() function to draw all visible regions.

Parameters:

  | clipRect | The clipping region to draw.

See also:
  draw()

Reimplemented from WoopsiUI::Gadget.

virtual bool WoopsiUI::ScreenTitle::focus | ( |  | ) | `[virtual]`

Give the gadget focus.

Returns:
  True if the gadget received focus correctly.

Reimplemented from WoopsiUI::Gadget.

## Member Data Documentation

Screen* WoopsiUI::ScreenTitle::_screen`[protected]`

Pointer to the containing screen

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

- C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.40/Woopsi/libwoopsi/include/screentitle.h