|
enum | Action {
ALIGN_LEFT = 0
, ALIGN_RIGHT
, ALIGN_CENTER
, ALIGN_BLOCK
,
BORDER_TEXT
, TRANSPARENT_TEXT
} |
|
enum | BorderMode { BORDER_NONE = 0
, BORDER_SUPPORT
, BORDER_NORMAL
} |
|
enum | TextRotation { ROTATION_NONE = 0
, ROTATION_90
, ROTATION_180
, ROTATION_270
} |
|
|
QRect | composeImage (DImg *const image, QPainter *const destPainter, int x, int y, QFont font, float pointSize, int textRotation, QColor textColor, int textOpacity, int alignMode, const QString &textString, bool transparentBackground, QColor backgroundColor, BorderMode borderMode, int borderWidth, int spacing, float fontScale=1.0f) |
|
void | makePixmap () |
|
void | mouseMoveEvent (QMouseEvent *) override |
|
void | mousePressEvent (QMouseEvent *) override |
|
void | mouseReleaseEvent (QMouseEvent *) override |
|
void | paintEvent (QPaintEvent *) override |
|
void | resizeEvent (QResizeEvent *) override |
|
◆ Action
Enumerator |
---|
ALIGN_LEFT | |
ALIGN_RIGHT | |
ALIGN_CENTER | |
ALIGN_BLOCK | |
BORDER_TEXT | |
TRANSPARENT_TEXT | |
◆ BorderMode
Enumerator |
---|
BORDER_NONE | |
BORDER_SUPPORT | |
BORDER_NORMAL | |
◆ TextRotation
Enumerator |
---|
ROTATION_NONE | |
ROTATION_90 | |
ROTATION_180 | |
ROTATION_270 | |
◆ InsertTextWidget()
DigikamEditorInsertTextToolPlugin::InsertTextWidget::InsertTextWidget |
( |
int |
w, |
|
|
int |
h, |
|
|
QWidget *const |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~InsertTextWidget()
DigikamEditorInsertTextToolPlugin::InsertTextWidget::~InsertTextWidget |
( |
| ) |
|
|
override |
◆ composeImage()
QRect DigikamEditorInsertTextToolPlugin::InsertTextWidget::composeImage |
( |
DImg *const |
image, |
|
|
QPainter *const |
destPainter, |
|
|
int |
x, |
|
|
int |
y, |
|
|
QFont |
font, |
|
|
float |
pointSize, |
|
|
int |
textRotation, |
|
|
QColor |
textColor, |
|
|
int |
textOpacity, |
|
|
int |
alignMode, |
|
|
const QString & |
textString, |
|
|
bool |
transparentBackground, |
|
|
QColor |
backgroundColor, |
|
|
BorderMode |
borderMode, |
|
|
int |
borderWidth, |
|
|
int |
spacing, |
|
|
float |
fontScale = 1.0f |
|
) |
| |
|
protected |
Take data from image, draw text at x|y with specified parameters. If destPainter is null, draw to image, if destPainter is not null, draw directly using the painter. Returns modified area of image.
References Digikam::DImg::bitBlendImage(), Digikam::DImg::bitBltImage(), BORDER_NORMAL, BORDER_SUPPORT, Digikam::DImg::convertToDepthOfImage(), Digikam::DImg::convertToEightBit(), Digikam::DImg::convertToPixmap(), Digikam::DColor::convertToSixteenBit(), Digikam::DImg::copy(), Digikam::DImg::fill(), Digikam::DImg::height, Digikam::DImg::isNull(), ROTATION_180, ROTATION_270, ROTATION_90, ROTATION_NONE, Digikam::DColor::setAlpha(), Digikam::DImg::sixteenBit, and Digikam::DImg::width.
Referenced by makeInsertText(), and makePixmap().
◆ getPositionHint()
QRect DigikamEditorInsertTextToolPlugin::InsertTextWidget::getPositionHint |
( |
| ) |
const |
◆ imageIface()
ImageIface * DigikamEditorInsertTextToolPlugin::InsertTextWidget::imageIface |
( |
| ) |
const |
◆ makeInsertText()
DImg DigikamEditorInsertTextToolPlugin::InsertTextWidget::makeInsertText |
( |
| ) |
|
◆ makePixmap()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::makePixmap |
( |
| ) |
|
|
protected |
◆ mouseMoveEvent()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::mouseReleaseEvent |
( |
QMouseEvent * |
| ) |
|
|
overrideprotected |
◆ paintEvent()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
overrideprotected |
◆ resetEdit()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::resetEdit |
( |
| ) |
|
◆ resizeEvent()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
overrideprotected |
◆ setBackgroundColor()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::setBackgroundColor |
( |
const QColor & |
bg | ) |
|
◆ setPositionHint()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::setPositionHint |
( |
const QRect & |
hint | ) |
|
◆ setText()
void DigikamEditorInsertTextToolPlugin::InsertTextWidget::setText |
( |
const QString & |
text, |
|
|
const QFont & |
font, |
|
|
const QColor & |
color, |
|
|
int |
opacity, |
|
|
int |
alignMode, |
|
|
bool |
border, |
|
|
bool |
transparent, |
|
|
int |
rotation |
|
) |
| |
The documentation for this class was generated from the following files: