Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
kdwinwidgets_utils.h File Reference
#include "../kdwinutils_global.h"
#include <QColor>
#include <QImage>
#include <QPen>
#include <QPixmap>
#include <QVector>
#include <afxwin.h>
Include dependency graph for kdwinwidgets_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utils
 

Functions

COLORREF Utils::toCOLORREF (const QColor &color)
 Converts a QColor to a COLORREF.
 
HBITMAP Utils::toHBITMAP (const QImage &image)
 Converts a QImage to a HBITMAP.
 
HICON Utils::toHICON (const QImage &image)
 Converts a QImage to a HICON.
 
QColor Utils::toQColor (COLORREF rgb)
 Converts a COLORREF to a QColor.
 
QColor Utils::toQColor (COLORREF rgb, int alpha)
 Converts a COLORREF to a QColor with alpha.
 
QImage Utils::toQImage (HBITMAP bitmap)
 Converts a HBITMAP to a QImage.
 
QImage Utils::toQImage (HICON icon)
 Converts a HICON to a QImage.
 
QList< QImage > Utils::toQImageList (CImageList *imageList)
 Converts a CImageList to a list of QImage.
 
Qt::BrushStyle Utils::toQtBrushStyle (int nIndex)
 Converts a CBrush style to a Qt::BrushStyle.
 
Qt::PenCapStyle Utils::toQtPenCapStyle (int value)
 Converts a CPen cap style to a Qt::PenCapStyle.
 
Qt::PenJoinStyle Utils::toQtPenJoinStyle (int value)
 Converts a CPen join style to a Qt::PenJoinStyle.
 
Qt::PenStyle Utils::toQtPenStyle (int value)
 Converts a CPen style to a Qt::PenStyle.