Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

int QX11Info::appDepth ( int  screen = -1  )  [static]

Returns the color depth (bits per pixel) used by the application on the given screen.

The screen argument is an X screen number. Be aware that if the user's system uses Xinerama (as opposed to traditional X11 multiscreen), there is only one X screen. Use QDesktopWidget to query for information about Xinerama screens.

See also:
depth()

Definition at line 422 of file qx11info_x11.cpp.

Referenced by depth(), getX11Data(), QMotifStyle::standardPalette(), and QStyle::standardPalette().

{
    return X11 ? X11->screens[screen == -1 ? X11->defaultScreen : screen].depth : 32;
}


Generated by  Doxygen 1.6.0   Back to index