PixelLightAPI
.
|
Base class for dialog windows. More...
#include <Dialog.h>
Public Member Functions | |
PLGUI_API | Dialog (Widget *pParent=nullptr) |
Constructor. | |
virtual PLGUI_API | ~Dialog () |
Destructor. | |
PLGUI_API void | ShowDialog () |
Show dialog. | |
PLGUI_API void | CloseDialog (int nResult=0) |
Close dialog. | |
PLGUI_API int | GetResult () const |
Get result value. | |
virtual PLGUI_API void | OnCloseDialog (int nResult) |
Called when dialog has been closed. | |
Public Attributes | |
PLCore::Event | EventShowDialog |
PLCore::Event< int > | EventCloseDialog |
Protected Member Functions | |
virtual PLGUI_API void | OnClose () |
Called when the widget shall be closed. |
Base class for dialog windows.
PLGUI_API PLGui::Dialog::Dialog | ( | Widget * | pParent = nullptr | ) |
Constructor.
[in] | pParent | Pointer to parent widget |
virtual PLGUI_API PLGui::Dialog::~Dialog | ( | ) | [virtual] |
Destructor.
PLGUI_API void PLGui::Dialog::ShowDialog | ( | ) |
Show dialog.
PLGUI_API void PLGui::Dialog::CloseDialog | ( | int | nResult = 0 | ) |
Close dialog.
[in] | nResult | Result value |
PLGUI_API int PLGui::Dialog::GetResult | ( | ) | const |
Get result value.
virtual PLGUI_API void PLGui::Dialog::OnClose | ( | ) | [protected, virtual] |
Called when the widget shall be closed.
Reimplemented from PLGui::WidgetFunctions.
virtual PLGUI_API void PLGui::Dialog::OnCloseDialog | ( | int | nResult | ) | [virtual] |
Called when dialog has been closed.
[in] | nResult | Result value |
Dialog is closed
|