• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Functions
KXUtils Namespace Reference

Functions

QPixmap createPixmapFromHandle (WId pixmap, WId mask=0)
 
int timestampCompare (unsigned long time1, unsigned long time2)
 
int timestampDiff (unsigned long time1, unsigned long time2)
 

Detailed Description

Namespace with various generic X11-related functionality.

Function Documentation

◆ createPixmapFromHandle()

QPixmap KXUtils::createPixmapFromHandle ( WId  pixmap,
WId  mask = 0 
)

Creates a QPixmap that contains a copy of the pixmap given by the X handle pixmap and optionally also mask given as another X handle @mask.

This function tries to also handle the case when the depth of the pixmap differs from the native QPixmap depth.

Since
4.0.2

Definition at line 39 of file kxutils.cpp.

◆ timestampCompare()

int KXUtils::timestampCompare ( unsigned long  time1,
unsigned long  time2 
)

Compares two X timestamps, taking into account wrapping and 64bit architectures.

Return value is like with strcmp(), 0 for equal, -1 for time1 < time2, 1 for time1 > time2.

Since
4.1.0

Definition at line 111 of file kxutils.cpp.

◆ timestampDiff()

int KXUtils::timestampDiff ( unsigned long  time1,
unsigned long  time2 
)

Returns a difference of two X timestamps, time2 - time1, where time2 must be later than time1, as returned by timestampCompare().

Since
4.1.0

Definition at line 120 of file kxutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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