Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXIconDict.h>
Inheritance diagram for FX::FXIconDict:
Public Member Functions | |
FXIconDict (FXApp *app, const FXString &p=defaultIconPath) | |
void | setIconSource (FXIconSource *src) |
FXIconSource * | getIconSource () const |
void | setIconPath (const FXString &p) |
const FXString & | getIconPath () const |
FXIcon * | insert (const FXchar *name) |
FXIcon * | remove (const FXchar *name) |
FXIcon * | find (const FXchar *name) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXIconDict () |
Static Public Attributes | |
const FXchar | defaultIconPath [] |
The icons are referenced by their file name. When first encountering a new file name, the icon is located by searching the icon search path for the icon file. If found, the services of the icon source object are used to load the icon from the file. A custom icon source may be installed to furnish support for additonal image file formats. Once the icon is loaded, an association between the icon name and the icon is entered into the icon dictionary. Subsequent searches for an icon with this name will be satisfied from the cached value. The lifetype of the icons is managed by the icon dictionary, and thus all icons will be deleted when the dictionary is deleted.
|
Construct icon dictionary, and set initial search path; also creates a default icon source object.
|
|
Destroy the icon dict as well as the icon source.
|
|
Change icon source.
|
|
Return icon source.
|
|
Set icon search path.
|
|
Return current icon search path.
|
|
Insert unique icon loaded from filename into dictionary.
|
|
Remove icon from dictionary.
Reimplemented from FX::FXDict. |
|
Find icon by name.
|
|
Save to stream.
Reimplemented from FX::FXObject. |
|
Load from stream.
Reimplemented from FX::FXObject. |
|
Default icon search path.
|
Copyright © 1997-2005 Jeroen van der Zijp |