FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::IMouseListener Class Referenceabstract

Listener of mouse events. More...

#include <imouselistener.h>

+ Collaboration diagram for FIFE::IMouseListener:

Public Member Functions

virtual void mouseEntered (MouseEvent &evt)=0
 Called when the mouse has entered into the event source area. More...
 
virtual void mouseExited (MouseEvent &evt)=0
 Called when the mouse has exited the event source area. More...
 
virtual void mousePressed (MouseEvent &evt)=0
 Called when a mouse button has been pressed on the event source area. More...
 
virtual void mouseReleased (MouseEvent &evt)=0
 Called when a mouse button has been released on the event source area. More...
 
virtual void mouseClicked (MouseEvent &evt)=0
 Called when a mouse button is pressed and released (clicked) on the event source area. More...
 
virtual void mouseWheelMovedUp (MouseEvent &evt)=0
 Called when the mouse wheel has moved up on the event source area. More...
 
virtual void mouseWheelMovedDown (MouseEvent &evt)=0
 Called when the mouse wheel has moved down on the event source area. More...
 
virtual void mouseWheelMovedRight (MouseEvent &evt)=0
 Called when the mouse wheel has moved right on the event source area. More...
 
virtual void mouseWheelMovedLeft (MouseEvent &evt)=0
 Called when the mouse wheel has moved left on the event source area. More...
 
virtual void mouseMoved (MouseEvent &evt)=0
 Called when the mouse has moved in the event source area and no mouse button has been pressed. More...
 
virtual void mouseDragged (MouseEvent &evt)=0
 Called when the mouse has moved and the mouse has previously been pressed on the event source. More...
 
virtual ~IMouseListener ()
 

Detailed Description

Listener of mouse events.

To be able to listen for mouse events you must make a class which inherits from this class and implements its functions.

Definition at line 45 of file imouselistener.h.

Constructor & Destructor Documentation

virtual FIFE::IMouseListener::~IMouseListener ( )
inlinevirtual

Definition at line 117 of file imouselistener.h.

Member Function Documentation

virtual void FIFE::IMouseListener::mouseClicked ( MouseEvent evt)
pure virtual

Called when a mouse button is pressed and released (clicked) on the event source area.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseDragged ( MouseEvent evt)
pure virtual

Called when the mouse has moved and the mouse has previously been pressed on the event source.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseEntered ( MouseEvent evt)
pure virtual

Called when the mouse has entered into the event source area.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseExited ( MouseEvent evt)
pure virtual

Called when the mouse has exited the event source area.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseMoved ( MouseEvent evt)
pure virtual

Called when the mouse has moved in the event source area and no mouse button has been pressed.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mousePressed ( MouseEvent evt)
pure virtual

Called when a mouse button has been pressed on the event source area.

NOTE: A mouse press is NOT equal to a mouse click.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseReleased ( MouseEvent evt)
pure virtual

Called when a mouse button has been released on the event source area.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseWheelMovedDown ( MouseEvent evt)
pure virtual

Called when the mouse wheel has moved down on the event source area.

Parameters
evtMouseEvent that describes the event.
virtual void FIFE::IMouseListener::mouseWheelMovedLeft ( MouseEvent evt)
pure virtual

Called when the mouse wheel has moved left on the event source area.

Parameters
evtMouseEvent that describes the event.
virtual void FIFE::IMouseListener::mouseWheelMovedRight ( MouseEvent evt)
pure virtual

Called when the mouse wheel has moved right on the event source area.

Parameters
evtdescribes the event.
virtual void FIFE::IMouseListener::mouseWheelMovedUp ( MouseEvent evt)
pure virtual

Called when the mouse wheel has moved up on the event source area.

Parameters
evtdescribes the event.

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