casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Attributes
casa::PlotMouseEvent Class Reference

Generic mouse event where the canvas is the origin, and the type, button, and location of the event are provided. More...

#include <PlotEvent.h>

Inheritance diagram for casa::PlotMouseEvent:
casa::PlotEvent casa::PlotClickEvent casa::PlotMouseDragEvent casa::PlotMouseMoveEvent casa::PlotMousePressEvent casa::PlotMouseReleaseEvent

List of all members.

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().
PlotCanvascanvas () 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

PlotCanvasm_canvas
Type m_type
Button m_button
PlotCoordinate m_coord

Detailed Description

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.


Member Enumeration Documentation

Mouse button types that we care about.

Enumerator:
SINGLE 
DOUBLE 
CONTEXT 
MIDDLE 

Definition at line 92 of file PlotEvent.h.

Mouse event types.

Enumerator:
CLICK 
PRESS 
RELEASE 
DRAG 
MOVE 

Definition at line 83 of file PlotEvent.h.


Constructor & Destructor Documentation

casa::PlotMouseEvent::PlotMouseEvent ( PlotCanvas canvas,
Type  type,
Button  button,
const PlotCoordinate &  coord 
)

Constructor which takes the originating canvas, type, button, and location.

Destructor.


Member Function Documentation

Button of event.

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 of event.

PlotCoordinate casa::PlotMouseEvent::where ( ) const

Location of event.


Member Data Documentation

Definition at line 125 of file PlotEvent.h.

Definition at line 123 of file PlotEvent.h.

PlotCoordinate casa::PlotMouseEvent::m_coord [protected]

Definition at line 126 of file PlotEvent.h.

Definition at line 124 of file PlotEvent.h.


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