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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • misc
screeninfo.h
Go to the documentation of this file.
1 // Copyright (C) 2002 Dominique Devriese <devriese@kde.org>
2 
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
7 
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 // 02110-1301, USA.
17 
18 #ifndef SCREENINFO_H
19 #define SCREENINFO_H
20 
21 #include <qrect.h>
22 
23 #include "rect.h"
24 
31 class ScreenInfo
32 {
33  Rect mkrect;
34  QRect mqrect;
35 public:
36  ScreenInfo( const Rect& docRect, const QRect& viewRect );
37 
38  Coordinate fromScreen( const QPoint& p ) const;
39  Rect fromScreen( const QRect& r ) const;
40 
41  QPoint toScreen( const Coordinate& p ) const;
42  QRect toScreen( const Rect& r ) const;
43 
44  double pixelWidth() const;
45 
46  double normalMiss( int width ) const;
47 
48  const Rect& shownRect() const;
49 
50  void setShownRect( const Rect& r );
51 
52  const QRect viewRect() const;
53 
54  void setViewRect( const QRect& r );
55 };
56 
57 #endif
ScreenInfo::viewRect
const QRect viewRect() const
Definition: screeninfo.cc:78
ScreenInfo::normalMiss
double normalMiss(int width) const
Definition: screeninfo.cc:88
Rect
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: rect.h:34
ScreenInfo
ScreenInfo is a simple utility class that maps a region of the document onto a region of the screen...
Definition: screeninfo.h:31
Coordinate
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
rect.h
ScreenInfo::toScreen
QPoint toScreen(const Coordinate &p) const
Definition: screeninfo.cc:44
ScreenInfo::setViewRect
void setViewRect(const QRect &r)
Definition: screeninfo.cc:83
ScreenInfo::setShownRect
void setShownRect(const Rect &r)
Definition: screeninfo.cc:73
ScreenInfo::pixelWidth
double pixelWidth() const
Definition: screeninfo.cc:61
ScreenInfo::shownRect
const Rect & shownRect() const
Definition: screeninfo.cc:68
ScreenInfo::fromScreen
Coordinate fromScreen(const QPoint &p) const
Definition: screeninfo.cc:35
ScreenInfo::ScreenInfo
ScreenInfo(const Rect &docRect, const QRect &viewRect)
Definition: screeninfo.cc:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 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