Update doc

This commit is contained in:
vCaesar 2016-11-07 16:46:22 +08:00
parent 36bf29f1a2
commit fd4a82093b
2 changed files with 47 additions and 1 deletions

23
doc.md
View File

@ -42,6 +42,11 @@
#####[LEvent](#LEvent)
##[Window](#Window)
This is a work in progress.
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
##<h2 id="Keyboard">Keyboard</h2>
@ -366,3 +371,21 @@ func main() {
}
}
```
##<h2 id="Window">Window</h2>
###<h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>
Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
####Arguments:
title(string),
msg(string),
defaultButton(optional string),
cancelButton(optional string)
####Return:
Returns True if the default button was pressed, or False if cancelled.

View File

@ -42,6 +42,11 @@
#####[LEvent](#LEvent)
##[Window](#Window)
This is a work in progress.
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
##<h2 id="Keyboard">键盘</h2>
###<h3 id="SetKeyboardDelay">.SetKeyboardDelay(ms)</h3>
@ -379,4 +384,22 @@ func main() {
Println("you press...", "mouse left button")
}
}
```
```
##<h2 id="Window">Window</h2>
###<h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>
Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
####Arguments:
title(string),
msg(string),
defaultButton(optional string),
cancelButton(optional string)
####Return:
Returns True if the default button was pressed, or False if cancelled.