libyui-qt
Loading...
Searching...
No Matches
YQImage Class Reference
Inheritance diagram for YQImage:
Collaboration diagram for YQImage:

Public Member Functions

 YQImage (YWidget *parent, const std::string &imageFileName, bool animated=false)
 
virtual ~YQImage ()
 
virtual void setImage (const std::string &imageFileName, bool animated=false)
 
virtual void setAutoScale (bool autoScale=true)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 

Protected Attributes

int _pixmapWidth
 
int _pixmapHeight
 

Constructor & Destructor Documentation

◆ YQImage()

YQImage::YQImage ( YWidget *  parent,
const std::string &  imageFileName,
bool  animated = false 
)

Constructor.

'animated' indicates if 'imageFileName' is an animated image format (e.g., MNG).

◆ ~YQImage()

YQImage::~YQImage ( )
virtual

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQImage::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQImage::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setAutoScale()

void YQImage::setAutoScale ( bool  autoScale = true)
virtual

Make the image fit into the available space.

Reimplemented from YImage.

◆ setEnabled()

void YQImage::setEnabled ( bool  enabled)
virtual

if false, the image will be displayed in gray

◆ setImage()

void YQImage::setImage ( const std::string &  imageFileName,
bool  animated = false 
)
virtual

Set and display a new image.

Reimplemented from YImage.

◆ setSize()

void YQImage::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.


The documentation for this class was generated from the following files: