78 virtual void setImage(
const std::string & imageFileName,
bool animated =
false );
83 void setMovie(
const std::string & movieFileName )
103 void setZeroSize( YUIDimension dim,
bool zeroSize =
true );
bool animated() const
Returns 'true' if the current image is an animated image format (e.g., MNG).
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
virtual ~YImage()
Destructor.
bool hasZeroSize(YUIDimension dim) const
Return 'true' if the image widget should be stretchable with a default width of 0 in the specified di...
void setMovie(const std::string &movieFileName)
Set and display a movie (an animated image).
void setZeroSize(YUIDimension dim, bool zeroSize=true)
Make the image widget stretchable with a default size of 0 in the specified dimension.
bool autoScale() const
Return 'true' if the image should be scaled to fit into the available space.
YImage(YWidget *parent, const std::string &imageFileName, bool animated=false)
Constructor.
virtual void setAutoScale(bool autoScale=true)
Make the image fit into the available space.
virtual void setImage(const std::string &imageFileName, bool animated=false)
Set and display a new image (or movie if animated is 'true').
std::string imageFileName() const
Return the file name of this widget's image.
A picture, possibly animated, loaded from a file.