kig
#include <screeninfo.h>
Public Member Functions | |
ScreenInfo (const Rect &docRect, const QRect &viewRect) | |
Coordinate | fromScreen (const QPoint &p) const |
Rect | fromScreen (const QRect &r) const |
double | normalMiss (int width) const |
double | pixelWidth () const |
void | setShownRect (const Rect &r) |
void | setViewRect (const QRect &r) |
const Rect & | shownRect () const |
QPoint | toScreen (const Coordinate &p) const |
QRect | toScreen (const Rect &r) const |
const QRect | viewRect () const |
Detailed Description
ScreenInfo is a simple utility class that maps a region of the document onto a region of the screen.
It is used by both KigPainter and KigWidget, and the objects use it in their calc() method...
Definition at line 31 of file screeninfo.h.
Constructor & Destructor Documentation
Definition at line 22 of file screeninfo.cc.
Member Function Documentation
Coordinate ScreenInfo::fromScreen | ( | const QPoint & | p | ) | const |
Definition at line 35 of file screeninfo.cc.
Definition at line 27 of file screeninfo.cc.
double ScreenInfo::normalMiss | ( | int | width | ) | const |
Definition at line 88 of file screeninfo.cc.
double ScreenInfo::pixelWidth | ( | ) | const |
Definition at line 61 of file screeninfo.cc.
void ScreenInfo::setShownRect | ( | const Rect & | r | ) |
Definition at line 73 of file screeninfo.cc.
void ScreenInfo::setViewRect | ( | const QRect & | r | ) |
Definition at line 83 of file screeninfo.cc.
const Rect & ScreenInfo::shownRect | ( | ) | const |
Definition at line 68 of file screeninfo.cc.
QPoint ScreenInfo::toScreen | ( | const Coordinate & | p | ) | const |
Definition at line 44 of file screeninfo.cc.
Definition at line 53 of file screeninfo.cc.
const QRect ScreenInfo::viewRect | ( | ) | const |
Definition at line 78 of file screeninfo.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.