本文整理汇总了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
}