Exemplo n.º 1
0
func (w *Window) GetTitle() string {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	ctitle := C.SDL_GetWindowTitle(w.cWindow)

	return C.GoString(ctitle)
}
Exemplo n.º 2
0
func (w *Window) GetTitle() string {
	ctitle := C.SDL_GetWindowTitle(w.cWindow)

	return C.GoString(ctitle)
}
Exemplo n.º 3
0
func (window *Window) GetTitle() string {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (string)(C.GoString(C.SDL_GetWindowTitle(_window)))
}
Exemplo n.º 4
0
func (win *Window) GetTitle() string {
	return C.GoString(C.SDL_GetWindowTitle(win.c))
}
Exemplo n.º 5
0
// Window (https://wiki.libsdl.org/SDL_GetWindowTitle)
func (window *Window) GetTitle() string {
	return string(C.GoString(C.SDL_GetWindowTitle(window.cptr())))
}
Exemplo n.º 6
0
Arquivo: video.go Projeto: salihdb/sdl
// Title returns the title of the window.
func (win *Window) Title() (title string) {
	return C.GoString(C.SDL_GetWindowTitle(win.cWin))
}