25#ifndef TGUI_FILE_DIALOG_ICON_LOADER_HPP
26#define TGUI_FILE_DIALOG_ICON_LOADER_HPP
28#include <TGUI/Texture.hpp>
29#include <TGUI/Filesystem.hpp>
Definition FileDialogIconLoader.hpp:42
virtual bool supportsSystemIcons() const
Returns whether this icon loader does something or whether its functions are no-ops.
virtual std::vector< Texture > retrieveFileIcons()
Access the file icons that where loaded in the thread that was started in requestFileIcons()
virtual bool hasGenericIcons() const
Returns whether generic icons (one folder and one file icon) are available.
virtual void requestFileIcons(const std::vector< Filesystem::FileInfo > &files)
Starts a thread to load the icons for all given files.
static std::shared_ptr< FileDialogIconLoader > createInstance()
Returns the shared instance to the loader (and creates it if it didn't exist yet).
virtual ~FileDialogIconLoader()=default
Default virtual destructor.
FileDialogIconLoader()=default
Protected constructor, the createInstance() function should be used to construct the icon loader.
virtual bool update()
Called every frame to check if the background thread has finished.
virtual Texture getGenericFileIcon(const Filesystem::FileInfo &file)
Returns the generic file/folder icon, which is used until the file-specific icons are finished loadin...
Definition Texture.hpp:49
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
Information about a file or directory, used to return data from the listFilesInDirectory function.
Definition Filesystem.hpp:260