Example #1
0
func (w *Window) GetTitle() string {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	ctitle := C.SDL_GetWindowTitle(w.cWindow)

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

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