9#ifndef KOTOSCONTAINER_H
10#define KOTOSCONTAINER_H
14#include "kritaflake_export.h"
34 virtual bool loadText(
const QDomElement &element);
42 TextFollowsPreferredTextRect
51 void setResizeBehavior(ResizeBehavior resizeBehavior);
56 ResizeBehavior resizeBehavior()
const;
59 void setTextAlignment(Qt::Alignment alignment);
62 Qt::Alignment textAlignment()
const;
68 void setPlainText(
const QString &text);
89 void setPreferredTextRect(
const QRectF &
rect);
94 QRectF preferredTextRect()
const;
107 QSharedDataPointer<Private>
d;
virtual void paintComponent(QPainter &painter) const =0
Paint the component Implement this method to allow the shape to paint itself, just like the KoShape::...
void shapeChanged(ChangeType type, KoShape *shape=0) override
virtual void setRunThrough(short int runThrough)
QSharedDataPointer< Private > d
ResizeBehavior
different kinds of resizing behavior to determine how to treat text overflow
@ FollowTextSize
Content shape will get resized if text grows/shrinks.
@ TextFollowsSize
Text area is same size as content, extra text will be clipped.
@ IndependentSizes
The text can get bigger than the content.