Add StopEvent

This commit is contained in:
vCaesar 2016-12-30 17:04:50 +08:00
parent f927b52279
commit 17fda726b0
3 changed files with 13 additions and 1 deletions

5
doc.md
View File

@ -48,6 +48,7 @@
#####[LEvent](#LEvent)(Equivalent to AddEvent,Wno-deprecated)
#####[AddEvent](#AddEvent)
#####[StopEvent](#StopEvent)
##[Window](#Window)
This is a work in progress.
@ -406,7 +407,9 @@ func main() {
Println("you press...", "mouse left button")
}
}
```
```
###<h3 id="StopEvent">.StopEvent()</h3>
stop listen global event
##<h2 id="Window">Window</h2>

View File

@ -48,6 +48,7 @@
#####[LEvent](#AddEvent)(相当于AddEvent,Wno-deprecated)
#####[AddEvent](#AddEvent)
#####[StopEvent](#StopEvent)
##[窗口](#Window)
This is a work in progress.
@ -421,6 +422,9 @@ func main() {
}
```
###<h3 id="StopEvent">.StopEvent()</h3>
停止事件监听
##<h2 id="Window">窗口</h2>
###<h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>

View File

@ -626,6 +626,11 @@ func AddEvent(aeve string) int {
return geve
}
//StopEvent Stop Event
func StopEvent() {
C.aStop()
}
//LEvent Add Event
func LEvent(aeve string) int {
cs := C.CString(aeve)