WoopsiUI::ScreenTitle Class Reference

#include <screentitle.h>

Inheritance diagram for WoopsiUI::ScreenTitle:
WoopsiUI::Gadget

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

Pointer to the containing screen


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

Generated on Sun Nov 15 11:35:37 2009 for Woopsi by  doxygen 1.6.1