class KDesktopWidget

Class to provide multi head/xinerama information. More...

Definition#include <kdesktopwidget.h>
InheritsQWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Provides functions to check for multi head and xinerama enabled desktops. This class has a similar interface as the QDesktopWidget class in QT 3. Once kdelibs is ported to QT 3, this class can be a dummy class that extends QDesktopWidget.

 KDesktopWidget ()

KDesktopWidget

 ~KDesktopWidget ()

~KDesktopWidget

bool  isVirtualDesktop ()

isVirtualDesktop

[const]

Returns

true
if Xinerama is enabled for the current desktop.

int  numScreens ()

numScreens

[const]

Returns the number of screens that make up the desktop.

int  primaryScreen ()

primaryScreen

[const]

Returns the primary screen of the desktop.

int  screenNumber ( QWidget *widget = 0 )

screenNumber

[const]

Returns the screen number given a widget. If the widget overlaps two screens, returns the screen number on which the major portion of the widget lies.

int  screenNumber ( const QPoint & )

screenNumber

[const]

Returns the screen number on which the point falls on.

QWidgetscreen ( int screen = -1 )

screen

Returns a widget representing the physical screen in a multi-headed display. This is NOT implemented correctly in this version. The code in QT 3 works correctly.

const QRect &  screenGeometry ( int screen = -1 )

screenGeometry

[const]

Returns the dimension of a screen. By default, it returns the dimension of the primary screen.