KoTextZoomHandler Class Reference
A KoTextZoomHandler converts between an internal text layout resolution of ~1440 DPI (by default) and the point-size for the fonts (those known by the user). More...
#include <kozoomhandler.h>
Inheritance diagram for KoTextZoomHandler:

Static Public Member Functions | |
void | setPtToLayoutUnitFactor (int factor) |
double | ptToLayoutUnitPt (double pt) |
int | ptToLayoutUnitPt (int ptSize) |
KoPoint | ptToLayoutUnitPt (const KoPoint &p) |
KoRect | ptToLayoutUnitPt (const KoRect &r) |
double | layoutUnitPtToPt (double lupt) |
KoPoint | layoutUnitPtToPt (const KoPoint &p) |
Static Protected Attributes | |
int | m_layoutUnitFactor = 20 |
Detailed Description
A KoTextZoomHandler converts between an internal text layout resolution of ~1440 DPI (by default) and the point-size for the fonts (those known by the user).This conversion doesn't depend on the zoom level. Anything depending on the zoom is handled by KoZoomHandler. Not a real class, it only has static methods, since it has no data.
Definition at line 32 of file kozoomhandler.h.
Member Function Documentation
|
Change the factor that converts between pointsizes and layout units (by default 20 - for 1440 DPI at 72 DPI).
Definition at line 40 of file kozoomhandler.h. |
|
Not zoom dependent. Simply convert a pt value (e.g. a frame) to high-resolution layout unit coordinates (in pt). Definition at line 44 of file kozoomhandler.h. Referenced by KoParagCounter::bulletX(), EmptyElement::calcSizes(), TextElement::calcSizes(), MultilineElement::calcSizes(), KoTextFormat::charWidthLU(), ContextStyle::getAdjustedSize(), KoZoomHandler::ptToLayoutUnitPixX(), KoTextFormat::screenPointSize(), KoTextFormat::width(), and KoTextObject::zoomedFontSize(). |
|
Same thing for integer values, e.g. a font size in pt Definition at line 47 of file kozoomhandler.h. |
Member Data Documentation
|
This being static ensures that the same value is used by all KoZoomHandler instances.
Definition at line 28 of file kozoomhandler.cc. |
The documentation for this class was generated from the following files: