casa
$Rev:20696$
|
Generic mouse event where the canvas is the origin, and the type, button, and location of the event are provided. More...
#include <PlotEvent.h>
Public Types | |
enum | Type { CLICK, PRESS, RELEASE, DRAG, MOVE } |
Mouse event types. More... | |
enum | Button { SINGLE, DOUBLE, CONTEXT, MIDDLE } |
Mouse button types that we care about. More... | |
Public Member Functions | |
PlotMouseEvent (PlotCanvas *canvas, Type type, Button button, const PlotCoordinate &coord) | |
Constructor which takes the originating canvas, type, button, and location. | |
virtual | ~PlotMouseEvent () |
Destructor. | |
void * | origin () const |
Overrides PlotEvent::origin(). | |
PlotCanvas * | canvas () const |
Canvas origin of event. | |
Type | type () const |
Type of event. | |
Button | button () const |
Button of event. | |
PlotCoordinate | where () const |
Location of event. | |
Protected Attributes | |
PlotCanvas * | m_canvas |
Type | m_type |
Button | m_button |
PlotCoordinate | m_coord |
Generic mouse event where the canvas is the origin, and the type, button, and location of the event are provided.
Definition at line 80 of file PlotEvent.h.
Mouse button types that we care about.
Definition at line 92 of file PlotEvent.h.
Mouse event types.
Definition at line 83 of file PlotEvent.h.
casa::PlotMouseEvent::PlotMouseEvent | ( | PlotCanvas * | canvas, |
Type | type, | ||
Button | button, | ||
const PlotCoordinate & | coord | ||
) |
Constructor which takes the originating canvas, type, button, and location.
virtual casa::PlotMouseEvent::~PlotMouseEvent | ( | ) | [virtual] |
Destructor.
Button casa::PlotMouseEvent::button | ( | ) | const |
Button of event.
PlotCanvas* casa::PlotMouseEvent::canvas | ( | ) | const |
Canvas origin of event.
Referenced by origin().
void* casa::PlotMouseEvent::origin | ( | ) | const [inline, virtual] |
Overrides PlotEvent::origin().
Implements casa::PlotEvent.
Definition at line 108 of file PlotEvent.h.
References canvas().
Type casa::PlotMouseEvent::type | ( | ) | const |
Type of event.
PlotCoordinate casa::PlotMouseEvent::where | ( | ) | const |
Location of event.
Button casa::PlotMouseEvent::m_button [protected] |
Definition at line 125 of file PlotEvent.h.
PlotCanvas* casa::PlotMouseEvent::m_canvas [protected] |
Definition at line 123 of file PlotEvent.h.
PlotCoordinate casa::PlotMouseEvent::m_coord [protected] |
Definition at line 126 of file PlotEvent.h.
Type casa::PlotMouseEvent::m_type [protected] |
Definition at line 124 of file PlotEvent.h.