示例#1
0
func (w *Window) IsClosed() (bool, error) {
	var closed bool
	aferr := C.af_is_window_closed((*C._Bool)(&closed), w.window)
	if aferr != 0 {
		return false, ErrIsWindowClosed
	}

	return closed, nil
}
示例#2
0
func (w *Window) IsClosed() (closed bool, e error) {
	e = af_call(C.af_is_window_closed((*C._Bool)(&closed), w.window))
	return
}