Fcitx
Public Member Functions | Static Public Member Functions | Friends | List of all members
fcitx::IconTheme Class Reference

A implementation of freedesktop.org icont specification. More...

#include <fcitx/icontheme.h>

Public Member Functions

 IconTheme (const char *name, const StandardPath &standardPath)
 
 IconTheme (const std::string &name, const StandardPath &standardPath)
 
 IconTheme (const StandardPath &standardPath)
 
 IconTheme (const std::string &name, const StandardPaths &standardPath=StandardPaths::global())
 
 IconTheme (const StandardPaths &standardPath=StandardPaths::global())
 
 FCITX_DECLARE_VIRTUAL_DTOR_MOVE (IconTheme)
 
FCITXCORE_DEPRECATED std::string findIcon (const std::string &iconName, unsigned int desiredSize, int scale=1, const std::vector< std::string > &extensions={".svg", ".png", ".xpm"})
 
FCITXCORE_DEPRECATED std::string findIcon (const std::string &iconName, unsigned int desiredSize, int scale=1, const std::vector< std::string > &extensions={".svg", ".png", ".xpm"}) const
 
std::filesystem::path findIconPath (const std::string &iconName, unsigned int desiredSize, int scale=1, const std::vector< std::string > &extensions={".svg", ".png", ".xpm"}) const
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (std::string, internalName)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (I18NString, name)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (I18NString, comment)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (std::vector< IconTheme >, inherits)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (std::vector< IconThemeDirectory >, directories)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (std::vector< IconThemeDirectory >, scaledDirectories)
 
 FCITX_DECLARE_READ_ONLY_PROPERTY (std::string, example)
 

Static Public Member Functions

static std::string defaultIconThemeName ()
 
static std::string iconName (const std::string &icon, bool inFlatpak=isInFlatpak())
 Rename fcitx-* icon to org.fcitx.Fcitx5.fcitx-* if in flatpak.
 

Friends

class IconThemePrivate
 

Detailed Description

A implementation of freedesktop.org icont specification.

Definition at line 58 of file icontheme.h.


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