Exemple #1
0
// Implement native interface.
func (w *win) size(r *nrefs) (x int, y int, wx int, hy int) {
	var winx, winy, width, height int32
	C.gs_size(C.long(r.display), (*C.long)(&winx), (*C.long)(&winy), (*C.long)(&width), (*C.long)(&height))
	return int(winx), int(winy), int(width), int(height)
}
Exemple #2
0
// Implement native interface.
func (o *osx) size(r *nrefs) (x, y, w, h int) {
	var winx, winy, width, height float32
	C.gs_size(C.long(r.shell), (*C.float)(&winx), (*C.float)(&winy), (*C.float)(&width), (*C.float)(&height))
	return int(winx), int(winy), int(width), int(height)
}