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

\brief Callback used for hit-testing.

\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.