コード例 #1
0
ファイル: x11.go プロジェクト: dylanpoe/golang.org
func newWindow(width, height int32) uintptr {
	retc := make(chan uintptr)
	uic <- uiClosure{
		f: func() uintptr {
			return uintptr(C.doNewWindow(C.int(width), C.int(height)))
		},
		retc: retc,
	}
	return <-retc
}
コード例 #2
0
ファイル: x11.go プロジェクト: morero/exp
func newWindow(opts *screen.NewWindowOptions) (uintptr, error) {
	width, height := optsSize(opts)
	retc := make(chan uintptr)
	uic <- uiClosure{
		f: func() uintptr {
			return uintptr(C.doNewWindow(C.int(width), C.int(height)))
		},
		retc: retc,
	}
	return <-retc, nil
}
コード例 #3
0
ファイル: cocoa.go プロジェクト: dylanpoe/golang.org
func newWindow(width, height int32) uintptr {
	return uintptr(C.doNewWindow(C.int(width), C.int(height)))
}
コード例 #4
0
ファイル: cocoa.go プロジェクト: kardianos/garage
func newWindow(opts *screen.NewWindowOptions) (uintptr, error) {
	width, height := optsSize(opts)
	return uintptr(C.doNewWindow(C.int(width), C.int(height))), nil
}