Qt 4.8
|
#include "qpixmap.h"
#include "qimage.h"
#include "qapplication.h"
#include "qbitmap.h"
#include "qmatrix.h"
#include "qtransform.h"
#include "qlibrary.h"
#include "qvarlengtharray.h"
#include "qdebug.h"
#include <private/qdrawhelper_p.h>
#include <private/qpixmap_mac_p.h>
#include <private/qpixmap_raster_p.h>
#include <private/qpaintengine_mac_p.h>
#include <private/qt_mac_p.h>
#include <private/qt_cocoa_helpers_mac_p.h>
#include <private/qapplication_p.h>
#include <limits.h>
#include <string.h>
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
Go to the source code of this file.
Macros | |
#define | BEST_BYTE_ALIGNMENT 16 |
#define | COMPTUE_BEST_BYTES_PER_ROW(bpr) (((bpr) + (BEST_BYTE_ALIGNMENT - 1)) & ~(BEST_BYTE_ALIGNMENT - 1)) |
Typedefs | |
typedef CGLError(* | PtrCGLChoosePixelFormat) (const CGLPixelFormatAttribute *, CGLPixelFormatObj *, long *) |
typedef CGLError(* | PtrCGLClearDrawable) (CGLContextObj) |
typedef CGLError(* | PtrCGLCreateContext) (CGLPixelFormatObj, CGLContextObj, CGLContextObj *) |
typedef CGLError(* | PtrCGLDestroyContext) (CGLContextObj) |
typedef CGLError(* | PtrCGLDestroyPixelFormat) (CGLPixelFormatObj) |
typedef CGLError(* | PtrCGLSetCurrentContext) (CGLContextObj) |
typedef CGLError(* | PtrCGLSetFullScreen) (CGLContextObj) |
typedef void(* | PtrglFinish) () |
typedef void(* | PtrglPixelStorei) (GLenum, GLint) |
typedef void(* | PtrglReadBuffer) (GLenum) |
typedef void(* | PtrglReadPixels) (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) |
Variables | |
static PtrCGLChoosePixelFormat | ptrCGLChoosePixelFormat = 0 |
static PtrCGLClearDrawable | ptrCGLClearDrawable = 0 |
static PtrCGLCreateContext | ptrCGLCreateContext = 0 |
static PtrCGLDestroyContext | ptrCGLDestroyContext = 0 |
static PtrCGLDestroyPixelFormat | ptrCGLDestroyPixelFormat = 0 |
static PtrCGLSetCurrentContext | ptrCGLSetCurrentContext = 0 |
static PtrCGLSetFullScreen | ptrCGLSetFullScreen = 0 |
static PtrglFinish | ptrglFinish = 0 |
static PtrglPixelStorei | ptrglPixelStorei = 0 |
static PtrglReadBuffer | ptrglReadBuffer = 0 |
static PtrglReadPixels | ptrglReadPixels = 0 |
static int | qt_pixmap_serial = 0 |
#define BEST_BYTE_ALIGNMENT 16 |
Definition at line 186 of file qpixmap_mac.cpp.
#define COMPTUE_BEST_BYTES_PER_ROW | ( | bpr | ) | (((bpr) + (BEST_BYTE_ALIGNMENT - 1)) & ~(BEST_BYTE_ALIGNMENT - 1)) |
Definition at line 187 of file qpixmap_mac.cpp.
Referenced by QMacPixmapData::resize().
typedef CGLError(* PtrCGLChoosePixelFormat) (const CGLPixelFormatAttribute *, CGLPixelFormatObj *, long *) |
Definition at line 756 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLClearDrawable) (CGLContextObj) |
Definition at line 757 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLCreateContext) (CGLPixelFormatObj, CGLContextObj, CGLContextObj *) |
Definition at line 758 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLDestroyContext) (CGLContextObj) |
Definition at line 759 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLDestroyPixelFormat) (CGLPixelFormatObj) |
Definition at line 760 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLSetCurrentContext) (CGLContextObj) |
Definition at line 761 of file qpixmap_mac.cpp.
typedef CGLError(* PtrCGLSetFullScreen) (CGLContextObj) |
Definition at line 762 of file qpixmap_mac.cpp.
typedef void(* PtrglFinish) () |
Definition at line 763 of file qpixmap_mac.cpp.
Definition at line 764 of file qpixmap_mac.cpp.
typedef void(* PtrglReadBuffer) (GLenum) |
Definition at line 765 of file qpixmap_mac.cpp.
Definition at line 766 of file qpixmap_mac.cpp.
Definition at line 371 of file qpixmap_mac.cpp.
Definition at line 150 of file qpixmap_mac.cpp.
const uchar* qt_get_bitflip_array | ( | ) |
Definition at line 765 of file qimage.cpp.
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 QMacCGContext::QMacCGContext(), qt_mac_convert_iconref(), and QMacWindowSurface::scroll().
void qt_mac_cgimage_data_free | ( | void * | info, |
const void * | memoryToFree, | ||
size_t | |||
) |
Definition at line 91 of file qpixmap_mac.cpp.
Definition at line 1109 of file qpixmap_mac.cpp.
Referenced by QWidgetPrivate::setWindowIcon_sys(), and QMenuPrivate::QMacMenuPrivate::syncAction().
CGImageRef qt_mac_create_imagemask | ( | const QPixmap & | pixmap, |
const QRectF & | sr | ||
) |
Definition at line 1077 of file qpixmap_mac.cpp.
Referenced by QCoreGraphicsPaintEngine::drawPixmap(), and qt_mac_draw_pattern().
void qt_mac_dispose_rgn | ( | RgnHandle | r | ) |
Referenced by qt_bitmapToRegion(), and QMacSmartQuickDrawRegion::~QMacSmartQuickDrawRegion().
|
static |
RgnHandle qt_mac_get_rgn | ( | ) |
|
static |
Definition at line 828 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabScreenRect().
Definition at line 913 of file qpixmap_mac.cpp.
Referenced by QPixmap::grabWindow().
Definition at line 950 of file qpixmap_mac.cpp.
Referenced by QPixmap::grabWindow().
CGImageRef qt_mac_image_to_cgimage | ( | const QImage & | image | ) |
Definition at line 118 of file qpixmap_mac.cpp.
Referenced by QPixmap::grabWindow().
Q_GUI_EXPORT quint32* qt_mac_pixmap_get_base | ( | const QPixmap * | pix | ) |
Definition at line 75 of file qpixmap_mac.cpp.
Referenced by QGLContext::updatePaintDevice().
Q_GUI_EXPORT int qt_mac_pixmap_get_bytes_per_line | ( | const QPixmap * | pix | ) |
Definition at line 83 of file qpixmap_mac.cpp.
Referenced by QGLContext::updatePaintDevice().
|
static |
Definition at line 780 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabScreenRect().
|
static |
Definition at line 768 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 769 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 770 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 771 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 772 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 773 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 774 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 775 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 776 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 777 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 778 of file qpixmap_mac.cpp.
Referenced by qt_mac_grabDisplayRect(), and resolveOpenGLSymbols().
|
static |
Definition at line 73 of file qpixmap_mac.cpp.
Referenced by QMacPixmapData::fromImage(), and QMacPixmapData::resize().