PixelLightAPI
.
|
Base class for window containers. More...
#include <WindowContainer.h>
Public Member Functions | |
PLGUI_API | WindowContainer (Widget *pParent=nullptr) |
Constructor. | |
virtual PLGUI_API | ~WindowContainer () |
Destructor. | |
virtual PLGUI_API Widget * | GetContentWidget () const |
Get content widget. | |
PLGUI_API void | Clear () |
Clear container. | |
PLGUI_API const PLCore::Container< Widget * > & | GetWindows () const |
Get list of windows inside the container. | |
PLGUI_API void | AddWindow (Widget *pWindow) |
Add window to container. | |
PLGUI_API void | RemoveWindow (Widget *pWindow) |
Remove window from container. | |
PLGUI_API int | GetSelection () const |
Get currently selected window. | |
PLGUI_API void | SetSelection (int nWindow) |
Set currently selected window. | |
PLGUI_API void | SetSelection (Widget *pWindow) |
Set currently selected window. | |
Public Attributes | |
PLCore::Event< Widget * > | EventAddWindow |
PLCore::Event< Widget * > | EventRemoveWindow |
PLCore::Event< int > | EventSelectWindow |
Widget * | m_pContentWidget |
PLCore::List< Widget * > | m_lstWindows |
int | m_nSelection |
Widget * | m_pSelection |
Protected Member Functions | |
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. |
Base class for window containers.
PLGUI_API PLGui::WindowContainer::WindowContainer | ( | Widget * | pParent = nullptr | ) |
Constructor.
[in] | pParent | Pointer to parent widget |
virtual PLGUI_API PLGui::WindowContainer::~WindowContainer | ( | ) | [virtual] |
Destructor.
virtual PLGUI_API Widget* PLGui::WindowContainer::GetContentWidget | ( | ) | const [virtual] |
Get content widget.
Reimplemented from PLGui::Widget.
PLGUI_API void PLGui::WindowContainer::Clear | ( | ) |
Clear container.
PLGUI_API const PLCore::Container<Widget*>& PLGui::WindowContainer::GetWindows | ( | ) | const |
Get list of windows inside the container.
PLGUI_API void PLGui::WindowContainer::AddWindow | ( | Widget * | pWindow | ) |
Add window to container.
[in] | pWindow | Window |
PLGUI_API void PLGui::WindowContainer::RemoveWindow | ( | Widget * | pWindow | ) |
Remove window from container.
[in] | pWindow | Window |
PLGUI_API int PLGui::WindowContainer::GetSelection | ( | ) | const |
Get currently selected window.
PLGUI_API void PLGui::WindowContainer::SetSelection | ( | int | nWindow | ) |
Set currently selected window.
[in] | nWindow | Index of currently selected window |
PLGUI_API void PLGui::WindowContainer::SetSelection | ( | Widget * | pWindow | ) |
Set currently selected window.
[in] | pWindow | Pointer to currently selected window |
virtual PLGUI_API void PLGui::WindowContainer::OnAddWindow | ( | Widget * | pWindow | ) | [protected, virtual] |
Called when a window has been added.
[in] | pWindow | Window |
Reimplemented in PLGui::TabContainer.
virtual PLGUI_API void PLGui::WindowContainer::OnRemoveWindow | ( | Widget * | pWindow | ) | [protected, virtual] |
Called when a window has been removed.
[in] | pWindow | Window |
Reimplemented in PLGui::TabContainer.
virtual PLGUI_API void PLGui::WindowContainer::OnSelectWindow | ( | int | nWindow | ) | [protected, virtual] |
Called when the current selection has been changed.
[in] | nWindow | Index of currently selected window |
Reimplemented in PLGui::TabContainer.
virtual PLGUI_API void PLGui::WindowContainer::OnAdjustContent | ( | ) | [protected, virtual] |
Called when the widget content has to be adjusted.
Reimplemented from PLGui::Widget.
Reimplemented in PLGui::TabContainer.
Window has been added
Window has been removed
Current selection has been changed
Inner widget that contains the content windows
List of windows
Index of currently selected window
Pointer to currently selected window
|