Type Alias sdl2_sys::SDL_HitTest

source ·
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.

\param win the SDL_Window where hit-testing was set on \param area an SDL_Point which should be hit-tested \param data what was passed as callback_data to SDL_SetWindowHitTest() \return an SDL_HitTestResult value.

\sa SDL_SetWindowHitTest

Aliased Type§

enum SDL_HitTest {
    None,
    Some(unsafe extern "C" fn(_: *mut SDL_Window, _: *const SDL_Point, _: *mut c_void) -> SDL_HitTestResult),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut SDL_Window, _: *const SDL_Point, _: *mut c_void) -> SDL_HitTestResult)

Some value of type T.