#include <dialogbox.h>
Public Member Functions | |
DialogBox (StarkEngine *vm, Gfx::Driver *gfx, Cursor *cursor) | |
void | open (const Common::String &message, ConfirmCallback *confirmCallback, const Common::String &confirmLabel, const Common::String &cancelLabel) |
void | close () |
void | onScreenChanged () |
void | onKeyPress (const Common::CustomEventType customType) |
Public Member Functions inherited from Stark::Window | |
Window (Gfx::Driver *gfx, Cursor *cursor) | |
void | handleMouseMove () |
void | handleClick () |
void | handleRightClick () |
void | handleDoubleClick () |
void | handleGameLoop () |
void | render () |
bool | isMouseInside () const |
bool | isVisible () const |
Graphics::Surface * | getScreenshot () const |
Protected Member Functions | |
void | onRender () override |
void | onClick (const Common::Point &pos) override |
Protected Member Functions inherited from Stark::Window | |
virtual void | onMouseMove (const Common::Point &pos) |
virtual void | onRightClick (const Common::Point &pos) |
virtual void | onDoubleClick (const Common::Point &pos) |
virtual void | onGameLoop () |
Common::Point | getRelativeMousePosition () const |
Additional Inherited Members | |
Protected Attributes inherited from Stark::Window | |
Gfx::Driver * | _gfx |
Cursor * | _cursor |
Common::Rect | _position |
bool | _visible |
A confirmation dialog with two buttons
The cancel button closes the dialog without action. The confirm button executes a callback.
void Stark::DialogBox::open | ( | const Common::String & | message, |
ConfirmCallback * | confirmCallback, | ||
const Common::String & | confirmLabel, | ||
const Common::String & | cancelLabel | ||
) |
Make the dialog visible with the specified message
void Stark::DialogBox::close | ( | ) |
Hide the dialog performing no action
void Stark::DialogBox::onScreenChanged | ( | ) |
Called when the screen resolution changes
void Stark::DialogBox::onKeyPress | ( | const Common::CustomEventType | customType | ) |
Called when a keyboard key is pressed and the dialog is active