QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RMouseEvent Class Reference

A mouse event for a graphics scene. More...

#include <RMouseEvent.h>

Inheritance diagram for RMouseEvent:
RInputEvent

List of all members.

Public Member Functions

 RMouseEvent (QEvent::Type type, const RVector &position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, RGraphicsScene &s, RGraphicsView &v)
 RMouseEvent (const QMouseEvent &mouseEvent, RGraphicsScene &s, RGraphicsView &v)
virtual ~RMouseEvent ()
- Public Member Functions inherited from RInputEvent
RGraphicsScenegetGraphicsScene () const
RGraphicsViewgetGraphicsView () const
RVector getModelPosition () const
RVector getScreenPosition () const
bool isValid () const
 RInputEvent (const RVector &position, RGraphicsScene &s, RGraphicsView &v)
 Copyright (c) 2011-2014 by Andrew Mustun.
void setModelPosition (const RVector &v)
virtual ~RInputEvent ()

Additional Inherited Members

- Protected Attributes inherited from RInputEvent
RVector modelPosition
RGraphicsScenescene
RVector screenPosition
RGraphicsViewview

Detailed Description

A mouse event for a graphics scene.

The coordinates in a mouse event are available as scene coordinates of screen coordinates from the view the event originated.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RMouseEvent::RMouseEvent ( QEvent::Type  type,
const RVector position,
Qt::MouseButton  button,
Qt::MouseButtons  buttons,
Qt::KeyboardModifiers  modifiers,
RGraphicsScene s,
RGraphicsView v 
)
RMouseEvent::RMouseEvent ( const QMouseEvent &  mouseEvent,
RGraphicsScene s,
RGraphicsView v 
)
RMouseEvent::~RMouseEvent ( )
virtual

The documentation for this class was generated from the following files: