API Documentation
Loading...
Searching...
No Matches
QTIconManager Class Reference

#include <QTIconManager.h>

Collaboration diagram for QTIconManager:
[legend]

Static Public Member Functions

static void SetLightingTheme (const IconThemeSettings &theme)
 
static void SetOverrideTheme (IconThemeSettings *theme)
 
static void GetIconResource (const std::function< void(const String &, const QIcon &)> &on_finished, const String &icon, QIcon::Mode mode=QIcon::Mode::Normal)
 
static void GetIconResource (const std::function< void(const String &, const QIcon &)> &on_finished, const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)
 
static void GetPixmapResource (const std::function< void(const String &, const QPixmap &)> &on_finished, const String &pixmap, QIcon::Mode mode=QIcon::Mode::Normal, const QSize &requested_size=QSize())
 
static QIcon GetIconResourceBlocking (const String &icon, QIcon::Mode mode=QIcon::Mode::Normal)
 
static QIcon GetIconResourceBlocking (const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)
 
static QPixmap LocalPixmapResource (const String &pixmap, QIcon::Mode mode=QIcon::Mode::Normal, const QSize &requested_size=QSize())
 
static void PostIconResourceLoad (const String &id)
 
static void SetWindowIcon (const String &s, QWidget *widget)
 
static void ClearWindowIcon (QWidget *widget)
 
static Buffer< std::pair< LABColor, LABColor > > ConvertColorPalette (const Buffer< std::pair< RGBColor, RGBColor > > &palette)
 
static void ConvertColorTheme (const Buffer< std::pair< RGBColor, RGBColor > > &colors, const Buffer< File > &in, const File &out_location, bool preserve_brightness, bool preserve_alpha, Log *log=nullptr)
 
static void ConvertColorTheme (const Buffer< std::pair< RGBColor, RGBColor > > &colors, const File &in_location, const File &out_location, bool preserve_brightness, bool preserve_alpha, Log *log=nullptr)
 
static void ConvertColorTheme (const Buffer< std::pair< LABColor, LABColor > > &color, QImage &image, bool preserve_brightness, bool preserve_alpha)
 
static QImage AutoCrop (const QImage &pixmap, int margin=0, bool preserve_ratio=false)
 
static const QPixmap & disabledPixmap (const String &icon_name)
 
static QImage FillBackground (const QImage &pixmap, RGBColor color)
 
static QImage CleanupImageForIcon (const QImage &image)
 
static const Buffer< IconThemeSettings > & iconThemes ()
 
static void addIconTheme (const IconThemeSettings &theme)
 
static const IconThemeSettingsEffectiveIconTheme ()
 
static IconThemeSettings OutlineIconTheme ()
 
static IconThemeSettings NDEVRIconTheme ()
 
static constexpr const char * NDEVRThemeLocation ()
 
static void AddIconEngine (NDEVRIconEngine *engine)
 
static String GetSVGPath (const String &icon, const IconThemeSettings &theme)
 
static String IconCacheLocation (const String &icon, const IconThemeSettings &theme)
 
static String ImageCacheLocation (const String &icon)
 
static void AddResolver (PixmapResolver *resolver)
 

Static Public Attributes

static Resource< IconThemeSettings * > s_overide_icon_theme
 
static Resource< IconThemeSettingss_icon_theme
 

Static Protected Member Functions

static File GetImagePath (const String &icon)
 
static QIcon icon (const String &icon, QIcon::Mode mode=QIcon::Mode::Normal)
 
static QIcon icon (const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)
 
static QPixmap pixmap (const String &pixmap, QIcon::Mode mode=QIcon::Mode::Normal, const QSize &requested_size=QSize())
 

Friends

class NDEVRSVGIconEngine
 
class DeferredImageIconEngine
 

Member Function Documentation

◆ AddIconEngine()

void AddIconEngine ( NDEVRIconEngine * engine)
static

◆ addIconTheme()

void addIconTheme ( const IconThemeSettings & theme)
static

◆ AddResolver()

void AddResolver ( PixmapResolver * resolver)
static

◆ AutoCrop()

QImage AutoCrop ( const QImage & pixmap,
int margin = 0,
bool preserve_ratio = false )
static

◆ CleanupImageForIcon()

QImage CleanupImageForIcon ( const QImage & image)
static

◆ ClearWindowIcon()

void ClearWindowIcon ( QWidget * widget)
static

◆ ConvertColorPalette()

Buffer< std::pair< LABColor, LABColor > > ConvertColorPalette ( const Buffer< std::pair< RGBColor, RGBColor > > & palette)
static

◆ ConvertColorTheme() [1/3]

void ConvertColorTheme ( const Buffer< std::pair< LABColor, LABColor > > & color,
QImage & image,
bool preserve_brightness,
bool preserve_alpha )
static

◆ ConvertColorTheme() [2/3]

void ConvertColorTheme ( const Buffer< std::pair< RGBColor, RGBColor > > & colors,
const Buffer< File > & in,
const File & out_location,
bool preserve_brightness,
bool preserve_alpha,
Log * log = nullptr )
static

◆ ConvertColorTheme() [3/3]

void ConvertColorTheme ( const Buffer< std::pair< RGBColor, RGBColor > > & colors,
const File & in_location,
const File & out_location,
bool preserve_brightness,
bool preserve_alpha,
Log * log = nullptr )
static

◆ disabledPixmap()

const QPixmap & disabledPixmap ( const String & icon_name)
static

◆ EffectiveIconTheme()

const IconThemeSettings & EffectiveIconTheme ( )
static

◆ FillBackground()

QImage FillBackground ( const QImage & pixmap,
RGBColor color )
static

◆ GetIconResource() [1/2]

void GetIconResource ( const std::function< void(const String &, const QIcon &)> & on_finished,
const String & icon,
const IconThemeSettings & theme,
QIcon::Mode mode = QIcon::Mode::Normal )
static

◆ GetIconResource() [2/2]

void GetIconResource ( const std::function< void(const String &, const QIcon &)> & on_finished,
const String & icon,
QIcon::Mode mode = QIcon::Mode::Normal )
static

◆ GetIconResourceBlocking() [1/2]

QIcon GetIconResourceBlocking ( const String & icon,
const IconThemeSettings & theme,
QIcon::Mode mode = QIcon::Mode::Normal )
static

◆ GetIconResourceBlocking() [2/2]

QIcon GetIconResourceBlocking ( const String & icon,
QIcon::Mode mode = QIcon::Mode::Normal )
static

◆ GetImagePath()

File GetImagePath ( const String & icon)
staticprotected

◆ GetPixmapResource()

void GetPixmapResource ( const std::function< void(const String &, const QPixmap &)> & on_finished,
const String & pixmap,
QIcon::Mode mode = QIcon::Mode::Normal,
const QSize & requested_size = QSize() )
static

◆ GetSVGPath()

String GetSVGPath ( const String & icon,
const IconThemeSettings & theme )
static

◆ icon() [1/2]

QIcon icon ( const String & icon,
const IconThemeSettings & theme,
QIcon::Mode mode = QIcon::Mode::Normal )
staticprotected

◆ icon() [2/2]

QIcon icon ( const String & icon,
QIcon::Mode mode = QIcon::Mode::Normal )
staticprotected

◆ IconCacheLocation()

String IconCacheLocation ( const String & icon,
const IconThemeSettings & theme )
static

◆ iconThemes()

const Buffer< IconThemeSettings > & iconThemes ( )
static

◆ ImageCacheLocation()

String ImageCacheLocation ( const String & icon)
static

◆ LocalPixmapResource()

QPixmap LocalPixmapResource ( const String & pixmap,
QIcon::Mode mode = QIcon::Mode::Normal,
const QSize & requested_size = QSize() )
static

◆ NDEVRIconTheme()

IconThemeSettings NDEVRIconTheme ( )
static

◆ NDEVRThemeLocation()

static constexpr const char * NDEVRThemeLocation ( )
inlinestaticconstexpr

◆ OutlineIconTheme()

IconThemeSettings OutlineIconTheme ( )
static

◆ pixmap()

QPixmap pixmap ( const String & pixmap,
QIcon::Mode mode = QIcon::Mode::Normal,
const QSize & requested_size = QSize() )
staticprotected

◆ PostIconResourceLoad()

void PostIconResourceLoad ( const String & id)
static

◆ SetLightingTheme()

void SetLightingTheme ( const IconThemeSettings & theme)
static

◆ SetOverrideTheme()

void SetOverrideTheme ( IconThemeSettings * theme)
static

◆ SetWindowIcon()

void SetWindowIcon ( const String & s,
QWidget * widget )
static

Friends And Related Symbol Documentation

◆ DeferredImageIconEngine

friend class DeferredImageIconEngine
friend

◆ NDEVRSVGIconEngine

friend class NDEVRSVGIconEngine
friend

Member Data Documentation

◆ s_icon_theme

Resource< IconThemeSettings > s_icon_theme
static

◆ s_overide_icon_theme

Resource< IconThemeSettings * > s_overide_icon_theme
static

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