Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::MouseButtonReleasedEvent Class Reference

Event for registering mouse button releases. More...

#include <MouseEvent.h>

Inheritance diagram for Vesper::MouseButtonReleasedEvent:
Vesper::MouseButtonEvent Vesper::Event

Public Member Functions

 MouseButtonReleasedEvent (int button)
 Construct a MouseButtonReleasedEvent with the specified button.
std::string ToString () const override
 Convert the event to a string representation.
Public Member Functions inherited from Vesper::MouseButtonEvent
int GetMouseButton () const
 Get the mouse button associated with the event.
Public Member Functions inherited from Vesper::Event
virtual ~Event ()=default
virtual EventType GetEventType () const =0
 Get the type of the event.
virtual const char * GetName () const =0
 Get the name of the event.
virtual int GetCategoryFlags () const =0
 Get the category flags of the event.
bool IsInCategory (EventCategory category)
 Check if the event is in a specific category.

Additional Inherited Members

Public Attributes inherited from Vesper::Event
bool Handled = false
 Indicates whether the event has been handled.
Protected Member Functions inherited from Vesper::MouseButtonEvent
 MouseButtonEvent (int button)
 Construct a MouseButtonEvent with the specified button.
Protected Attributes inherited from Vesper::MouseButtonEvent
int m_Button

Detailed Description

Event for registering mouse button releases.

Constructor & Destructor Documentation

◆ MouseButtonReleasedEvent()

Vesper::MouseButtonReleasedEvent::MouseButtonReleasedEvent ( int button)
inline

Construct a MouseButtonReleasedEvent with the specified button.

Parameters
buttonThe mouse button associated with the event.
131 : MouseButtonEvent(button) {
132 }
MouseButtonEvent(int button)
Construct a MouseButtonEvent with the specified button.
Definition MouseEvent.h:92

References Vesper::MouseButtonEvent::MouseButtonEvent().

Member Function Documentation

◆ ToString()

std::string Vesper::MouseButtonReleasedEvent::ToString ( ) const
inlineoverridevirtual

Convert the event to a string representation.

Reimplemented from Vesper::Event.

136 {
137 std::stringstream ss;
138 ss << "MouseButtonReleasedEvent: " << GetMouseButton();
139 return ss.str();
140 }
int GetMouseButton() const
Get the mouse button associated with the event.
Definition MouseEvent.h:84

References Vesper::MouseButtonEvent::GetMouseButton().


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