API Documentation
Loading...
Searching...
No Matches
ImageView Class Reference

A widget that shows a raster image or icon. More...

#include <ImageView.h>

Inheritance diagram for ImageView:
[legend]
Collaboration diagram for ImageView:
[legend]

Public Types

enum  ViewMode { e_keep , e_zoom_in , e_zoom_out , e_stretch }
 

Public Member Functions

void clearImage ()
 
QIcon icon ()
 
 ImageView (const String &image, QWidget *parent=nullptr)
 
 ImageView (QWidget *parent=nullptr)
 
QSize minimumSizeHint () const override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *resize_event) override
 
void setAlignment (Qt::Alignment alignment)
 
void setAutoResize (bool auto_resize)
 
void setBlendFactor (fltp04 blend_factor)
 
void setBlendImage (const QPixmap &blend_image)
 
void setForceAspectRatioH (bool force)
 
void setForceAspectRatioW (bool force)
 
void setIcon (const QIcon &image, QIcon::Mode mode=QIcon::Mode::Normal)
 
void setIconID (const String &image, bool force_refresh=false)
 
void setIconMode (QIcon::Mode mode)
 
void setIgnoreDPR (bool ignore)
 
void setImage (const QImage &image)
 
void setImage (const QPixmap &pixmap)
 
void setImageID (const String &image, bool force_refresh=false)
 
void setImageScale (fltp08 scale)
 
void setSizeHintPixelMetric (QStyle::PixelMetric metric)
 
void setSmoothResize (bool smooth_resize)
 
void setViewMode (ViewMode mode)
 
QSize sizeHint () const override
 
 ~ImageView ()
 

Detailed Description

A widget that shows a raster image or icon.


Member Enumeration Documentation

◆ ViewMode

enum ViewMode
Enumerator
e_keep 
e_zoom_in 
e_zoom_out 
e_stretch 

Constructor & Destructor Documentation

◆ ImageView() [1/2]

ImageView ( const String & image,
QWidget * parent = nullptr )

◆ ImageView() [2/2]

ImageView ( QWidget * parent = nullptr)

◆ ~ImageView()

~ImageView ( )

Member Function Documentation

◆ clearImage()

void clearImage ( )

◆ icon()

QIcon icon ( )
inline

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
inlineoverride

◆ paintEvent()

void paintEvent ( QPaintEvent * event)
override

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
override

◆ setAlignment()

void setAlignment ( Qt::Alignment alignment)

◆ setAutoResize()

void setAutoResize ( bool auto_resize)
inline

◆ setBlendFactor()

void setBlendFactor ( fltp04 blend_factor)

◆ setBlendImage()

void setBlendImage ( const QPixmap & blend_image)

◆ setForceAspectRatioH()

void setForceAspectRatioH ( bool force)

◆ setForceAspectRatioW()

void setForceAspectRatioW ( bool force)

◆ setIcon()

void setIcon ( const QIcon & image,
QIcon::Mode mode = QIcon::Mode::Normal )

◆ setIconID()

void setIconID ( const String & image,
bool force_refresh = false )

◆ setIconMode()

void setIconMode ( QIcon::Mode mode)

◆ setIgnoreDPR()

void setIgnoreDPR ( bool ignore)

◆ setImage() [1/2]

void setImage ( const QImage & image)

◆ setImage() [2/2]

void setImage ( const QPixmap & pixmap)

◆ setImageID()

void setImageID ( const String & image,
bool force_refresh = false )

◆ setImageScale()

void setImageScale ( fltp08 scale)
inline

◆ setSizeHintPixelMetric()

void setSizeHintPixelMetric ( QStyle::PixelMetric metric)

◆ setSmoothResize()

void setSmoothResize ( bool smooth_resize)
inline

◆ setViewMode()

void setViewMode ( ViewMode mode)
inline

◆ sizeHint()

QSize sizeHint ( ) const
override

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