• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Public Member Functions | List of all members
ScreenInfo Class Reference

#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

ScreenInfo::ScreenInfo ( const Rect &  docRect,
const QRect &  viewRect 
)

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.

Rect ScreenInfo::fromScreen ( const QRect &  r) const

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.

QRect ScreenInfo::toScreen ( const Rect &  r) const

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:
  • screeninfo.h
  • screeninfo.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal