Qt 4.8
|
#include "qpaintdevice.h"
#include "qpainter.h"
#include "qwidget.h"
#include "qbitmap.h"
#include "qapplication.h"
#include "qprinter.h"
#include <qdebug.h>
#include <private/qt_mac_p.h>
#include <private/qprintengine_mac_p.h>
#include <private/qpixmap_mac_p.h>
#include <private/qpixmap_raster_p.h>
Go to the source code of this file.
Functions | |
Q_GUI_EXPORT CGContextRef | qt_mac_cg_context (const QPaintDevice *pdev) |
Returns the CoreGraphics CGContextRef of the paint device. More... | |
CGColorSpaceRef | qt_mac_colorSpaceForDeviceType (const QPaintDevice *pdev) |
float | qt_mac_defaultDpi_x () |
float | qt_mac_defaultDpi_y () |
Q_GUI_EXPORT GrafPtr | qt_mac_qd_context (const QPaintDevice *device) |
Returns the QuickDraw CGrafPtr of the paint device. More... | |
Q_GUI_EXPORT CGContextRef qt_mac_cg_context | ( | const QPaintDevice * | pdev | ) |
Returns the CoreGraphics CGContextRef of the paint device.
0 is returned if it can't be obtained. It is the caller's responsiblity to CGContextRelease the context when finished using it.
Definition at line 118 of file qpaintdevice_mac.cpp.
Referenced by QCoreGraphicsPaintEngine::begin(), getTabDirection(), QMacStyle::polish(), QMacCGContext::QMacCGContext(), qt_mac_convert_iconref(), qt_mac_draw_pattern(), qt_mac_fill_background(), and QMacWindowSurface::scroll().
CGColorSpaceRef qt_mac_colorSpaceForDeviceType | ( | const QPaintDevice * | pdev | ) |
Definition at line 153 of file qpaintengine_mac.cpp.
Referenced by cgColorForQColor(), QMacCGContext::QMacCGContext(), qt_mac_cg_context(), qt_mac_qd_context(), and QCoreGraphicsPaintEnginePrivate::setFillBrush().
float qt_mac_defaultDpi_x | ( | ) |
Definition at line 61 of file qpaintdevice_mac.cpp.
Referenced by QMacPixmapData::metric(), QWidget::metric(), qt_defaultDpiX(), qt_mac_pixelsize(), and qt_mac_pointsize().
float qt_mac_defaultDpi_y | ( | ) |
Definition at line 70 of file qpaintdevice_mac.cpp.
Referenced by QMacPixmapData::metric(), QWidget::metric(), and qt_defaultDpiY().
Q_GUI_EXPORT GrafPtr qt_mac_qd_context | ( | const QPaintDevice * | device | ) |
Returns the QuickDraw CGrafPtr of the paint device.
0 is returned if it can't be obtained. Do not hold the pointer around for long as it can be relocated.
Definition at line 91 of file qpaintdevice_mac.cpp.