casa
5.7.0-16
|
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. More... | |
virtual | ~PlotMouseEvent () |
Destructor. More... | |
void * | origin () const |
Overrides PlotEvent::origin(). More... | |
PlotCanvas * | canvas () const |
Canvas origin of event. More... | |
Type | type () const |
Type of event. More... | |
Button | button () const |
Button of event. More... | |
PlotCoordinate | where () const |
Location of event. More... | |
Public Member Functions inherited from casa::PlotEvent | |
PlotEvent () | |
virtual | ~PlotEvent () |
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 78 of file PlotEvent.h.
Mouse button types that we care about.
Enumerator | |
---|---|
SINGLE | |
DOUBLE | |
CONTEXT | |
MIDDLE |
Definition at line 90 of file PlotEvent.h.
Mouse event types.
Enumerator | |
---|---|
CLICK | |
PRESS | |
RELEASE | |
DRAG | |
MOVE |
Definition at line 81 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 |
Destructor.
Button casa::PlotMouseEvent::button | ( | ) | const |
Button of event.
PlotCanvas* casa::PlotMouseEvent::canvas | ( | ) | const |
Canvas origin of event.
Referenced by origin().
|
inlinevirtual |
Overrides PlotEvent::origin().
Implements casa::PlotEvent.
Definition at line 106 of file PlotEvent.h.
References canvas().
Type casa::PlotMouseEvent::type | ( | ) | const |
Type of event.
PlotCoordinate casa::PlotMouseEvent::where | ( | ) | const |
Location of event.
|
protected |
Definition at line 123 of file PlotEvent.h.
|
protected |
Definition at line 121 of file PlotEvent.h.
|
protected |
Definition at line 124 of file PlotEvent.h.
|
protected |
Definition at line 122 of file PlotEvent.h.