QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Encapsulates the context in which a text document is to be rendered. More...
#include <qgstextdocumentmetrics.h>
Public Member Functions | |
Qgis::TextRendererFlags | flags () const |
Returns associated text renderer flags. | |
double | maximumWidth () const |
Returns the maximum width (in painter units) for rendered text. | |
void | setFlags (Qgis::TextRendererFlags flags) |
Sets associated text renderer flags. | |
void | setMaximumWidth (double width) |
Sets the maximum width (in painter units) for rendered text. | |
Encapsulates the context in which a text document is to be rendered.
Definition at line 43 of file qgstextdocumentmetrics.h.
|
inline |
Returns associated text renderer flags.
Definition at line 52 of file qgstextdocumentmetrics.h.
|
inline |
Returns the maximum width (in painter units) for rendered text.
This is used to control text wrapping, when the Qgis::TextRendererFlag::WrapLines flag is set.
Definition at line 68 of file qgstextdocumentmetrics.h.
|
inline |
Sets associated text renderer flags.
Definition at line 59 of file qgstextdocumentmetrics.h.
|
inline |
Sets the maximum width (in painter units) for rendered text.
This is used to control text wrapping, when the Qgis::TextRendererFlag::WrapLines flag is set.
Definition at line 77 of file qgstextdocumentmetrics.h.