w4d v0.0.4 (2018-08-22T12:42:48Z)
Dub
Repo
PopupTextDialogWidget
w4d
widget
popup
dialog
text
A widget of text dialog.
class
PopupTextDialogWidget :
PopupDialogWidget
{
class
CustomButton
;
protected
TextWidget
_text
;
protected
PanelWidget
_buttons
;
ResultHandler
onResult
;
void
handleResult
(DialogButton btn);
this
();
void
loadText
(dstring v, FontFace face);
void
setButtons
(DialogButton[] btns, FontFace face);
}
Constructors
this
this
()
Members
Classes
CustomButton
class
CustomButton
Undocumented in source.
Functions
handleResult
void
handleResult
(DialogButton btn)
loadText
void
loadText
(dstring v, FontFace face)
Changes text.
setButtons
void
setButtons
(DialogButton[] btns, FontFace face)
Changes the buttons.
Variables
_buttons
PanelWidget
_buttons
;
Undocumented in source.
_text
TextWidget
_text
;
Undocumented in source.
onResult
ResultHandler
onResult
;
Inherited Members
From PopupDialogWidget
handlePopup
void
handlePopup
(bool opened, WindowContext w)
move
void
move
(vec2 , vec2 )
layout
vec2
layout
(vec2 pos, vec2 parentSize)
Meta
Source
See Implementation
w4d
widget
popup
dialog
text
aliases
ResultHandler
classes
PopupTextDialogWidget
enums
DialogButton
properties
toDString
A widget of text dialog.