Function libui_ng_sys::uiWindowOnClosing
source · pub unsafe extern "C" fn uiWindowOnClosing(
w: *mut uiWindow,
f: Option<unsafe extern "C" fn(sender: *mut uiWindow, senderData: *mut c_void) -> c_int>,
data: *mut c_void
)Expand description
Registers a callback for when the window is to be closed.
@param w uiWindow instance.
@param f Callback function.\n
@p sender Back reference to the instance that triggered the callback.\n
@p senderData User data registered with the sender instance.\n
Return:\n
TRUE to destroys the window.\n
FALSE to abort closing and keep the window alive and visible.
@param data User data to be passed to the callback.
@note Only one callback can be registered at a time. @memberof uiWindow