LibreOffice Module slideshow (master) 1
Public Member Functions | List of all members
slideshow::internal::MouseEventHandler Class Referenceabstract

Interface for handling mouse events. More...

#include <mouseeventhandler.hxx>

Inheritance diagram for slideshow::internal::MouseEventHandler:
[legend]

Public Member Functions

virtual ~MouseEventHandler ()
 
virtual bool handleMousePressed (const css::awt::MouseEvent &e)=0
 Handle a mouse button pressed event. More...
 
virtual bool handleMouseReleased (const css::awt::MouseEvent &e)=0
 Handle a mouse button released event. More...
 
virtual bool handleMouseDragged (const css::awt::MouseEvent &e)=0
 Handle a mouse was moved with a pressed button event. More...
 
virtual bool handleMouseMoved (const css::awt::MouseEvent &e)=0
 Handle a mouse was moved event. More...
 

Detailed Description

Interface for handling mouse events.

Classes implementing this interface can be added to an EventMultiplexer object, and are called from there to handle mouse events.

Definition at line 41 of file mouseeventhandler.hxx.

Constructor & Destructor Documentation

◆ ~MouseEventHandler()

virtual slideshow::internal::MouseEventHandler::~MouseEventHandler ( )
inlinevirtual

Definition at line 44 of file mouseeventhandler.hxx.

Member Function Documentation

◆ handleMouseDragged()

virtual bool slideshow::internal::MouseEventHandler::handleMouseDragged ( const css::awt::MouseEvent &  e)
pure virtual

Handle a mouse was moved with a pressed button event.

Parameters
eThe mouse event that occurred. The x,y coordinates of the event are already transformed back to user coordinate space, taking the inverse transform of the view in which the event occurred.
Returns
true, if this handler has successfully processed the pause event. When this method returns false, possibly other, less prioritized handlers are called, too.

Implemented in slideshow::internal::SlideOverlayButton, and slideshow::internal::ShapeManagerImpl.

Referenced by slideshow::internal::EventMultiplexerImpl::mouseDragged().

◆ handleMouseMoved()

virtual bool slideshow::internal::MouseEventHandler::handleMouseMoved ( const css::awt::MouseEvent &  e)
pure virtual

Handle a mouse was moved event.

Parameters
eThe mouse event that occurred. The x,y coordinates of the event are already transformed back to user coordinate space, taking the inverse transform of the view in which the event occurred.
Returns
true, if this handler has successfully processed the pause event. When this method returns false, possibly other, less prioritized handlers are called, too.

Implemented in slideshow::internal::SlideOverlayButton, and slideshow::internal::ShapeManagerImpl.

Referenced by slideshow::internal::EventMultiplexerImpl::mouseMoved().

◆ handleMousePressed()

virtual bool slideshow::internal::MouseEventHandler::handleMousePressed ( const css::awt::MouseEvent &  e)
pure virtual

Handle a mouse button pressed event.

Parameters
eThe mouse event that occurred. The x,y coordinates of the event are already transformed back to user coordinate space, taking the inverse transform of the view in which the event occurred.
Returns
true, if this handler has successfully processed the mouse event. When this method returns false, possibly other, less prioritized handlers can be called, too.

Implemented in slideshow::internal::SlideOverlayButton, and slideshow::internal::ShapeManagerImpl.

Referenced by slideshow::internal::EventMultiplexerImpl::mousePressed().

◆ handleMouseReleased()

virtual bool slideshow::internal::MouseEventHandler::handleMouseReleased ( const css::awt::MouseEvent &  e)
pure virtual

Handle a mouse button released event.

Parameters
eThe mouse event that occurred. The x,y coordinates of the event are already transformed back to user coordinate space, taking the inverse transform of the view in which the event occurred.
Returns
true, if this handler has successfully processed the pause event. When this method returns false, possibly other, less prioritized handlers are called, too.

Implemented in slideshow::internal::SlideOverlayButton, and slideshow::internal::ShapeManagerImpl.

Referenced by slideshow::internal::EventMultiplexerImpl::mouseReleased().


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