Skip to main content

mode_get_icon

Function mode_get_icon 

Source
pub unsafe extern "C" fn mode_get_icon(
    mode: *mut Mode,
    selected_line: c_uint,
    height: c_int,
) -> *mut cairo_surface_t
Expand description

Returns the icon for the selected line.

Returns a newly allocated cairo_surface_t if applicable.

  • selected_line: The entry to query
  • height: The desired height of the icon