//SetIconifyCallback sets the iconification callback of the window, which is //called when the window is iconified or restored. func (w *Window) SetIconifyCallback(cbfun func(w *Window, iconified bool)) { if cbfun == nil { C.glfwSetWindowIconifyCallback(w.data, nil) } else { w.fIconifyHolder = cbfun C.glfwSetWindowIconifyCallbackCB(w.data) } }
// SetIconifyCallback sets the iconification callback of the window, which is // called when the window is iconified or restored. func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback) { previous = w.fIconifyHolder w.fIconifyHolder = cbfun if cbfun == nil { C.glfwSetWindowIconifyCallback(w.data, nil) } else { C.glfwSetWindowIconifyCallbackCB(w.data) } panicError() return previous }