示例#1
0
func (w *Window) SetSize(width, height uint) error {
	aferr := C.af_set_size(w.window, C.uint(width), C.uint(height))
	if aferr != 0 {
		return ErrSetSize
	}
	return nil
}
示例#2
0
func (w *Window) SetSize(width, height uint) error {
	return af_call(C.af_set_size(w.window, C.uint(width), C.uint(height)))
}