ViewInputCallback

Type Alias ViewInputCallback 

Source
pub type ViewInputCallback = Option<unsafe extern "C" fn(event: *mut InputEvent, context: *mut c_void) -> bool>;
Expand description

View Input callback

§Arguments

  • event - pointer to input event data
  • context - pointer to context

§Returns

true if event handled, false if event ignored called from GUI thread

Aliased Type§

pub enum ViewInputCallback {
    None,
    Some(unsafe extern "C" fn(*mut InputEvent, *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut InputEvent, *mut c_void) -> bool)

Some value of type T.