Qt 4.8
|
#include <private/qcursor_p.h>
#include <private/qpixmap_mac_p.h>
#include <qapplication.h>
#include <qbitmap.h>
#include <qcursor.h>
#include <qevent.h>
#include <string.h>
#include <unistd.h>
#include <AppKit/NSCursor.h>
#include <qpainter.h>
#include <private/qt_cocoa_helpers_mac_p.h>
#include <private/qapplication_p.h>
Go to the source code of this file.
Classes | |
class | QMacAnimateCursor |
Macros | |
#define | QT_USE_APPROXIMATE_CURSORS |
#define | QT_USE_APPROXIMATE_CURSORS |
Functions | |
void * | qt_mac_nsCursorForQCursor (const QCursor &c) |
GrafPtr | qt_mac_qd_context (const QPaintDevice *) |
Returns the QuickDraw CGrafPtr of the paint device. More... | |
void | qt_mac_set_cursor (const QCursor *c) |
void | qt_mac_setMouseGrabCursor (bool set, QCursor *const cursor=0) |
void | qt_mac_update_cursor () |
void | qt_mac_update_cursor_at_global_pos (const QPoint &globalPos) |
void | qt_mac_updateCursorWithWidgetUnderMouse (QWidget *widgetUnderMouse) |
OSWindowRef | qt_mac_window_for (const QWidget *) |
bool | qt_sendSpontaneousEvent (QObject *, QEvent *) |
Variables | |
static QCursorData * | currentCursor = 0 |
static QCursor * | grabCursor = 0 |
static QPointer< QWidget > | lastMouseCursorWidget = 0 |
static QPointer< QWidget > | lastWidgetUnderMouse = 0 |
static int | nextCursorId = Qt::BitmapCursor |
QPointer< QWidget > | qt_button_down |
static bool | qt_button_down_on_prev_call = false |
QCursorData * | qt_cursorTable [Qt::LastCursor+1] |
#define QT_USE_APPROXIMATE_CURSORS |
#define QT_USE_APPROXIMATE_CURSORS |
|
inline |
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.
void qt_mac_set_cursor | ( | const QCursor * | c | ) |
Definition at line 108 of file qcursor_mac.mm.
Referenced by QApplicationPrivate::globalEventProcessor(), qt_mac_mouse_inside_answer_rect(), qt_mac_updateCursorWithWidgetUnderMouse(), QApplication::restoreOverrideCursor(), and QApplication::setOverrideCursor().
void qt_mac_setMouseGrabCursor | ( | bool | set, |
QCursor *const | cursor = 0 |
||
) |
Definition at line 227 of file qcursor_mac.mm.
Referenced by QWidget::grabMouse(), and QWidget::releaseMouse().
void qt_mac_update_cursor | ( | ) |
Definition at line 201 of file qcursor_mac.mm.
Referenced by QApplicationPrivate::globalEventProcessor(), QWidgetPrivate::hide_sys(), onApplicationChangedActivation(), onApplicationWindowChangedActivation(), qt_mac_setMouseGrabCursor(), QApplication::restoreOverrideCursor(), QWidgetPrivate::setCursor_sys(), QApplication::setOverrideCursor(), QWidgetPrivate::show_sys(), and QWidgetPrivate::unsetCursor_sys().
void qt_mac_update_cursor_at_global_pos | ( | const QPoint & | globalPos | ) |
Definition at line 245 of file qcursor_mac.mm.
void qt_mac_updateCursorWithWidgetUnderMouse | ( | QWidget * | widgetUnderMouse | ) |
Definition at line 144 of file qcursor_mac.mm.
Referenced by flipPoint(), QMacWindowFader::performFade(), qt_mac_update_cursor(), and qt_mac_update_cursor_at_global_pos().
OSWindowRef qt_mac_window_for | ( | const QWidget * | ) |
Definition at line 484 of file qwidget_mac.mm.
Definition at line 5779 of file qapplication.cpp.
Referenced by QCursor::setPos().
|
static |
Definition at line 106 of file qcursor_mac.mm.
Referenced by QtWndProc().
|
static |
Definition at line 142 of file qcursor_mac.mm.
Referenced by qt_mac_setMouseGrabCursor(), and qt_mac_updateCursorWithWidgetUnderMouse().
Definition at line 140 of file qcursor_mac.mm.
Definition at line 139 of file qcursor_mac.mm.
|
static |
Definition at line 251 of file qcursor_mac.mm.
Referenced by QCursorData::setBitmap().
Definition at line 188 of file qapplication_mac.mm.
Referenced by qt_mac_update_cursor(), and qt_mac_updateCursorWithWidgetUnderMouse().
|
static |
Definition at line 141 of file qcursor_mac.mm.
Referenced by qt_mac_updateCursorWithWidgetUnderMouse().
QCursorData* qt_cursorTable[Qt::LastCursor+1] |
Definition at line 398 of file qcursor.cpp.
Referenced by QCursorData::setBitmap().