Type Alias flipperzero_sys::ViewDrawCallback

source ·
pub type ViewDrawCallback = Option<unsafe extern "C" fn(canvas: *mut Canvas, model: *mut c_void)>;
Expand description

View Draw callback

§Arguments

  • canvas - pointer to canvas
  • model - pointer to model called from GUI thread

Aliased Type§

enum ViewDrawCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut Canvas, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut Canvas, _: *mut c_void))

Some value of type T.