Example #1
0
File: glfw.go Project: andrebq/glfw
// SetWindowTitle changes the title of the opened window.
func SetWindowTitle(title string) { C.glfwSetWindowTitle(C.CString(title)) }
Example #2
0
File: glfw.go Project: maun/glfw
func SetWindowTitle(window Window, title string) {
	cs := C.CString(title)
	defer C.free(unsafe.Pointer(cs))
	C.glfwSetWindowTitle(C.GLFWwindow(window), cs)
}
Example #3
0
func (w *Window) SetTitle(s string) {
	C.glfwSetWindowTitle(w.w, C.CString(s))
}
Example #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)
}