pub type XPWidgetFunc_t = Option<unsafe extern "C" fn(inMessage: XPWidgetMessage, inWidget: XPWidgetID, inParam1: isize, inParam2: isize) -> c_int>;Expand description
XPWidgetFunc_t
This function defines your custom widget’s behavior. It will be called by the widgets library to send messages to your widget. The message and widget ID are passed in, as well as two pointer-width signed parameters whose meaning varies with the message. Return 1 to indicate that you have processed the message, 0 to indicate that you have not. For any message that is not understood, return 0.
Aliased Type§
pub enum XPWidgetFunc_t {
None,
Some(unsafe extern "C" fn(i32, *mut c_void, isize, isize) -> i32),
}