tabletcb

Type Alias tabletcb 

Source
pub type tabletcb = Option<unsafe extern "C" fn(t: *mut nctablet, drawfromtop: bool) -> c_int>;
Expand description

Tablet draw callback, provided a tablet (from which the ncplane and userptr may be extracted), and a bool indicating whether output ought be drawn from the top (true) or bottom (false). Returns non-negative count of output lines, which must be less than or equal to ncplane_dim_y(nctablet_plane(t)).

Aliased Type§

pub enum tabletcb {
    None,
    Some(unsafe extern "C" fn(*mut nctablet, bool) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut nctablet, bool) -> i32)

Some value of type T.