📄 qpaintdevice_x11.cpp
字号:
\oldcode unsigned long screen = widget->x11Colormap(); \newcode unsigned long screen = widget->x11Info().colormap(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/Qt::HANDLE QPaintDevice::x11Colormap() const{ const QX11Info *info = qt_x11Info(this); if (info) return info->colormap(); return QX11Info::appColormap();}/*! Use QX11Info::defaultColormap() instead. \oldcode bool isDefault = widget->x11DefaultColormap(); \newcode bool isDefault = widget->x11Info().defaultColormap(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/bool QPaintDevice::x11DefaultColormap() const{ const QX11Info *info = qt_x11Info(this); if (info) return info->defaultColormap(); return QX11Info::appDefaultColormap();}/*! Use QX11Info::defaultVisual() instead. \oldcode bool isDefault = widget->x11DefaultVisual(); \newcode bool isDefault = widget->x11Info().defaultVisual(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/bool QPaintDevice::x11DefaultVisual() const{ const QX11Info *info = qt_x11Info(this); if (info) return info->defaultVisual(); return QX11Info::appDefaultVisual();}/*! Use QX11Info::visual() instead. \oldcode void *visual = QPaintDevice::x11AppVisual(screen); \newcode void *visual = qApp->x11Info(screen).visual(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/void *QPaintDevice::x11AppVisual(int screen){ return QX11Info::appVisual(screen); }/*! Use QX11Info::colormap() instead. \oldcode unsigned long colormap = QPaintDevice::x11AppColormap(screen); \newcode unsigned long colormap = qApp->x11Info(screen).colormap(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/Qt::HANDLE QPaintDevice::x11AppColormap(int screen){ return QX11Info::appColormap(screen); }/*! Use QX11Info::display() instead. \oldcode Display *display = QPaintDevice::x11AppDisplay(); \newcode Display *display = qApp->x11Info().display(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/Display *QPaintDevice::x11AppDisplay(){ return QX11Info::display(); }/*! Use QX11Info::screen() instead. \oldcode int screen = QPaintDevice::x11AppScreen(); \newcode int screen = qApp->x11Info().screen(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/int QPaintDevice::x11AppScreen(){ return QX11Info::appScreen(); }/*! Use QX11Info::depth() instead. \oldcode int depth = QPaintDevice::x11AppDepth(screen); \newcode int depth = qApp->x11Info(screen).depth(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/int QPaintDevice::x11AppDepth(int screen){ return QX11Info::appDepth(screen); }/*! Use QX11Info::cells() instead. \oldcode int cells = QPaintDevice::x11AppCells(screen); \newcode int cells = qApp->x11Info(screen).cells(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/int QPaintDevice::x11AppCells(int screen){ return QX11Info::appCells(screen); }/*! Use QX11Info::appRootWindow() instead. \oldcode unsigned long window = QPaintDevice::x11AppRootWindow(screen); \newcode unsigned long window = qApp->x11Info(screen).appRootWindow(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/Qt::HANDLE QPaintDevice::x11AppRootWindow(int screen){ return QX11Info::appRootWindow(screen); }/*! Use QX11Info::defaultColormap() instead. \oldcode bool isDefault = QPaintDevice::x11AppDefaultColormap(screen); \newcode bool isDefault = qApp->x11Info(screen).defaultColormap(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/bool QPaintDevice::x11AppDefaultColormap(int screen){ return QX11Info::appDefaultColormap(screen); }/*! Use QX11Info::defaultVisual() instead. \oldcode bool isDefault = QPaintDevice::x11AppDefaultVisual(screen); \newcode bool isDefault = qApp->x11Info(screen).defaultVisual(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/bool QPaintDevice::x11AppDefaultVisual(int screen){ return QX11Info::appDefaultVisual(screen); }/*! Use QX11Info::setAppDpiX() instead.*/void QPaintDevice::x11SetAppDpiX(int dpi, int screen){ QX11Info::setAppDpiX(dpi, screen);}/*! Use QX11Info::setAppDpiY() instead.*/void QPaintDevice::x11SetAppDpiY(int dpi, int screen){ QX11Info::setAppDpiY(dpi, screen);}/*! Use QX11Info::appDpiX() instead. \oldcode bool isDefault = QPaintDevice::x11AppDpiX(screen); \newcode bool isDefault = qApp->x11Info(screen).appDpiX(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/int QPaintDevice::x11AppDpiX(int screen){ return QX11Info::appDpiX(screen);}/*! Use QX11Info::appDpiY() instead. \oldcode bool isDefault = QPaintDevice::x11AppDpiY(screen); \newcode bool isDefault = qApp->x11Info(screen).appDpiY(); \endcode \sa QWidget::x11Info(), QPixmap::x11Info()*/int QPaintDevice::x11AppDpiY(int screen){ return QX11Info::appDpiY(screen);}#endif/*! \fn int QPaintDevice::width() const Returns the width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). \sa widthMM()*//*! \fn int QPaintDevice::height() const Returns the height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). \sa heightMM()*//*! \fn int QPaintDevice::widthMM() const Returns the width of the paint device in millimeters. \sa width()*//*! \fn int QPaintDevice::heightMM() const Returns the height of the paint device in millimeters. \sa height()*//*! \fn int QPaintDevice::numColors() const Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.*//*! \fn int QPaintDevice::depth() const Returns the bit depth (number of bit planes) of the paint device.*//*! \fn int QPaintDevice::logicalDpiX() const Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from widthMM(), but it varies on Windows. Note that if the logicalDpiX() doesn't equal the physicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping. \sa logicalDpiY(), physicalDpiX()*//*! \fn int QPaintDevice::logicalDpiY() const Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from heightMM(), but it varies on Windows. Note that if the logicalDpiY() doesn't equal the physicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping. \sa logicalDpiX(), physicalDpiY()*//*! \fn int QPaintDevice::physicalDpiX() const Returns the horizontal resolution of the device in dots per inch. Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping. \sa physicalDpiY(), logicalDpiX()*//*! \fn int QPaintDevice::physicalDpiY() const Returns the horizontal resolution of the device in dots per inch. Note that if the physicalDpiY() doesn't equal the logicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping. \sa physicalDpiX(), logicalDpiY()*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -