Function libui_ng_sys::uiMenuItemOnClicked
source · pub unsafe extern "C" fn uiMenuItemOnClicked(
m: *mut uiMenuItem,
f: Option<unsafe extern "C" fn(sender: *mut uiMenuItem, window: *mut uiWindow, senderData: *mut c_void)>,
data: *mut c_void
)Expand description
Registers a callback for when the menu item is clicked.
@param m uiMenuItem instance.
@param f Callback function.\n
@p sender Back reference to the instance that triggered the callback.\n
@p window Reference to the window from which the callback got triggered.
@p senderData User data registered with the sender instance.
@param data User data to be passed to the callback.
@note Only one callback can be registered at a time. @memberof uiMenuItem