Example #1
0
func (win32 *win32SystemObject) CreateWindow(x, y, width, height int) {
	title := []byte("Mob Rules")
	title = append(title, 0)
	win32.window = uintptr(unsafe.Pointer(C.GlopCreateWindow(
		unsafe.Pointer(&title[0]),
		C.int(x), C.int(y), C.int(width), C.int(height), 0, 8, 0)))
}
Example #2
0
func (linux *linuxSystemObject) CreateWindow(x, y, width, height int) {
	C.GlopCreateWindow(unsafe.Pointer(&(([]byte("linux window"))[0])), C.int(x), C.int(y), C.int(width), C.int(height))
}