digiKam
DigikamGenericPrintCreatorPlugin::TemplateIcon Class Reference

Public Member Functions

void begin ()
 
void end ()
 
void fillRect (int x, int y, int w, int h, const QColor &color)
 
QIcon & getIcon () const
 
QPainter & getPainter () const
 
QSize & getSize ()
 
 TemplateIcon (int iconHeight, const QSize &templateSize)
 
 ~TemplateIcon ()
 

Constructor & Destructor Documentation

◆ TemplateIcon()

DigikamGenericPrintCreatorPlugin::TemplateIcon::TemplateIcon ( int  iconHeight,
const QSize &  templateSize 
)
explicit

Constructor: The height of the icon is <iconHeight>. The width is computed during invocation of method 'begin()' according to the paper-size.

◆ ~TemplateIcon()

DigikamGenericPrintCreatorPlugin::TemplateIcon::~TemplateIcon ( )

Member Function Documentation

◆ begin()

void DigikamGenericPrintCreatorPlugin::TemplateIcon::begin ( )

◆ end()

void DigikamGenericPrintCreatorPlugin::TemplateIcon::end ( )

◆ fillRect()

void DigikamGenericPrintCreatorPlugin::TemplateIcon::fillRect ( int  x,
int  y,
int  w,
int  h,
const QColor &  color 
)

Draw a filled rectangle with color <color> at position <x>/<y> (relative to template-origin) and width <w> and height <h>.

Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::createPhotoGrid().

◆ getIcon()

QIcon & DigikamGenericPrintCreatorPlugin::TemplateIcon::getIcon ( ) const

Returns a pointer to the icon.

Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::initPhotoSizes().

◆ getPainter()

QPainter & DigikamGenericPrintCreatorPlugin::TemplateIcon::getPainter ( ) const

◆ getSize()

QSize & DigikamGenericPrintCreatorPlugin::TemplateIcon::getSize ( )

Returns the size of the icon.


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