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

	ctitle := C.SDL_GetWindowTitle(w.cWindow)

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

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