pub type SDL_HitTest = Option<unsafe extern "C" fn(win: *mut SDL_Window, area: *const SDL_Point, data: *mut c_void) -> SDL_HitTestResult>;Expand description
Callback used for hit-testing.
Parameter: win the SDL_Window where hit-testing was set on.
Parameter: area an SDL_Point which should be hit-tested.
Parameter: data what was passed as callback_data to SDL_SetWindowHitTest().
Returns: an SDL_HitTestResult value.
See Also: SDL_SetWindowHitTest
Aliased Type§
pub enum SDL_HitTest {
None,
Some(unsafe extern "C" fn(*mut SDL_Window, *const SDL_Point, *mut c_void) -> SDL_HitTestResult),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut SDL_Window, *const SDL_Point, *mut c_void) -> SDL_HitTestResult)
Some value of type T.