Mana
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Wallpaper Class Reference

Handles organizing and choosing of wallpapers. More...

#include <wallpaper.h>

Static Public Member Functions

static void loadWallpapers ()
 Reads the folder that contains wallpapers and organizes the wallpapers found by area, width, and height.
 
static std::string getWallpaper (int width, int height)
 Returns the largest wallpaper for the given resolution, or the default wallpaper if none are found.
 

Detailed Description

Handles organizing and choosing of wallpapers.

Definition at line 29 of file wallpaper.h.

Member Function Documentation

◆ getWallpaper()

std::string Wallpaper::getWallpaper ( int  width,
int  height 
)
static

Returns the largest wallpaper for the given resolution, or the default wallpaper if none are found.

Parameters
widththe desired width
heightthe desired height
Returns
the file to use, or empty if no wallpapers are useable

Definition at line 122 of file wallpaper.cpp.

◆ loadWallpapers()

void Wallpaper::loadWallpapers ( )
static

Reads the folder that contains wallpapers and organizes the wallpapers found by area, width, and height.

Definition at line 87 of file wallpaper.cpp.


The documentation for this class was generated from the following files: