diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-01 13:36:11 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-01 13:36:11 +0200 |
commit | 1d99363ce99d3412f20604ea93a49c7e3ee02340 (patch) | |
tree | 67e01edae4e4c8fd73576feefcb7355938c30177 /include/helper.h | |
parent | 93cb04e30f1c512a1744709f70f55faa080dbb70 (diff) |
helper: Move cairo_image_surface_create_from_svg to helper.c
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'include/helper.h')
-rw-r--r-- | include/helper.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h index 85034288..ab7fa1c2 100644 --- a/include/helper.h +++ b/include/helper.h @@ -27,6 +27,9 @@ #ifndef ROFI_HELPER_H #define ROFI_HELPER_H + +#include <cairo.h> + /** * @defgroup HELPERS Helpers */ @@ -265,4 +268,14 @@ int utf8_strncmp ( const char *a, const char* b, size_t n ) __attribute__( ( non * @returns FALSE On failure, TRUE on success */ int helper_execute_command ( const char *wd, const char *cmd, int run_in_term ); + +/** + * @param file The file path + * @param height The wanted height + * Gets a surface from an svg path + * + * @returns a cairo surface from an svg path + */ +cairo_surface_t *cairo_image_surface_create_from_svg ( const gchar* file, int height ); + #endif // ROFI_HELPER_H |