mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Refactoring, element rendering
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
|
||||
namespace pdf
|
||||
{
|
||||
class PDFPageContentProcessorState;
|
||||
|
||||
/// RAII wrapper for painter save/restore
|
||||
class PDFPainterStateGuard
|
||||
@ -55,6 +56,12 @@ public:
|
||||
/// \param text Text inside the bubble
|
||||
/// \param alignment Bubble alignment relative to the bubble position point
|
||||
static QRect drawBubble(QPainter* painter, QPoint point, QColor color, QString text, Qt::Alignment alignment);
|
||||
|
||||
/// Creates pen from painter graphicState
|
||||
static QPen createPenFromState(const PDFPageContentProcessorState* graphicState, double alpha);
|
||||
|
||||
/// Creates brush from painter graphicState
|
||||
static QBrush createBrushFromState(const PDFPageContentProcessorState* graphicState, double alpha);
|
||||
};
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user