示例#1
0
文件: clipboard.go 项目: krig/Go-SDL2
func HasClipboardText() bool {
	has := C.SDL_HasClipboardText()
	return int(has) != 0
}
示例#2
0
文件: clipboard.go 项目: salihdb/sdl
// HasClipboardText returns true if the clipboard exists and contains a
// non-empty text string.
//
// Note: A Window must be created before calling this function.
func HasClipboardText() bool {
	if C.SDL_HasClipboardText() == C.SDL_TRUE {
		return true
	}
	return false
}
示例#3
0
// HasClipboardText (https://wiki.libsdl.org/SDL_HasClipboardText)
func HasClipboardText() bool {
	return C.SDL_HasClipboardText() > 0
}
示例#4
0
func HasClipboardText() bool {
	return C.SDL_HasClipboardText() == C.SDL_TRUE
}