CCIMXDesktop
 
Loading...
Searching...
No Matches
WallPaperAnimationHandler::ImagePoolEngine Struct Reference

The ImagePoolEngine class makes a image selection as an engine, WallPaperAnimationHandler requires the engine to make the wallpaper switch(that is, select with how to select the image for display) More...

#include <wallpaperanimationhandler.h>

Static Public Member Functions

static QString default_selections (const QStringList &list)
 default_selections makes the default random selections
 
static int default_index (const QStringList &list)
 default_index makes the default random selections
 

Public Attributes

QStringList * image_list { nullptr }
 image list of the src
 
std::function< int(QStringList *)> selector { nullptr }
 selector make sense in deciding how to select from the image list, if not set, then it will be random as default issue
 

Detailed Description

The ImagePoolEngine class makes a image selection as an engine, WallPaperAnimationHandler requires the engine to make the wallpaper switch(that is, select with how to select the image for display)

Member Function Documentation

◆ default_index()

int WallPaperAnimationHandler::ImagePoolEngine::default_index ( const QStringList &  list)
static

default_index makes the default random selections

Parameters
listthe list pool of selectings
Returns
the index offset of the list

◆ default_selections()

QString WallPaperAnimationHandler::ImagePoolEngine::default_selections ( const QStringList &  list)
static

default_selections makes the default random selections

Parameters
listthe list pool of selectings
Returns
the selected images

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