/wallpaper.h

A C/C++ single header library to get and set desktop background.

Primary LanguageCMIT LicenseMIT

wallpaper.h

A C/C++ library to get and set desktop background.

API

typedef enum {
	WALLPAPER_FILL,
	WALLPAPER_FIT,
	WALLPAPER_STRETCH,
	WALLPAPER_TILE,
	WALLPAPER_CENTER,
	WALLPAPER_SPAN
} wallpaper_mode;

int wallpaper_get(char* file_path);

int wallpaper_set(const char* file_path);

int wallpaper_set_mode(wallpaper_mode mode);

int wallpaper_set_from_url(const char* url);

Supported desktops

  • Windows

License

This repo is released under the MIT.