digiKam
|
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 () | |
|
explicit |
Constructor: The height of the icon is <iconHeight>. The width is computed during invocation of method 'begin()' according to the paper-size.
DigikamGenericPrintCreatorPlugin::TemplateIcon::~TemplateIcon | ( | ) |
void DigikamGenericPrintCreatorPlugin::TemplateIcon::begin | ( | ) |
Begin painting the icon
Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::initPhotoSizes().
void DigikamGenericPrintCreatorPlugin::TemplateIcon::end | ( | ) |
End painting the icon
Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::initPhotoSizes().
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().
QIcon & DigikamGenericPrintCreatorPlugin::TemplateIcon::getIcon | ( | ) | const |
Returns a pointer to the icon.
Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::initPhotoSizes().
QPainter & DigikamGenericPrintCreatorPlugin::TemplateIcon::getPainter | ( | ) | const |
Returns the painter.
Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintPhotoPage::initPhotoSizes().
QSize & DigikamGenericPrintCreatorPlugin::TemplateIcon::getSize | ( | ) |
Returns the size of the icon.