NK_log_function

Type Alias NK_log_function 

Source
pub type NK_log_function = Option<unsafe extern "C" fn(arg1: c_int, arg2: *const c_char)>;
Expand description

Callback function for NK_set_log_function. The first argument is the log level (0 = Error, 1 = Warn, 2 = Info, 3 = DebugL1, 4 = Debug, 5 = DebugL2) and the second argument is the log message.

Aliased Type§

pub enum NK_log_function {
    None,
    Some(unsafe extern "C" fn(i32, *const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *const i8))

Some value of type T.