Пример #1
0
func (w *Window) SetSize(width, height int) {
	C.setWindowSize(w.cw, C.int(width), C.int(height))
}
Пример #2
0
func (w *Window) SetSize(width, height int) {
	onMainThread(func() {
		C.setWindowSize(w.cw, _Ctype_int(width), _Ctype_int(height))
	})
}
Пример #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))
}