Mana
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
Tab Class Reference

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

#include <tab.h>

Inheritance diagram for Tab:
ChatTab SkillTab SocialTab ChannelTab TmwAthena::GuildTab TmwAthena::PartyTab WhisperTab GuildTab PartyTab PlayerListTab

Public Member Functions

 Tab ()
 
void setCaption (const std::string &caption)
 Sets the caption of the tab.
 
void draw (gcn::Graphics *graphics) override
 Draw the tab.
 
void drawFrame (gcn::Graphics *graphics) override
 Draw the tab frame.
 
void setTabColor (const gcn::Color *color)
 Set the normal color fo the tab's text.
 
void setFlash (bool flash)
 Set tab flashing state.
 

Protected Member Functions

virtual void setCurrent ()
 

Private Attributes

const gcn::Color * mTabColor = nullptr
 
bool mFlash = false
 
int mPadding = 8
 

Friends

class TabbedArea
 

Detailed Description

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

Definition at line 32 of file tab.h.

Constructor & Destructor Documentation

◆ Tab()

Tab::Tab ( )

Definition at line 34 of file tab.cpp.

Member Function Documentation

◆ draw()

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

Draw the tab.

Definition at line 61 of file tab.cpp.

◆ drawFrame()

void Tab::drawFrame ( gcn::Graphics *  graphics)
override

Draw the tab frame.

Definition at line 104 of file tab.cpp.

◆ setCaption()

void Tab::setCaption ( const std::string &  caption)

Sets the caption of the tab.

Shadowing gcn::Tab::setCaption, which shouldn't be used because it calls gcn::Tab::adjustSize, which does not take into account the padding.

Definition at line 49 of file tab.cpp.

◆ setCurrent()

virtual void Tab::setCurrent ( )
inlineprotectedvirtual

Reimplemented in ChatTab.

Definition at line 66 of file tab.h.

◆ setFlash()

void Tab::setFlash ( bool  flash)

Set tab flashing state.

Definition at line 122 of file tab.cpp.

◆ setTabColor()

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

Set the normal color fo the tab's text.

Definition at line 117 of file tab.cpp.

Friends And Related Symbol Documentation

◆ TabbedArea

friend class TabbedArea
friend

Definition at line 65 of file tab.h.

Member Data Documentation

◆ mFlash

bool Tab::mFlash = false
private

Definition at line 70 of file tab.h.

◆ mPadding

int Tab::mPadding = 8
private

Definition at line 71 of file tab.h.

◆ mTabColor

const gcn::Color* Tab::mTabColor = nullptr
private

Definition at line 69 of file tab.h.


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