70 #ifndef QT_NO_GESTURES
79 inline Qt::KeyboardModifiers
modifiers()
const {
return modState; }
80 inline void setModifiers(Qt::KeyboardModifiers amodifiers) { modState = amodifiers; }
89 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers);
92 Qt::KeyboardModifiers modifiers);
97 inline int x()
const {
return p.x(); }
98 inline int y()
const {
return p.y(); }
102 inline Qt::MouseButtons
buttons()
const {
return mouseState; }
106 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers);
111 QT3_SUPPORT_CONSTRUCTOR
QMouseEvent(Type type,
const QPoint &pos, Qt::ButtonState button,
int state);
113 Qt::ButtonState button,
int state);
114 inline QT3_SUPPORT Qt::ButtonState state()
const
115 {
return Qt::ButtonState((mouseState^
b)|
int(
modifiers())); }
116 inline QT3_SUPPORT Qt::ButtonState stateAfter()
const
117 {
return Qt::ButtonState(
int(mouseState)|
int(
modifiers())); }
138 #ifndef QT_NO_WHEELEVENT
143 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
146 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
153 inline int x()
const {
return p.x(); }
154 inline int y()
const {
return p.y(); }
158 inline Qt::MouseButtons
buttons()
const {
return mouseState; }
166 inline QT3_SUPPORT Qt::ButtonState state()
const
167 {
return static_cast<Qt::ButtonState
>(
int(buttons())|
int(
modifiers())); }
178 #ifndef QT_NO_TABLETEVENT
183 XFreeEraser , RotationStylus };
186 int device,
int pointerType, qreal pressure,
int xTilt,
int yTilt,
187 qreal tangentialPressure, qreal rotation,
int z,
188 Qt::KeyboardModifiers keyState,
qint64 uniqueID);
194 inline int x()
const {
return mPos.x(); }
195 inline int y()
const {
return mPos.y(); }
196 inline int globalX()
const {
return mGPos.x(); }
197 inline int globalY()
const {
return mGPos.y(); }
204 inline int z()
const {
return mZ; }
207 inline int xTilt()
const {
return mXT; }
208 inline int yTilt()
const {
return mYT; }
213 int mDev, mPointerType, mXT, mYT,
mZ;
222 #endif // QT_NO_TABLETEVENT
228 bool autorep =
false, ushort
count = 1);
231 int key()
const {
return k; }
232 #ifndef QT_NO_SHORTCUT
241 static QKeyEvent *createExtendedKeyEvent(Type type,
int key, Qt::KeyboardModifiers modifiers,
247 quint32 nativeScanCode()
const;
248 quint32 nativeVirtualKey()
const;
249 quint32 nativeModifiers()
const;
252 inline QT3_SUPPORT_CONSTRUCTOR
QKeyEvent(Type type,
int key,
int ,
254 bool autorep =
false, ushort
count = 1)
255 :
QInputEvent(type,
Qt::KeyboardModifiers(modifiers & (
int)
Qt::KeyButtonMask)), txt(text), k(key),
261 inline QT3_SUPPORT
int ascii()
const
262 {
return (txt.length() ? txt.unicode()->toLatin1() : 0); }
264 inline QT3_SUPPORT Qt::ButtonState stateAfter()
const {
return Qt::ButtonState(
modifiers()); }
310 inline QT3_SUPPORT
bool erased()
const {
return m_erased; }
311 inline QT3_SUPPORT
void setErased(
bool b) { m_erased =
b; }
395 #ifndef QT_NO_CONTEXTMENU
402 Qt::KeyboardModifiers modifiers);
407 inline int x()
const {
return p.x(); }
408 inline int y()
const {
return p.y(); }
421 QT3_SUPPORT Qt::ButtonState state()
const;
428 #endif // QT_NO_CONTEXTMENU
430 #ifndef QT_NO_INPUTMETHOD
452 void setCommitString(
const QString &commitString,
int replaceFrom = 0,
int replaceLength = 0);
470 #endif // QT_NO_INPUTMETHOD
472 #ifndef QT_NO_DRAGANDDROP
483 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
Type type = Drop);
501 const char*
format(
int n = 0)
const;
510 enum Action { Copy, Link,
Move, Private, UserAction = Private };
511 QT3_SUPPORT Action action()
const;
512 inline QT3_SUPPORT
void acceptAction(
bool y =
true) {
if (
y) { drop_action = default_action;
accept(); } }
513 inline QT3_SUPPORT
void setPoint(
const QPoint& np) {
p = np; }
534 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
Type type = DragMove);
559 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers);
583 #endif // QT_NO_DRAGANDDROP
592 inline int x()
const {
return p.x(); }
593 inline int y()
const {
return p.y(); }
605 #ifndef QT_NO_STATUSTIP
618 #ifndef QT_NO_WHATSTHIS
636 QActionEvent(
int type, QAction *action, QAction *before = 0);
639 inline QAction *
action()
const {
return act; }
640 inline QAction *
before()
const {
return bef; }
656 bool openFile(
QFile &file, QIODevice::OpenMode flags)
const;
661 #ifndef QT_NO_TOOLBAR
668 inline bool toggle()
const {
return tog; }
674 #ifndef QT_NO_SHORTCUT
694 #ifndef QT_NO_CLIPBOARD
712 inline Qt::WindowStates
oldState()
const {
return ostate; }
713 bool isOverride()
const;
716 Qt::WindowStates ostate;
721 class Q_GUI_EXPORT QMenubarUpdatedEvent:
public QEvent
724 QMenubarUpdatedEvent(
QMenuBar *
const menBar);
725 inline QMenuBar *menuBar() {
return m_menuBar; }
731 #ifndef QT_NO_DEBUG_STREAM
735 #ifndef QT_NO_SHORTCUT
738 #endif // QT_NO_SHORTCUT
740 class QTouchEventTouchPointPrivate;
754 bool isPrimary()
const;
765 QPointF startScreenPos()
const;
769 QPointF startNormalizedPos()
const;
770 QPointF lastNormalizedPos()
const;
774 QRectF screenRect()
const;
776 qreal pressure()
const;
780 void setState(Qt::TouchPointStates state);
781 void setPos(
const QPointF &pos);
782 void setScenePos(
const QPointF &scenePos);
783 void setScreenPos(
const QPointF &screenPos);
784 void setNormalizedPos(
const QPointF &normalizedPos);
785 void setStartPos(
const QPointF &startPos);
786 void setStartScenePos(
const QPointF &startScenePos);
787 void setStartScreenPos(
const QPointF &startScreenPos);
788 void setStartNormalizedPos(
const QPointF &startNormalizedPos);
789 void setLastPos(
const QPointF &lastPos);
790 void setLastScenePos(
const QPointF &lastScenePos);
791 void setLastScreenPos(
const QPointF &lastScreenPos);
792 void setLastNormalizedPos(
const QPointF &lastNormalizedPos);
793 void setRect(
const QRectF &rect);
794 void setSceneRect(
const QRectF &sceneRect);
795 void setScreenRect(
const QRectF &screenRect);
796 void setPressure(qreal pressure);
800 QTouchEventTouchPointPrivate *d;
802 friend class QApplicationPrivate;
813 Qt::TouchPointStates touchPointStates = 0,
825 inline void setTouchPointStates(Qt::TouchPointStates aTouchPointStates) { _touchPointStates = aTouchPointStates; }
835 friend class QApplicationPrivate;
838 #ifndef QT_NO_GESTURES
840 class QGestureEventPrivate;
853 #ifdef Q_NO_USING_KEYWORD
876 void setWidget(
QWidget *widget);
879 #ifndef QT_NO_GRAPHICSVIEW
884 QGestureEventPrivate *d_func();
885 const QGestureEventPrivate *d_func()
const;
888 friend class QGestureManager;
890 #endif // QT_NO_GESTURES
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
Qt::MouseButtons mouseState
void acceptProposedAction()
GLsizei GLsizei GLchar * source
unsigned int(APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer)
void ignore(const QRect &r)
const QList< QTouchEvent::TouchPoint > & touchPoints() const
QTouchEvent::DeviceType _deviceType
Qt::MouseButton button() const
Qt::TouchPointStates _touchPointStates
Qt::WindowStates oldState() const
Qt::DropActions possibleActions() const
void setDeviceType(DeviceType adeviceType)
Qt::KeyboardModifiers modState
Qt::MouseButtons buttons() const
const QSize & size() const
const QPoint & globalPos() const
void setTouchPoints(const QList< QTouchEvent::TouchPoint > &atouchPoints)
const QPoint & pos() const
Qt::MouseButtons buttons() const
const QPoint & globalPos() const
Qt::DropAction default_action
const QMimeData * mimeData() const
Qt::MouseButtons mouseState
PointerType pointerType() const
const QKeySequence & key()
const QPoint & pos() const
#define QT_BEGIN_NAMESPACE
const QPointF & hiResGlobalPos() const
void setAccepted(bool accepted)
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLenum GLsizei GLenum format
const QRegion & region() const
qreal hiResGlobalX() const
const QSize & oldSize() const
virtual QByteArray encodedData(const char *) const =0
void setWidget(QWidget *awidget)
QList< QTouchEvent::TouchPoint > _touchPoints
qreal hiResGlobalY() const
bool matches(QKeySequence::StandardKey key) const
const QPoint & pos() const
const QPoint & globalPos() const
GLuint GLuint GLsizei count
const QPoint & globalPos() const
Qt::DropAction drop_action
QTouchEvent::DeviceType deviceType() const
const QPoint & pos() const
GLuint GLsizei GLsizei * length
const QPoint & pos() const
void accept(const QRect &r)
qreal tangentialPressure() const
const QPoint & oldPos() const
const QKeySequence & key() const
bool dragAccepted() const
TabletDevice device() const
Qt::KeyboardModifiers keyboardModifiers() const
GLsizei const GLfloat * value
QUpdateLaterEvent(const QRegion &paintRegion)
const QPoint & pos() const
Qt::DropAction dropAction() const
const QPoint & oldPos() const
GLubyte GLubyte GLubyte a
Qt::MouseButtons mouseState
const QRect & rect() const
virtual bool provides(const char *) const
const QPoint & pos() const
Qt::DropAction proposedAction() const
const QRegion & region() const
bool hasExtendedInfo() const
Qt::Orientation orientation() const
void setTouchPointStates(Qt::TouchPointStates aTouchPointStates)
bool operator==(QKeyEvent *e, QKeySequence::StandardKey key)
Q_GUI_EXPORT QDebug operator<<(QDebug, const QEvent *)
bool hasExtendedInfo() const
Qt::TouchPointStates touchPointStates() const
Qt::MouseButtons mouseButtons() const
bool isAutoRepeat() const