This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

WidgetDialog Class

Inherits:WidgetWindow

This class creates a dialog window.

WidgetDialog Class

Members


static WidgetDialog(Gui gui, string str = 0, int x = 0, int y = 0)

Constructor. Creates a dialog window with given parameters.

Arguments

  • Gui gui - GUI, to which the dialog will belong.
  • string str - Window title. This is an optional parameter.
  • int x - Horizontal space between widgets in the window and between them and the window border. This is an optional parameter.
  • int y - Vertical space between widgets in the window and between them and the window border. This is an optional parameter.

WidgetDialog cast(Widget widget)

Arguments

  • Widget widget

WidgetButton getCancelButton()

Returns the button that cancels an action.

Return value

Cancel button.

int isCancelClicked()

Returns a value indicating if the cancel button is clicked.

Return value

1 if the cancel button is clicked; otherwise, 0.

void setCancelText(string text)

Sets a caption of the cancel button.

Arguments

  • string text - Cancel button caption.

string getCancelText()

Returns the caption of the cancel button. The default is Cancel.

Return value

Cancel button caption.

WidgetButton getCloseButton()

Returns the button that closes an action.

Return value

Close button.

int isCloseClicked()

Returns a value indicating if the close button is clicked.

Return value

1 if the close button is clicked; otherwise, 0.

void setCloseText(string text)

Sets a caption of the close button.

Arguments

  • string text - Close button caption to set.

string getCloseText()

Returns a caption of the close button. By default, it is empty.

Return value

Close button caption.

int isDone()

Returns a value indicating if the dialog window is closed.

Return value

1 if the dialog window is closed; otherwise, 0.

WidgetButton getOkButton()

Returns the button that approves an action.

Return value

Ok button.

int isOkClicked()

Returns a value indicating if the Ok button is clicked.

Return value

1 if the Ok button is clicked; otherwise, 0.

void setOkText(string text)

Sets a caption of the Ok button.

Arguments

  • string text - Ok button caption.

string getOkText()

Returns the caption of the Ok button. The default is Ok.

Return value

Ok button caption.

int getResult()

Returns a value indicating which button has been clicked.

Return value

1 if the Ok button is clicked; -1 if the cancel button is clicked; 0 if the close button is clicked.

WidgetDialog getWidgetDialog()

Returns a dialog pointer.

Return value

WidgetDialog pointer.

int type()

WidgetDialog type.

Return value

WidgetDialog type identifier.
Last update: 2017-07-03
Build: ()