36 : imageFileName( imageFileName )
37 , animated( animated )
41 zeroSize.vert =
false;
45 std::string imageFileName;
55 const std::string & imageFileName,
60 YUI_CHECK_NEW( priv );
72 return priv->imageFileName;
78 return priv->animated;
91 return priv->zeroSize[ dim ];
97 priv->zeroSize[ dim ] = zeroSize;
104 return priv->autoScale;
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...
void setZeroSize(YUIDimension dim, bool zeroSize=true)
Make the image widget stretchable with a default size of 0 in the specified dimension.
YImagePrivate(const std::string &imageFileName, bool animated)
Constructor.
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.