PixelLightAPI  .
Public Member Functions | Public Attributes | Protected Member Functions
PLGui::TabContainer Class Reference

Tab container. More...

#include <TabContainer.h>

Inheritance diagram for PLGui::TabContainer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLGUI_API TabContainer (Widget *pParent=nullptr)
 Constructor.
virtual PLGUI_API ~TabContainer ()
 Destructor.
PLGUI_API ESide GetSide () const
 Get side the tabbar is positioned on.
PLGUI_API void SetSide (ESide nSide)
 Set side the tabbar is positioned on.
PLGUI_API PLCore::uint32 GetOptions () const
 Get TabBar options.
PLGUI_API void SetOptions (PLCore::uint32 nOptions)
 Set TabBar options.
PLGUI_API PLCore::uint32 GetTabWidth () const
 Get tab width.
PLGUI_API void SetTabWidth (PLCore::uint32 nWidth)
 Set tab width.
PLGUI_API PLCore::uint32 GetTabHeight () const
 Get tab height.
PLGUI_API void SetTabHeight (PLCore::uint32 nHeight)
 Set tab height.

Public Attributes

PLCore::Event EventCreateWindow
PLCore::EventHandler
< TabBarEntry * > 
EventHandlerCloseTab
PLCore::EventHandler< int > EventHandlerSelectTab
PLCore::EventHandler EventHandlerCreateTab
TabBarm_pTabBar

Protected Member Functions

PLGUI_API void OnCreateWindow ()
 Called when a new window shall be created.
virtual PLGUI_API void OnAddWindow (Widget *pWindow)
 Called when a window has been added.
virtual PLGUI_API void OnRemoveWindow (Widget *pWindow)
 Called when a window has been removed.
virtual PLGUI_API void OnSelectWindow (int nWindow)
 Called when the current selection has been changed.
virtual PLGUI_API void OnAdjustContent ()
 Called when the widget content has to be adjusted.

Detailed Description

Tab container.


Constructor & Destructor Documentation

PLGUI_API PLGui::TabContainer::TabContainer ( Widget pParent = nullptr)

Constructor.

Parameters:
[in]pParentPointer to parent widget
virtual PLGUI_API PLGui::TabContainer::~TabContainer ( ) [virtual]

Destructor.


Member Function Documentation

PLGUI_API ESide PLGui::TabContainer::GetSide ( ) const

Get side the tabbar is positioned on.

Returns:
Side
PLGUI_API void PLGui::TabContainer::SetSide ( ESide  nSide)

Set side the tabbar is positioned on.

Parameters:
[in]nSideSide
PLGUI_API PLCore::uint32 PLGui::TabContainer::GetOptions ( ) const

Get TabBar options.

Returns:
TabBar options (combination of ETabBarOption values)
PLGUI_API void PLGui::TabContainer::SetOptions ( PLCore::uint32  nOptions)

Set TabBar options.

Parameters:
[in]nOptionsTabBar options
PLGUI_API PLCore::uint32 PLGui::TabContainer::GetTabWidth ( ) const

Get tab width.

Returns:
Tab width
Remarks:
see SetTabWidth()
PLGUI_API void PLGui::TabContainer::SetTabWidth ( PLCore::uint32  nWidth)

Set tab width.

Parameters:
[in]nWidthTab width
Note:
  • If side is SideTop or SideBottom and StaticTabSize is *not* set, tabs have a floating size. In that case, the width set by nWidth is the maximum size that a tab can have.
  • If side is SideLeft or SideRight, or StaticTabSize is set, tabs have a static size. In that case, every tab will get exactly the width set by nWidth.
PLGUI_API PLCore::uint32 PLGui::TabContainer::GetTabHeight ( ) const

Get tab height.

Returns:
Tab height
PLGUI_API void PLGui::TabContainer::SetTabHeight ( PLCore::uint32  nHeight)

Set tab height.

Parameters:
[in]nHeightTab height
PLGUI_API void PLGui::TabContainer::OnCreateWindow ( ) [protected]

Called when a new window shall be created.

virtual PLGUI_API void PLGui::TabContainer::OnAddWindow ( Widget pWindow) [protected, virtual]

Called when a window has been added.

Parameters:
[in]pWindowWindow

Reimplemented from PLGui::WindowContainer.

virtual PLGUI_API void PLGui::TabContainer::OnRemoveWindow ( Widget pWindow) [protected, virtual]

Called when a window has been removed.

Parameters:
[in]pWindowWindow

Reimplemented from PLGui::WindowContainer.

virtual PLGUI_API void PLGui::TabContainer::OnSelectWindow ( int  nWindow) [protected, virtual]

Called when the current selection has been changed.

Parameters:
[in]nWindowIndex of currently selected window

Reimplemented from PLGui::WindowContainer.

virtual PLGUI_API void PLGui::TabContainer::OnAdjustContent ( ) [protected, virtual]

Called when the widget content has to be adjusted.

Reimplemented from PLGui::WindowContainer.


Member Data Documentation

New window shall be created

Tab-bar


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:33
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported