|
| FXIconSource (FXApp *a) |
|
virtual FXIcon * | loadIconFile (const FXString &filename, const FXString &type=FXString::null) const |
|
virtual FXIcon * | loadIconData (const void *pixels, const FXString &type=FXString::null) const |
|
virtual FXIcon * | loadIconStream (FXStream &store, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadImageFile (const FXString &filename, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadImageData (const void *pixels, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadImageStream (FXStream &store, const FXString &type=FXString::null) const |
|
virtual FXIcon * | loadScaledIconFile (const FXString &filename, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual FXIcon * | loadScaledIconData (const void *pixels, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual FXIcon * | loadScaledIconStream (FXStream &store, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadScaledImageFile (const FXString &filename, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadScaledImageData (const void *pixels, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual FXImage * | loadScaledImageStream (FXStream &store, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
|
virtual void | save (FXStream &store) const |
|
virtual void | load (FXStream &store) |
|
virtual | ~FXIconSource () |
|
virtual long | onDefault (FXObject *, FXSelector, void *) |
|
const FXchar * | getClassName () const |
|
bool | isMemberOf (const FXMetaClass *metaclass) const |
|
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
|
virtual | ~FXObject () |
|
An icon source is a class that loads an icon of any type.
It exists purely for convenience, to make loading icons simpler by concentrating the knowledge of the supported icon formats in a single place. Needless to say, this class is subclassable, allowing users to add additional icon types and make them available to all widgets which deal with icons. Note, the icons are loaded, but NOT created (realized) yet; this allows users to manipulate the pixel data prior to realizing the icons.
Load an icon from the file filename.
By default, the file extension is stripped and used as the icon type; if an explicit icon type is forced, then that type is used and the extension is ignored. For example, loadIcon("icon","gif") will try to load a CompuServe GIF file, since the filename does not give any clue as to the type of the icon.
Load an image from the file filename.
By default, the file extension is stripped and used as the image type; if an explicit image type is forced, then that type is used and the extension is ignored. For example, loadImage("image","gif") will try to load a CompuServe GIF file, since the filename does not give any clue as to the type of the image.