Esempio n. 1
0
File: glfw.go Progetto: andrebq/glfw
// SetWindowTitle changes the title of the opened window.
func SetWindowTitle(title string) { C.glfwSetWindowTitle(C.CString(title)) }
Esempio n. 2
0
File: glfw.go Progetto: maun/glfw
func SetWindowTitle(window Window, title string) {
	cs := C.CString(title)
	defer C.free(unsafe.Pointer(cs))
	C.glfwSetWindowTitle(C.GLFWwindow(window), cs)
}
Esempio n. 3
0
func (w *Window) SetTitle(s string) {
	C.glfwSetWindowTitle(w.w, C.CString(s))
}
Esempio n. 4
0
//SetTitle sets the window title, encoded as UTF-8, of the window.
//
//This function may only be called from the main thread. See
//https://code.google.com/p/go-wiki/wiki/LockOSThread
func (w *Window) SetTitle(title string) {
	t := C.CString(title)
	defer C.free(unsafe.Pointer(t))
	C.glfwSetWindowTitle(w.data, t)
}