#include <KoPointerEvent.h>
Fonctions membres publiques | |
KoPointerEvent (QMouseEvent *ev, const QPointF &pnt) | |
KoPointerEvent (QTabletEvent *ev, const QPointF &pnt) | |
KoPointerEvent (QWheelEvent *ev, const QPointF &pnt) | |
void | accept () |
void | ignore () |
Qt::KeyboardModifiers | modifiers () const |
bool | isAccepted () const |
return if the event has been accepted. | |
bool | spontaneous () const |
return if this event was spontaneous (see QMouseEvent::spontaneous()) | |
Qt::MouseButton | button () const |
return button pressed (see QMouseEvent::button()); | |
Qt::MouseButtons | buttons () const |
return buttons pressed (see QMouseEvent::buttons()); | |
const QPoint & | globalPos () |
Return the position screen coordinates. | |
const QPoint & | pos () const |
return the position in widget coordinates | |
qreal | pressure () const |
return the pressure (or a default value) | |
qreal | rotation () const |
return the rotation (or a default value) | |
qreal | tangentialPressure () const |
int | x () const |
Return the x position in widget coordinates. | |
int | xTilt () const |
int | y () const |
Return the y position in widget coordinates. | |
int | yTilt () const |
int | z () const |
int | delta () const |
Qt::Orientation | orientation () const |
Attributs publics | |
const QPointF & | point |
The point in normal space. | |
Attributs privés | |
QTabletEvent * | m_tabletEvent |
QMouseEvent * | m_mouseEvent |
QWheelEvent * | m_wheelEvent |
QInputEvent * | m_event |
Définition à la ligne 39 du fichier KoPointerEvent.h.
KoPointerEvent::KoPointerEvent | ( | QMouseEvent * | ev, | |
const QPointF & | pnt | |||
) | [inline] |
Constructor.
ev | the mouse event that is the base of this event. | |
pnt | the zoomed point in the normal coordinate system. |
Définition à la ligne 48 du fichier KoPointerEvent.h.
KoPointerEvent::KoPointerEvent | ( | QTabletEvent * | ev, | |
const QPointF & | pnt | |||
) | [inline] |
Constructor.
ev | the tablet event that is the base of this event. | |
pnt | the zoomed point in the normal coordiante system. |
Définition à la ligne 63 du fichier KoPointerEvent.h.
KoPointerEvent::KoPointerEvent | ( | QWheelEvent * | ev, | |
const QPointF & | pnt | |||
) | [inline] |
Constructor.
ev | the tablet event that is the base of this event. | |
pnt | the zoomed point in the normal coordiante system. |
Définition à la ligne 78 du fichier KoPointerEvent.h.
void KoPointerEvent::accept | ( | ) | [inline] |
For classes that are handed this event, you can choose to accept (default) this event. Acceptance signifies that you have handled this event and found it useful, the effect of that will be that the event will not be handled to other event handlers.
Définition à la ligne 91 du fichier KoPointerEvent.h.
void KoPointerEvent::ignore | ( | ) | [inline] |
For classes that are handed this event, you can choose to ignore this event. Ignoring this event means you have not handled it and want to allow other event handlers to try to handle it.
Définition à la ligne 98 du fichier KoPointerEvent.h.
Référencé par KoTool::mouseDoubleClickEvent(), KoInteractionTool::mouseMoveEvent(), KoInteractionTool::mouseReleaseEvent(), et KoTool::wheelEvent().
Voici le graphe d'appel pour cette fonction :
Qt::KeyboardModifiers KoPointerEvent::modifiers | ( | ) | const [inline] |
Returns the keyboard modifier flags that existed immediately before the event occurred. See also QApplication::keyboardModifiers().
Définition à la ligne 104 du fichier KoPointerEvent.h.
Référencé par KoInteractionStrategy::createStrategy(), KoPathTool::mouseMoveEvent(), KoInteractionTool::mouseMoveEvent(), KoPathTool::ActivePointHandle::mousePressEvent(), KoPathTool::mousePressEvent(), KoPathTool::mouseReleaseEvent(), et KoInteractionTool::mouseReleaseEvent().
Voici le graphe d'appel pour cette fonction :
bool KoPointerEvent::isAccepted | ( | ) | const [inline] |
bool KoPointerEvent::spontaneous | ( | ) | const [inline] |
return if this event was spontaneous (see QMouseEvent::spontaneous())
Définition à la ligne 110 du fichier KoPointerEvent.h.
Qt::MouseButton KoPointerEvent::button | ( | ) | const [inline] |
return button pressed (see QMouseEvent::button());
Définition à la ligne 113 du fichier KoPointerEvent.h.
Référencé par KoPathTool::mouseMoveEvent(), KoPathTool::ActiveParameterHandle::mousePressEvent(), KoPathTool::ActivePointHandle::mousePressEvent(), et KoPathTool::mousePressEvent().
Voici le graphe d'appel pour cette fonction :
Qt::MouseButtons KoPointerEvent::buttons | ( | ) | const [inline] |
return buttons pressed (see QMouseEvent::buttons());
Définition à la ligne 122 du fichier KoPointerEvent.h.
Référencé par KoInteractionStrategy::createStrategy(), et KoTextTool::mouseMoveEvent().
Voici le graphe d'appel pour cette fonction :
const QPoint& KoPointerEvent::globalPos | ( | ) | [inline] |
const QPoint& KoPointerEvent::pos | ( | ) | const [inline] |
qreal KoPointerEvent::pressure | ( | ) | const [inline] |
qreal KoPointerEvent::rotation | ( | ) | const [inline] |
qreal KoPointerEvent::tangentialPressure | ( | ) | const [inline] |
return the tangential pressure (or a default value) This is typically given by a finger wheel on an airbrush tool. The range is from -1.0 to 1.0. 0.0 indicates a neutral position. Current airbrushes can only move in the positive direction from the neutral position. If the device does not support tangential pressure, this value is always 0.0.
Définition à la ligne 188 du fichier KoPointerEvent.h.
int KoPointerEvent::x | ( | ) | const [inline] |
int KoPointerEvent::xTilt | ( | ) | const [inline] |
Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the x axis. Positive values are towards the tablet's physical right. The angle is in the range -60 to +60 degrees. The default value is 0.
Définition à la ligne 213 du fichier KoPointerEvent.h.
int KoPointerEvent::y | ( | ) | const [inline] |
int KoPointerEvent::yTilt | ( | ) | const [inline] |
Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the x axis. Positive values are towards the tablet's physical right. The angle is in the range -60 to +60 degrees. The default value is 0.
Définition à la ligne 238 du fichier KoPointerEvent.h.
int KoPointerEvent::z | ( | ) | const [inline] |
Returns the z position of the device. Typically this is represented by a wheel on a 4D Mouse. If the device does not support a Z-axis, this value is always zero. This is not the same as pressure.
Définition à la ligne 251 du fichier KoPointerEvent.h.
int KoPointerEvent::delta | ( | ) | const [inline] |
Définition à la ligne 259 du fichier KoPointerEvent.h.
Qt::Orientation KoPointerEvent::orientation | ( | ) | const [inline] |
Définition à la ligne 267 du fichier KoPointerEvent.h.
const QPointF& KoPointerEvent::point |
The point in normal space.
Définition à la ligne 276 du fichier KoPointerEvent.h.
Référencé par KoInteractionStrategy::createStrategy(), KoTextTool::mouseMoveEvent(), KoPathTool::mouseMoveEvent(), KoInteractionTool::mouseMoveEvent(), KoTextTool::mousePressEvent(), MoveTool::mousePressEvent(), KoPathTool::ActivePointHandle::mousePressEvent(), et KoPathTool::mousePressEvent().
QTabletEvent* KoPointerEvent::m_tabletEvent [private] |
Définition à la ligne 279 du fichier KoPointerEvent.h.
QMouseEvent* KoPointerEvent::m_mouseEvent [private] |
Définition à la ligne 280 du fichier KoPointerEvent.h.
QWheelEvent* KoPointerEvent::m_wheelEvent [private] |
Définition à la ligne 281 du fichier KoPointerEvent.h.
QInputEvent* KoPointerEvent::m_event [private] |
Définition à la ligne 282 du fichier KoPointerEvent.h.