PixelLightAPI
.
|
Main GUI class. More...
#include <Gui.h>
Public Member Functions | |
PLGUI_API | Gui (const PLCore::String &sGui="") |
Get system GUI. | |
virtual PLGUI_API | ~Gui () |
Destructor. | |
PLGUI_API GuiImpl * | GetImpl () const |
Get implementation. | |
PLGUI_API void | Shutdown () |
Shut down GUI and clean up. | |
PLGUI_API bool | IsActive () const |
Check if the GUI is still active. | |
PLGUI_API void | Exit () |
Exit application. | |
PLGUI_API bool | HasPendingMessages () const |
Check if there are system messages waiting. | |
PLGUI_API void | ProcessMessages () |
Process all waiting messages, blocks if no messages are waiting. | |
PLGUI_API void | PostMessage (const GuiMessage &cMessage) |
Post message to the message queue. | |
PLGUI_API void | SendMessage (const GuiMessage &cMessage) |
Send and process a message directly. | |
PLGUI_API void | WakeUp () |
Wakeup message loop. | |
PLGUI_API const PLCore::Container < MessageFilter * > & | GetMessageFilters () const |
Get message filters. | |
PLGUI_API void | AddMessageFilter (MessageFilter *pFilter) |
Add message filter. | |
PLGUI_API void | RemoveMessageFilter (MessageFilter *pFilter) |
Remove and destroy message filter. | |
PLGUI_API Widget * | GetRootWidget () const |
Returns the root widget. | |
PLGUI_API const PLCore::Container< Screen * > & | GetScreens () const |
Get list of screens (monitors) | |
PLGUI_API Screen * | GetScreen (const PLCore::String &sName) const |
Get screen by name. | |
PLGUI_API Screen * | GetDefaultScreen () const |
Get default screen. | |
PLGUI_API FontManager & | GetFontManager () |
Get font manager. | |
PLGUI_API CursorManager & | GetCursorManager () |
Get cursor manager. | |
PLGUI_API ClipBoard & | GetClipBoard () |
Get clipboard. | |
PLGUI_API bool | HasTaskbar () const |
Check if the GUI has a taskbar. | |
PLGUI_API bool | IsMouseVisible () const |
Check if the mouse cursor is visible. | |
PLGUI_API void | SetMouseVisible (bool bVisible) |
Set mouse cursor visibility. | |
PLGUI_API Widget * | GetMouseOverWidget () const |
Get widget that the mouse is currently in. | |
PLGUI_API Widget * | GetFocusWidget () const |
Get widget that currently has the focus. | |
PLGUI_API void | ShowTooltip (const PLMath::Vector2i &vPos, const PLCore::String &sTooltip) |
Display a tooltip. | |
PLGUI_API Theme * | GetTheme () const |
Get theme. | |
PLGUI_API void | SetTheme (Theme *pTheme) |
Set theme. | |
PLGUI_API void | SetTheme (const PLCore::String &sClass, const PLCore::String &sOptions) |
Set theme. | |
PLGUI_API PLCore::uint64 | GetHoverTime () const |
Get time after which a hove event occurs. | |
PLGUI_API void | SetHoverTime (PLCore::uint64 nTimeout) |
Set time after which a hove event occurs. |
Main GUI class.
PLGUI_API PLGui::Gui::Gui | ( | const PLCore::String & | sGui = "" | ) |
Get system GUI.
Constructor
[in] | sGui | Name of the GUI backend that shall be used. Just leave this empty for the system GUI |
virtual PLGUI_API PLGui::Gui::~Gui | ( | ) | [virtual] |
Destructor.
PLGUI_API GuiImpl* PLGui::Gui::GetImpl | ( | ) | const |
Get implementation.
PLGUI_API void PLGui::Gui::Shutdown | ( | ) |
Shut down GUI and clean up.
PLGUI_API bool PLGui::Gui::IsActive | ( | ) | const |
Check if the GUI is still active.
PLGUI_API void PLGui::Gui::Exit | ( | ) |
Exit application.
PLGUI_API bool PLGui::Gui::HasPendingMessages | ( | ) | const |
Check if there are system messages waiting.
PLGUI_API void PLGui::Gui::ProcessMessages | ( | ) |
Process all waiting messages, blocks if no messages are waiting.
PLGUI_API void PLGui::Gui::PostMessage | ( | const GuiMessage & | cMessage | ) |
Post message to the message queue.
[in] | cMessage | Message to be posted |
PLGUI_API void PLGui::Gui::SendMessage | ( | const GuiMessage & | cMessage | ) |
Send and process a message directly.
[in] | cMessage | Message to be sent |
PLGUI_API void PLGui::Gui::WakeUp | ( | ) |
Wakeup message loop.
PLGUI_API const PLCore::Container<MessageFilter*>& PLGui::Gui::GetMessageFilters | ( | ) | const |
Get message filters.
PLGUI_API void PLGui::Gui::AddMessageFilter | ( | MessageFilter * | pFilter | ) |
Add message filter.
[in] | pFilter | Message filter, will be destroyed by Gui automatically |
PLGUI_API void PLGui::Gui::RemoveMessageFilter | ( | MessageFilter * | pFilter | ) |
Remove and destroy message filter.
[in] | pFilter | Message filter |
PLGUI_API Widget* PLGui::Gui::GetRootWidget | ( | ) | const |
Returns the root widget.
PLGUI_API const PLCore::Container<Screen*>& PLGui::Gui::GetScreens | ( | ) | const |
Get list of screens (monitors)
PLGUI_API Screen* PLGui::Gui::GetScreen | ( | const PLCore::String & | sName | ) | const |
Get screen by name.
[in] | sName | Name of screen |
PLGUI_API Screen* PLGui::Gui::GetDefaultScreen | ( | ) | const |
Get default screen.
PLGUI_API FontManager& PLGui::Gui::GetFontManager | ( | ) |
Get font manager.
PLGUI_API CursorManager& PLGui::Gui::GetCursorManager | ( | ) |
Get cursor manager.
PLGUI_API ClipBoard& PLGui::Gui::GetClipBoard | ( | ) |
Get clipboard.
PLGUI_API bool PLGui::Gui::HasTaskbar | ( | ) | const |
Check if the GUI has a taskbar.
PLGUI_API bool PLGui::Gui::IsMouseVisible | ( | ) | const |
Check if the mouse cursor is visible.
PLGUI_API void PLGui::Gui::SetMouseVisible | ( | bool | bVisible | ) |
Set mouse cursor visibility.
[in] | bVisible | Shall the mouse cursor be visible? |
PLGUI_API Widget* PLGui::Gui::GetMouseOverWidget | ( | ) | const |
Get widget that the mouse is currently in.
PLGUI_API Widget* PLGui::Gui::GetFocusWidget | ( | ) | const |
Get widget that currently has the focus.
PLGUI_API void PLGui::Gui::ShowTooltip | ( | const PLMath::Vector2i & | vPos, |
const PLCore::String & | sTooltip | ||
) |
Display a tooltip.
[in] | vPos | Position of tooltip |
[in] | sTooltip | Tooltip text |
PLGUI_API Theme* PLGui::Gui::GetTheme | ( | ) | const |
Get theme.
PLGUI_API void PLGui::Gui::SetTheme | ( | Theme * | pTheme | ) |
Set theme.
[in] | pTheme | Theme |
PLGUI_API void PLGui::Gui::SetTheme | ( | const PLCore::String & | sClass, |
const PLCore::String & | sOptions | ||
) |
PLGUI_API PLCore::uint64 PLGui::Gui::GetHoverTime | ( | ) | const |
Get time after which a hove event occurs.
PLGUI_API void PLGui::Gui::SetHoverTime | ( | PLCore::uint64 | nTimeout | ) |
Set time after which a hove event occurs.
[in] | nTimeout | Timeout (in milliseconds) |
|