Exemple #1
0
func (w *Window) SetSize(width, height int) {
	C.setWindowSize(w.cw, C.int(width), C.int(height))
}
Exemple #2
0
func (w *Window) SetSize(width, height int) {
	onMainThread(func() {
		C.setWindowSize(w.cw, _Ctype_int(width), _Ctype_int(height))
	})
}
Exemple #3
0
func (w *Window) SetSize(width, height int) {
	w.oplock.Lock()
	defer w.oplock.Unlock()

	C.setWindowSize(w.cw, _Ctype_int(width), _Ctype_int(height))
}