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

View File

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

View File

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