ShishGL  1.0
A simple modular cross-platform graphics library
Sh::MouseScrollEvent Class Reference

#include <MouseEvent.hpp>

Inheritance diagram for Sh::MouseScrollEvent:
Collaboration diagram for Sh::MouseScrollEvent:

Public Member Functions

 MouseScrollEvent (const Vector2< double > &where, Mouse::ScrollDelta delta, Mouse::ScrollType type)
 
 ~MouseScrollEvent () override=default
 
EventMask mask () override
 
Mouse::ScrollDelta delta () const
 
Mouse::ScrollType type () const
 
bool happen (Listener *listener) override
 
- Public Member Functions inherited from Sh::MouseEvent
 MouseEvent (const Vector2< double > &where)
 
 ~MouseEvent () override=default
 
const Vector2< double > & where () const
 
void setWhere (const Vector2< double > &pos)
 
- Public Member Functions inherited from Sh::Event
bool isReceived () const
 

Protected Attributes

Mouse::ScrollDelta m_delta
 
Mouse::ScrollType m_type
 
- Protected Attributes inherited from Sh::MouseEvent
Vector2< double > m_where
 

Additional Inherited Members

- Protected Member Functions inherited from Sh::Event
 Event ()
 
virtual ~Event ()=default
 

Constructor & Destructor Documentation

◆ MouseScrollEvent()

MouseScrollEvent::MouseScrollEvent ( const Vector2< double > &  where,
Mouse::ScrollDelta  delta,
Mouse::ScrollType  type 
)

◆ ~MouseScrollEvent()

Sh::MouseScrollEvent::~MouseScrollEvent ( )
overridedefault

Member Function Documentation

◆ delta()

Mouse::ScrollDelta MouseScrollEvent::delta ( ) const

◆ happen()

bool MouseScrollEvent::happen ( Listener listener)
overridevirtual

Reimplemented from Sh::MouseEvent.

◆ mask()

EventMask Sh::MouseScrollEvent::mask ( )
inlineoverridevirtual

Reimplemented from Sh::MouseEvent.

◆ type()

Mouse::ScrollType MouseScrollEvent::type ( ) const

Member Data Documentation

◆ m_delta

Mouse::ScrollDelta Sh::MouseScrollEvent::m_delta
protected

◆ m_type

Mouse::ScrollType Sh::MouseScrollEvent::m_type
protected

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