• 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 QSizeF realDpi (QWidget *widgetOnScreen)
 
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 28 of file utils.h.

Member Function Documentation

double Utils::dpiX ( )
static

Return the horizontal DPI of the main display.

Definition at line 281 of file utils.cpp.

double Utils::dpiY ( )
static

Return the vertical DPI of the main display.

Definition at line 286 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 311 of file utils.cpp.

QSizeF Utils::realDpi ( QWidget *  widgetOnScreen)
static

Return the real DPI of the display containing given widget.

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

Since
0.19 (KDE 4.13)

Definition at line 301 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)
Deprecated:
Can not work with multi-monitor configurations

Definition at line 291 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)
Deprecated:
Can not work with multi-monitor configurations

Definition at line 296 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 38 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 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