|
Krita Source Code Documentation
|
#include <KoTextShapeDataBase.h>
Inheritance diagram for KoTextShapeDataBase:Public Types | |
| enum | ResizeMethod { AutoResize , AutoGrowWidth , AutoGrowHeight , AutoGrowWidthAndHeight , ShrinkToFitResize , NoResize } |
Public Member Functions | |
| QTextDocument * | document () const |
| return the document | |
| KoTextShapeDataBase () | |
| constructor | |
| ResizeMethod | resizeMethod () const |
| void | setResizeMethod (ResizeMethod method) |
| void | setShapeMargins (const KoInsets &margins) |
| void | setVerticalAlignment (Qt::Alignment alignment) |
| KoInsets | shapeMargins () const |
| Qt::Alignment | verticalAlignment () const |
| ~KoTextShapeDataBase () override | |
Public Member Functions inherited from KoShapeUserData | |
| virtual KoShapeUserData * | clone () const =0 |
| KoShapeUserData (QObject *parent=0) | |
| Constructor. | |
| ~KoShapeUserData () override | |
Protected Member Functions | |
| KoTextShapeDataBase (KoTextShapeDataBasePrivate *) | |
| constructor | |
Protected Member Functions inherited from KoShapeUserData | |
| KoShapeUserData (const KoShapeUserData &rhs) | |
Protected Attributes | |
| KoTextShapeDataBasePrivate * | d_ptr |
Definition at line 25 of file KoTextShapeDataBase.h.
Enum to describe the text document's automatic resizing behaviour.
Definition at line 57 of file KoTextShapeDataBase.h.
| KoTextShapeDataBase::KoTextShapeDataBase | ( | ) |
constructor
|
override |
|
protected |
| QTextDocument * KoTextShapeDataBase::document | ( | ) | const |
return the document
Definition at line 40 of file KoTextShapeDataBase.cpp.
| KoTextShapeDataBase::ResizeMethod KoTextShapeDataBase::resizeMethod | ( | ) | const |
Returns the auto-resizing mode. By default, this is NoResize.
Definition at line 79 of file KoTextShapeDataBase.cpp.
| void KoTextShapeDataBase::setResizeMethod | ( | KoTextShapeDataBase::ResizeMethod | method | ) |
Specifies how the document should be resized upon a change in the document.
If auto-resizing is turned on, text will not be wrapped unless enforced by e.g. a newline.
By default, NoResize is set.
Definition at line 71 of file KoTextShapeDataBase.cpp.
Set the margins that will make the shapes text area smaller. The shape that owns this textShapeData object will layout text in an area confined by the shape size made smaller by the margins set here.
| margins | the margins that shrink the text area. |
Definition at line 46 of file KoTextShapeDataBase.cpp.
| void KoTextShapeDataBase::setVerticalAlignment | ( | Qt::Alignment | alignment | ) |
Sets the vertical alignment of all the text inside the shape.
Definition at line 58 of file KoTextShapeDataBase.cpp.
| KoInsets KoTextShapeDataBase::shapeMargins | ( | ) | const |
returns the currently set margins for the shape.
Definition at line 52 of file KoTextShapeDataBase.cpp.
| Qt::Alignment KoTextShapeDataBase::verticalAlignment | ( | ) | const |
Returns the vertical alignment of all the text in the shape
Definition at line 65 of file KoTextShapeDataBase.cpp.
|
protected |
Definition at line 99 of file KoTextShapeDataBase.h.