38 : imageFileName( imageFileName )
39 , animated( animated )
43 zeroSize.vert =
false;
57 const string & imageFileName,
62 YUI_CHECK_NEW( priv );
74 return priv->imageFileName;
80 return priv->animated;
93 return priv->zeroSize[ dim ];
99 priv->zeroSize[ dim ] = zeroSize;
106 return priv->autoScale;
void setZeroSize(YUIDimension dim, bool zeroSize=true)
Make the image widget stretchable with a default size of 0 in the specified dimension.
virtual void setImage(const std::string &imageFileName, bool animated=false)
Set and display a new image (or movie if animated is 'true').
bool animated() const
Returns 'true' if the current image is an animated image format (e.g., MNG).
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...
std::string imageFileName() const
Return the file name of this widget's image.
YImage(YWidget *parent, const std::string &imageFileName, bool animated=false)
Constructor.
bool autoScale() const
Return 'true' if the image should be scaled to fit into the available space.
YImagePrivate(const string &imageFileName, bool animated)
Constructor.
virtual void setAutoScale(bool autoScale=true)
Make the image fit into the available space.