ModeGetDisplayValue

Type Alias ModeGetDisplayValue 

Source
pub type ModeGetDisplayValue = Option<unsafe extern "C" fn(sw: *const Mode, selected_line: c_uint, state: *mut c_int, attribute_list: *mut *mut GList, get_entry: c_int) -> *mut c_char>;
Expand description

Get the string to display for the entry.

Returns the string and state for displaying.

  • selected_line: The selected line
  • state: The state to display [out]
  • attribute_list: List of extra (pango) attributes to apply when displaying. [out] [null]
  • get_entry: If it should only return the state

Aliased Type§

pub enum ModeGetDisplayValue {
    None,
    Some(unsafe extern "C" fn(*const Mode, u32, *mut i32, *mut *mut GList, i32) -> *mut i8),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const Mode, u32, *mut i32, *mut *mut GList, i32) -> *mut i8)

Some value of type T.