本文整理匯總了Golang中C.SDL_ShowCursor函數的典型用法代碼示例。如果您正苦於以下問題:Golang SDL_ShowCursor函數的具體用法?Golang SDL_ShowCursor怎麽用?Golang SDL_ShowCursor使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了SDL_ShowCursor函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: ShowCursor
func ShowCursor(show bool) {
if show {
C.SDL_ShowCursor(C.SDL_TRUE)
} else {
C.SDL_ShowCursor(C.SDL_FALSE)
}
}
示例2: ShowCursor
// Toggle whether or not the cursor is shown on the screen.
func ShowCursor(toggle int) int {
GlobalMutex.Lock()
state := int(C.SDL_ShowCursor((C.int)(toggle)))
GlobalMutex.Unlock()
return state
}
示例3: ShowCursor
func ShowCursor(toggle int) int {
return int(C.SDL_ShowCursor(C.int(toggle)))
}
示例4: ShowCursor
// Toggle whether or not the cursor is shown on the screen.
func ShowCursor(toggle int) int {
state := int(C.SDL_ShowCursor((C.int)(toggle)))
return state
}
示例5: ShowCursor
func ShowCursor(toggle int) int {
_toggle := (C.int)(toggle)
return (int)(C.SDL_ShowCursor(_toggle))
}
示例6: ShowCursor
func ShowCursor(t int) bool {
return C.SDL_ShowCursor(C.int(t)) != 0
}