Tab Class Reference

#include <tab.h>

Inheritance diagram for Tab:

ChatTab ChannelTab PartyTab WhisperTab

List of all members.


Detailed Description

A tab, the same as the Guichan tab in 0.8, but extended to allow transparency.

Definition at line 34 of file tab.h.


Public Member Functions

 Tab ()
 ~Tab ()
void draw (gcn::Graphics *graphics)
 Draw the tabbed area.
void setTabColor (const gcn::Color &color)
 Set the normal color fo the tab's text.
void setHighlighted (bool high)
 Set tab highlighted.

Protected Member Functions

virtual void setCurrent ()

Private Member Functions

void init ()
 Load images if no other instances exist yet.

Private Attributes

gcn::Color mTabColor
bool mHighlighted

Static Private Attributes

static ImageRect tabImg [4]
 Tab state graphics.
static int mInstances = 0
 Number of tab instances.
static float mAlpha = 1.0

Friends

class TabbedArea

Constructor & Destructor Documentation

Tab::Tab (  ) 

Definition at line 65 of file tab.cpp.

Tab::~Tab (  ) 

Definition at line 71 of file tab.cpp.


Member Function Documentation

void Tab::draw ( gcn::Graphics *  graphics  ) 

Draw the tabbed area.

Definition at line 119 of file tab.cpp.

void Tab::setTabColor ( const gcn::Color &  color  ) 

Set the normal color fo the tab's text.

Definition at line 162 of file tab.cpp.

void Tab::setHighlighted ( bool  high  ) 

Set tab highlighted.

Definition at line 167 of file tab.cpp.

virtual void Tab::setCurrent (  )  [inline, protected, virtual]

Reimplemented in ChatTab.

Definition at line 57 of file tab.h.

void Tab::init (  )  [private]

Load images if no other instances exist yet.

Definition at line 84 of file tab.cpp.


Friends And Related Function Documentation

friend class TabbedArea [friend]

Definition at line 56 of file tab.h.


Member Data Documentation

ImageRect Tab::tabImg [static, private]

Tab state graphics.

Definition at line 63 of file tab.h.

int Tab::mInstances = 0 [static, private]

Number of tab instances.

Definition at line 64 of file tab.h.

float Tab::mAlpha = 1.0 [static, private]

Definition at line 65 of file tab.h.

gcn::Color Tab::mTabColor [private]

Definition at line 67 of file tab.h.

bool Tab::mHighlighted [private]

Definition at line 68 of file tab.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5