diff options
author | Aaron Ash <aaron.ash@gmail.com> | 2017-04-12 17:58:32 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-05-30 19:00:57 +0200 |
commit | 43053cdfc34539dd73ba6a028090038f99d4093e (patch) | |
tree | 787829616f0e34cd92a89ee65d712db668e4b67a /include/mode.h | |
parent | 4e6af2eab84157794684c485d15fb9624ec0f306 (diff) |
view: Add icon (basic) support
Diffstat (limited to 'include/mode.h')
-rw-r--r-- | include/mode.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index fe237351..d9424ec2 100644 --- a/include/mode.h +++ b/include/mode.h @@ -27,6 +27,8 @@ #ifndef ROFI_MODE_H #define ROFI_MODE_H + +#include <cairo.h> /** * @defgroup MODE Mode * @@ -124,6 +126,16 @@ char * mode_get_display_value ( const Mode *mode, unsigned int selected_line, in * @param mode The mode to query * @param selected_line The entry to query * + * Returns the icon for the selected_line + * + * @returns allocated new cairo_surface_t if applicable + */ +cairo_surface_t * mode_get_icon ( const Mode *mode, unsigned int selected_line, int height ); + +/** + * @param mode The mode to query + * @param selected_line The entry to query + * * Return a string that can be used for completion. It has should have no markup. * * @returns allocated string. |