• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

kglobal.h File Reference

#include "kdelibs_export.h"
#include <kinstance.h>

Include dependency graph for kglobal.h:

Go to the source code of this file.


Classes

class  KGlobal
 Access to the KDE global objects. More...

Defines

#define KABS(a)   kAbs(a)
#define KCLAMP(x, low, high)   kClamp(x,low,high)
#define KMAX(a, b)   kMax(a,b)
#define KMIN(a, b)   kMin(a,b)

Functions

template<class T >
T kAbs (const T &a)
int kasciistricmp (const char *str1, const char *str2)
template<class T >
const T & kClamp (const T &x, const T &low, const T &high)
template<class T >
const T & kMax (const T &a, const T &b)
template<class T >
const T & kMin (const T &a, const T &b)

Define Documentation

#define KABS ( a   )     kAbs(a) [related]

A typesafe function to determine the absolute value of the argument.

Definition at line 187 of file kglobal.h.

#define KCLAMP ( x,
low,
high   )     kClamp(x,low,high) [related]

A typesafe function that returns x if it's between low and high values. low if x is smaller than then low and high if x is bigger than high.

Definition at line 193 of file kglobal.h.

#define KMAX ( a,
b   )     kMax(a,b) [related]

A typesafe function to find the maximum of the two arguments.

Definition at line 182 of file kglobal.h.

#define KMIN ( a,
b   )     kMin(a,b) [related]

A typesafe function to find the minimum of the two arguments.

Definition at line 177 of file kglobal.h.


Function Documentation

template<class T >
T kAbs ( const T &  a  )  [inline]

Definition at line 203 of file kglobal.h.

int kasciistricmp ( const char *  str1,
const char *  str2 
)

Locale-independent qstricmp.

Use this for comparing ascii keywords in a case-insensitive way. qstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'

Since:
3.4

Definition at line 241 of file kglobal.cpp.

template<class T >
const T& kClamp ( const T &  x,
const T &  low,
const T &  high 
) [inline]

Definition at line 206 of file kglobal.h.

template<class T >
const T& kMax ( const T &  a,
const T &  b 
) [inline]

Definition at line 200 of file kglobal.h.

template<class T >
const T& kMin ( const T &  a,
const T &  b 
) [inline]

Definition at line 197 of file kglobal.h.

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal