casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casa::PlotWheelEvent Class Reference

Event for when the user scrolls the scroll wheel. More...

#include <PlotEvent.h>

Inheritance diagram for casa::PlotWheelEvent:
casa::PlotEvent

Public Member Functions

 PlotWheelEvent (PlotCanvas *canvas, int delta, const PlotCoordinate &c)
 Constructor which takes the originating canvas, the wheel delta, and the location. More...
 
 ~PlotWheelEvent ()
 Destructor. More...
 
void * origin () const
 Overrides PlotEvent::origin(). More...
 
PlotCanvascanvas () const
 Canvas that was scrolled upon. More...
 
int delta () const
 Scroll delta. More...
 
PlotCoordinate where () const
 Where the scroll happened. More...
 
- Public Member Functions inherited from casa::PlotEvent
 PlotEvent ()
 
virtual ~PlotEvent ()
 

Protected Attributes

PlotCanvasm_canvas
 
int m_delta
 
PlotCoordinate m_coord
 

Detailed Description

Event for when the user scrolls the scroll wheel.

The scroll event contains a "delta" which is negative when the user scrolls back and positive when the user scrolls forward. The number indicates how many "clicks" the user scrolled.

Definition at line 183 of file PlotEvent.h.

Constructor & Destructor Documentation

casa::PlotWheelEvent::PlotWheelEvent ( PlotCanvas canvas,
int  delta,
const PlotCoordinate &  c 
)

Constructor which takes the originating canvas, the wheel delta, and the location.

casa::PlotWheelEvent::~PlotWheelEvent ( )

Destructor.

Member Function Documentation

PlotCanvas* casa::PlotWheelEvent::canvas ( ) const

Canvas that was scrolled upon.

Referenced by origin().

int casa::PlotWheelEvent::delta ( ) const

Scroll delta.

void* casa::PlotWheelEvent::origin ( ) const
inlinevirtual

Overrides PlotEvent::origin().

Implements casa::PlotEvent.

Definition at line 193 of file PlotEvent.h.

References canvas().

PlotCoordinate casa::PlotWheelEvent::where ( ) const

Where the scroll happened.

Member Data Documentation

PlotCanvas* casa::PlotWheelEvent::m_canvas
protected

Definition at line 205 of file PlotEvent.h.

PlotCoordinate casa::PlotWheelEvent::m_coord
protected

Definition at line 207 of file PlotEvent.h.

int casa::PlotWheelEvent::m_delta
protected

Definition at line 206 of file PlotEvent.h.


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