#include <screentitle.h>
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 |
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.
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.
virtual bool WoopsiUI::ScreenTitle::blur | ( | ) | [virtual] |
Remove focus from the gadget.
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.
clipRect | The clipping region to draw. |
Reimplemented from WoopsiUI::Gadget.
virtual bool WoopsiUI::ScreenTitle::focus | ( | ) | [virtual] |
Give the gadget focus.
Reimplemented from WoopsiUI::Gadget.
Screen* WoopsiUI::ScreenTitle::_screen [protected] |
Pointer to the containing screen