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

okular

  • Okular
  • Utils
Static Public Member Functions | List of all members
Okular::Utils Class Reference

#include <utils.h>

Static Public Member Functions

static double dpiX ()
 
static double dpiY ()
 
static NormalizedRect imageBoundingBox (const QImage *image)
 
static double realDpiX ()
 
static double realDpiY ()
 
static QRect rotateRect (const QRect &source, int width, int height, int orientation)
 

Detailed Description

General utility functions.

This class contains some static functions of general utility.

Definition at line 27 of file utils.h.

Member Function Documentation

double Utils::dpiX ( )
static

Return the horizontal DPI of the main display.

Definition at line 169 of file utils.cpp.

double Utils::dpiY ( )
static

Return the vertical DPI of the main display.

Definition at line 174 of file utils.cpp.

NormalizedRect Utils::imageBoundingBox ( const QImage *  image)
static

Compute the smallest rectangle that contains all non-white pixels in image), in normalized [0,1] coordinates.

Since
0.7 (KDE 4.1)

Definition at line 194 of file utils.cpp.

double Utils::realDpiX ( )
static

Return the real horizontal DPI of the main display.

On X11, it can indicate the real horizontal DPI value without any Xrdb setting. Otherwise, returns the same as dpiX(),

Since
0.9 (KDE 4.3)

Definition at line 179 of file utils.cpp.

double Utils::realDpiY ( )
static

Return the real vertical DPI of the main display.

On X11, it can indicate the real horizontal DPI value without any Xrdb setting. Otherwise, returns the same as dpiX(),

Since
0.9 (KDE 4.3)

Definition at line 184 of file utils.cpp.

QRect Utils::rotateRect ( const QRect &  source,
int  width,
int  height,
int  orientation 
)
static

Rotate the rect source in the area width x height with the specified orientation .

Definition at line 33 of file utils.cpp.


The documentation for this class was generated from the following files:
  • utils.h
  • utils.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

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