Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YImage Class Reference

Implementation of the Image widget. More...

#include <YImage.h>

Inheritance diagram for YImage:

YWidget List of all members.

Public Member Functions

 YImage (const YWidgetOpt &opt)
virtual char * widgetClass ()

Detailed Description

Implementation of the Image widget.

Image

Displays an image - if the respective UI is capable of that. If not, it is up to the UI to decide whether or not to display the specified default text instead ( e.g. with the NCurses UI ).

The image is specified as any of:

Use `opt( `zeroWidth ) and / or `opt( `zeroHeight ) if the real size of the image widget is determined by outside factors, e.g. by the size of neighboring widgets. With those options you can override the default "nice size" of the image widget and make it show just a part of the image. This is used for example in the YaST2 title graphics that are 2000 pixels wide even when only 640 pixels are shown normally. If more screen space is available, more of the image is shown, if not, the layout engine doesn't complain about the image widget not getting its nice size.

`opt( `tiled ) will make the image repeat endlessly in both dimensions to fill up any available space. You might want to add `opt( `zeroWidth ) or `opt( `zeroHeight ) ( or both ), too to make use of this feature.

`opt( `scaleToFit ) scales the image to fit into the available space, i.e. the image will be zoomed in or out as needed.

This option implicitly sets `opt( `zeroWidth ) and `opt( zeroHeight ), too since there is no useful default size for such an image.

Please note that setting both `opt( `tiled ) and `opt( `scaleToFit ) at once doesn't make any sense.


Constructor & Destructor Documentation

YImage::YImage const YWidgetOpt opt  ) 
 

Constructor


Member Function Documentation

virtual char* YImage::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6