#include <uima.hpp>
Inheritance diagram for UIma:
Public Member Functions | |
UIma (const UStr &filename) | |
UIma (const char *filename=null) | |
UIma (const char **xpm_data, u_modes=0) | |
creates an emty image and specifies its file name (or XPM data). | |
virtual void | set (const UStr &filename) |
virtual void | set (const char *filename) |
virtual void | set (const char **xpm_data) |
specifies the file name of an image (or XPM data). | |
virtual int | load () |
virtual int | readFile (const UStr &filename) |
virtual int | readFile (const char *filename) |
virtual int | readData (const char **xpm_data) |
loads an image in memory. | |
void | copy (const UIma &ima2) |
copies image content from ima2. | |
void | copyResized (const UIma &ima2, u_dim width, u_dim height) |
copies image content from ima2 and rescales to size: width x height. | |
void | copyRescaled (const UIma &, float xscale, float yscale) |
copies image content from ima2 and rescales according to scaling factors. | |
const char * | getNameChars () const |
returns the image name (if any, null otherwise) | |
int | getStatus () const |
bool | isLoaded () const |
returns the loading status of this image (see UFilestat) | |
bool | isRealized () const |
returns true if the image has been loaded and realized (see: realize()). | |
bool | isShaped () const |
bool | isTransparent () const |
return true if the image background is shaped (so called "transparent"). | |
virtual u_dim | getHeight () const |
virtual u_dim | getWidth () const |
returns the image size (unknown if the image has not been loaded!). | |
virtual void | update () |
update parents' views. | |
int | realize (class UDisp &disp, bool force_reload=true) const |
[impl] allocates physical resources and loads the image in memory. | |
std::list< class UNatIma * > & | getNatImas () const |
[impl] returns internal implementation. | |
Friends | |
UIma & | uima (const UStr &filename) |
UIma & | uima (const char *filename) |
UIma & | uima (const char **xpm_data) |
creator shortcuts (see UIma::UIma() constructors for details) |
Notes:
|
creates an emty image and specifies its file name (or XPM data). details:
|
|
copies image content from ima2. No action performed is ima2 is not realized (ie. not loaded) |
|
copies image content from ima2 and rescales according to scaling factors. see: copy(const UIma&) for details |
|
copies image content from ima2 and rescales to size: width x height. see: copy(const UIma&) for details |
|
loads an image in memory. details:
|
|
[impl] allocates physical resources and loads the image in memory. this function is automatically called when this image is displayed for the first time: there no need to call it in client code. details: |
|
specifies the file name of an image (or XPM data). details:
|