#include <UT_IconManager.h>
Public Member Functions | |
| UT_IconManager () | |
| ~UT_IconManager () | |
| bool | getFirstIconFile (const char *iconroot, UT_String &iconpath, UT_IconType *type=NULL) |
| bool | getFirstImageFile (const char *imageroot, UT_String &imagepath) |
| As in getFirstIconFile, but only finds image icons. | |
| bool | getFirstSVGFile (const char *svgroot, UT_String &svgpath) |
| As in getFirstIconFile, but only finds SVG icons. | |
Static Public Member Functions | |
| static const char ** | getValidExts () |
| static bool | hasValidExt (const UT_String &filename) |
Definition at line 36 of file UT_IconManager.h.
| UT_IconManager::UT_IconManager | ( | ) |
| UT_IconManager::~UT_IconManager | ( | ) |
| bool UT_IconManager::getFirstIconFile | ( | const char * | iconroot, | |
| UT_String & | iconpath, | |||
| UT_IconType * | type = NULL | |||
| ) |
Gets the first icon (of type SGI, image, or SVG) in the icon path that matches the icon root name. Sets 'iconpath' to the full path to that icon file, and if type is set to a non-NULL pointer, sets the type appropriately. Returns true if an icon was found, and false otherwise.
| bool UT_IconManager::getFirstImageFile | ( | const char * | imageroot, | |
| UT_String & | imagepath | |||
| ) |
As in getFirstIconFile, but only finds image icons.
| bool UT_IconManager::getFirstSVGFile | ( | const char * | svgroot, | |
| UT_String & | svgpath | |||
| ) |
As in getFirstIconFile, but only finds SVG icons.
| static const char** UT_IconManager::getValidExts | ( | ) | [static] |
| static bool UT_IconManager::hasValidExt | ( | const UT_String & | filename | ) | [static] |
1.5.9