spmenu/libs/img.h

27 lines
750 B
C
Raw Normal View History

2023-05-14 00:21:16 +02:00
/* See LICENSE file for copyright and license details. */
2023-03-13 21:21:40 +01:00
#if USEIMAGE
2023-04-05 20:44:09 +02:00
#include <errno.h>
#include <pwd.h>
#include <Imlib2.h>
#include <openssl/md5.h>
static void setimagesize(int width, int height);
static void setimageopts(void);
static void cleanupimage(void);
static void drawimage(void);
static void flipimage(void);
static void loadimage(const char *file, int *width, int *height);
static void loadimagecache(const char *file, int *width, int *height);
static void resizetoimageheight(int imagewidth, int imageheight);
#if USEWAYLAND
static void resizetoimageheight_wl(int imageheight);
#endif
#if USEX
static void resizetoimageheight_x11(int imageheight);
#endif
static void store_image_vars(void);
2023-04-05 20:44:09 +02:00
static Imlib_Image image = NULL;
2023-03-13 21:21:40 +01:00
#endif