25 #ifndef DIGIKAM_EDITOR_INSERT_TEXT_WIDGET_H
26 #define DIGIKAM_EDITOR_INSERT_TEXT_WIDGET_H
33 #include <QMouseEvent>
34 #include <QPaintEvent>
37 #include <QResizeEvent>
90 DImg makeInsertText();
94 void setBackgroundColor(
const QColor& bg);
96 void setText(
const QString& text,
const QFont& font,
const QColor& color,
int opacity,
97 int alignMode,
bool border,
bool transparent,
int rotation);
101 void setPositionHint(
const QRect& hint);
102 QRect getPositionHint()
const;
106 void paintEvent(QPaintEvent*)
override;
107 void resizeEvent(QResizeEvent*)
override;
108 void mousePressEvent(QMouseEvent*)
override;
109 void mouseReleaseEvent(QMouseEvent*)
override;
110 void mouseMoveEvent(QMouseEvent*)
override;
113 QRect composeImage(
DImg*
const image, QPainter*
const destPainter,
115 QFont font,
float pointSize,
int textRotation, QColor textColor,
116 int textOpacity,
int alignMode,
const QString& textString,
117 bool transparentBackground, QColor backgroundColor,
118 BorderMode borderMode,
int borderWidth,
int spacing,
float fontScale = 1.0f);
Definition: inserttextwidget.h:54
Action
Definition: inserttextwidget.h:60
@ BORDER_TEXT
Definition: inserttextwidget.h:65
@ ALIGN_BLOCK
Definition: inserttextwidget.h:64
@ ALIGN_RIGHT
Definition: inserttextwidget.h:62
@ ALIGN_CENTER
Definition: inserttextwidget.h:63
TextRotation
Definition: inserttextwidget.h:70
@ ROTATION_180
Definition: inserttextwidget.h:73
@ ROTATION_90
Definition: inserttextwidget.h:72
BorderMode
Definition: inserttextwidget.h:78
@ BORDER_SUPPORT
Definition: inserttextwidget.h:80
Definition: imageiface.h:47
Definition: inserttexttool.cpp:66
Definition: datefolderview.cpp:43