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;
YImage(YWidget *parent, const std::string &imageFileName, bool animated=false)
Constructor.
std::string imageFileName() const
Return the file name of this widget's image.
bool animated() const
Returns 'true' if the current image is an animated image format (e.g., MNG).
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').
void setZeroSize(YUIDimension dim, bool zeroSize=true)
Make the image widget stretchable with a default size of 0 in the specified dimension.
bool hasZeroSize(YUIDimension dim) const
Return 'true' if the image widget should be stretchable with a default width of 0 in the specified di...
bool autoScale() const
Return 'true' if the image should be scaled to fit into the available space.
virtual ~YImage()
Destructor.
YImagePrivate(const string &imageFileName, bool animated)
Constructor.