Pioneer
Classes | Public Member Functions | Public Attributes | List of all members
Gui::Tabbed Class Reference

#include <GuiTabbed.h>

Inheritance diagram for Gui::Tabbed:
Inheritance graph
[legend]
Collaboration diagram for Gui::Tabbed:
Collaboration graph
[legend]

Public Member Functions

 Tabbed ()
 
void AddPage (Widget *label, Widget *child)
 
void Remove (Widget *child)
 
virtual void Show ()
 
virtual void Hide ()
 
virtual void Draw ()
 
virtual void GetSizeRequested (float size[2])
 
virtual void OnChildResizeRequest (Widget *)
 
virtual void UpdateAllChildSizes ()
 
virtual bool OnMouseDown (MouseButtonEvent *e)
 
void SelectPage (int page)
 
int GetCurrentPage () const
 
virtual void OnActivate ()
 
- Public Member Functions inherited from Gui::Container
 Container ()
 
virtual ~Container ()
 
bool OnMouseUp (MouseButtonEvent *e)
 
bool OnMouseMotion (MouseMotionEvent *e)
 
void RemoveAllChildren ()
 
void DeleteAllChildren ()
 
void GetChildPosition (const Widget *child, float outPos[2]) const
 
int GetNumChildren ()
 
void ShowChildren ()
 
void HideChildren ()
 
virtual void ShowAll ()
 
virtual void HideAll ()
 
void SetBgColor (const Color &col)
 
void SetTransparency (bool a)
 
void RemoveChild (Widget *w)
 
- Public Member Functions inherited from Gui::Widget
 Widget ()
 
virtual ~Widget ()
 
virtual void GetMinimumSize (float size[2])
 
void GetAbsolutePosition (float pos[2]) const
 
void GetSize (float size[2])
 
void SetSize (float w, float h)
 
void ResizeRequest ()
 
void SetShortcut (SDL_Keycode key, SDL_Keymod mod)
 
void SetScissor (bool enabled)
 
bool GetEnabled ()
 
void SetEnabled (bool v)
 
virtual void GrabFocus ()
 
bool IsFocused ()
 
void HideTooltip ()
 
bool IsVisible () const
 
Container * GetParent () const
 
void SetParent (Container *p)
 
void SetToolTip (std::string s)
 
const std::string & GetToolTip () const
 
virtual void OnMouseEnter ()
 
virtual void OnMouseLeave ()
 
virtual bool OnKeyDown (const SDL_Keysym *sym)
 
virtual void OnTextInput (Uint32 unicode)
 
bool IsMouseOver ()
 
void OnPreShortcut (const SDL_Keysym *sym)
 
unsigned int GetEventMask ()
 

Public Attributes

sigc::signal< void, int > onSelectPage
 
- Public Attributes inherited from Gui::Container
sigc::signal< void, MouseButtonEvent * > onMouseButtonEvent
 
- Public Attributes inherited from Gui::Widget
sigc::signal< void > onMouseEnter
 
sigc::signal< void > onMouseLeave
 
sigc::signal< void > onSetSize
 
sigc::signal< void > onDelete
 
float w
 
float h
 

Additional Inherited Members

- Public Types inherited from Gui::Widget
enum  EventMask {
  EVENT_NONE = 0 , EVENT_KEYDOWN = 1 << 0 , EVENT_KEYUP = 1 << 1 , EVENT_MOUSEDOWN = 1 << 2 ,
  EVENT_MOUSEUP = 1 << 3 , EVENT_MOUSEMOTION = 1 << 4
}
 
- Static Public Attributes inherited from Gui::Widget
static const unsigned int EVENT_ALL = 0xffffffff
 
- Protected Types inherited from Gui::Container
typedef std::list< widget_pos > WidgetList
 
- Protected Member Functions inherited from Gui::Container
void PrependChild (Widget *w, float x, float y)
 
void AppendChild (Widget *w, float x, float y)
 
void MoveChild (Widget *w, float x, float y)
 
WidgetList::const_iterator FindChild (const Widget *w) const
 
WidgetList::iterator FindChild (const Widget *w)
 
- Protected Member Functions inherited from Gui::Widget
virtual std::string GetOverrideTooltip ()
 
void UpdateOverriddenTooltip ()
 
- Protected Attributes inherited from Gui::Container
WidgetList m_children
 
- Protected Attributes inherited from Gui::Widget
unsigned int m_eventMask
 
struct {
   SDL_Keycode   sym
 
   SDL_Keymod   mod
 
} m_shortcut
 

Constructor & Destructor Documentation

◆ Tabbed()

Gui::Tabbed::Tabbed ( )

Member Function Documentation

◆ AddPage()

void Gui::Tabbed::AddPage ( Widget *  label,
Widget *  child 
)
Here is the call graph for this function:

◆ Draw()

void Gui::Tabbed::Draw ( )
virtual

Reimplemented from Gui::Container.

Here is the call graph for this function:

◆ GetCurrentPage()

int Gui::Tabbed::GetCurrentPage ( ) const
inline

◆ GetSizeRequested()

void Gui::Tabbed::GetSizeRequested ( float  size[2])
virtual

containers call this on children. input: size[] will contain max permissible size output: size[] will contain what space the widget desires

Implements Gui::Widget.

◆ Hide()

void Gui::Tabbed::Hide ( )
virtual

Reimplemented from Gui::Widget.

Here is the call graph for this function:

◆ OnActivate()

void Gui::Tabbed::OnActivate ( )
virtual

Reimplemented from Gui::Widget.

Here is the call graph for this function:

◆ OnChildResizeRequest()

void Gui::Tabbed::OnChildResizeRequest ( Widget *  child)
virtual

Implements Gui::Container.

Here is the call graph for this function:

◆ OnMouseDown()

bool Gui::Tabbed::OnMouseDown ( MouseButtonEvent *  e)
virtual

Reimplemented from Gui::Container.

Here is the call graph for this function:

◆ Remove()

void Gui::Tabbed::Remove ( Widget *  child)
Here is the call graph for this function:

◆ SelectPage()

void Gui::Tabbed::SelectPage ( int  page)
Here is the call graph for this function:

◆ Show()

void Gui::Tabbed::Show ( )
virtual

Reimplemented from Gui::Container.

Here is the call graph for this function:

◆ UpdateAllChildSizes()

void Gui::Tabbed::UpdateAllChildSizes ( )
virtual

Implements Gui::Container.

Here is the call graph for this function:

Member Data Documentation

◆ onSelectPage

sigc::signal<void, int> Gui::Tabbed::onSelectPage

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