Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXIconSource.h>
Inheritance diagram for FX::FXIconSource:
Public Member Functions | |
FXIconSource (FXApp *a) | |
virtual FXIcon * | loadIcon (const FXString &filename, const FXString &type=FXString::null) const |
virtual FXIcon * | loadIcon (const void *pixels, const FXString &type=FXString::null) const |
virtual FXIcon * | loadIcon (FXStream &store, const FXString &type=FXString::null) const |
virtual FXImage * | loadImage (const FXString &filename, const FXString &type=FXString::null) const |
virtual FXImage * | loadImage (const void *pixels, const FXString &type=FXString::null) const |
virtual FXImage * | loadImage (FXStream &store, const FXString &type=FXString::null) const |
virtual FXIcon * | loadScaledIcon (const FXString &filename, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
virtual FXIcon * | loadScaledIcon (const void *pixels, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
virtual FXIcon * | loadScaledIcon (FXStream &store, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
virtual FXImage * | loadScaledImage (const FXString &filename, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
virtual FXImage * | loadScaledImage (const void *pixels, FXint size=32, FXint qual=0, const FXString &type=FXString::null) const |
virtual FXImage * | loadScaledImage (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 () |
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.
|
Construct an icon source.
|
|
Destroy.
|
|
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 icon of a given type (e.g. "gif") from reswrapped data. Returns NULL if there's some error loading the icon. [The optional parameter is actually mandatory at the time of this writing; future versions will attempt to inspect the first few bytes of the stream to divine the icon format if the parameter is omitted]. |
|
Load an icon of a given type (e.g. "gif") from an already open stream. Returns NULL if there's some error loading the icon. [The optional parameter is actually mandatory at the time of this writing; future versions will attempt to inspect the first few bytes of the stream to divine the icon format if the parameter is omitted]. |
|
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. |
|
Load an image of a given type (e.g. "gif") from reswrapped data. Returns NULL if there's some error loading the icon. [The optional parameter is actually mandatory at the time of this writing; future versions will attempt to inspect the first few bytes of the stream to divine the icon format if the parameter is omitted]. |
|
Load an image of a given type (e.g. "gif") from an already open stream. Returns NULL if there's some error loading the image. [The optional parameter is actually mandatory at the time of this writing; future versions will attempt to inspect the first few bytes of the stream to divine the image format if the parameter is omitted]. |
|
Load icon and scale it such that its dimensions does not exceed given size.
|
|
Load icon and scale it such that its dimensions does not exceed given size.
|
|
Load icon and scale it such that its dimensions does not exceed given size.
|
|
Load image and scale it such that its dimensions does not exceed given size.
|
|
Load image and scale it such that its dimensions does not exceed given size.
|
|
Load image and scale it such that its dimensions does not exceed given size.
|
|
Save to stream.
Reimplemented from FX::FXObject. |
|
Load from stream.
Reimplemented from FX::FXObject. |
Copyright © 1997-2005 Jeroen van der Zijp |