HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_IconManager Class Reference

#include <UT_IconManager.h>

Public Member Functions

 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. More...
 
bool getFirstSVGFile (const char *svgroot, UT_String &svgpath)
 As in getFirstIconFile, but only finds SVG icons. More...
 

Static Public Member Functions

static const char ** getValidExts ()
 
static bool hasValidExt (const UT_String &filename)
 

Detailed Description

Definition at line 31 of file UT_IconManager.h.

Constructor & Destructor Documentation

UT_IconManager::UT_IconManager ( )

Member Function Documentation

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

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