CoriEngine
Loading...
Searching...
No Matches
Cori::Core::MouseButtonReleasedEvent Class Referencefinal

#include <MouseEvent.hpp>

Inheritance diagram for Cori::Core::MouseButtonReleasedEvent:
Collaboration diagram for Cori::Core::MouseButtonReleasedEvent:

Public Member Functions

 MouseButtonReleasedEvent (const CoriMouseKeycode button)
std::string ToString () const override
 Returns the name of the Event.
constexpr std::type_index GetEventType () const override
 Gives the return type of the Event.
const char * GetName () const override
 This will give you the string version of EventType.
CoriMouseKeycode GetMouseButton () const
uint32_t GetCategoryFlags () const override
 Gives the flags of particular Event.
bool IsInCategory (const EventCategory category) const
 Checks if the Event is in specific category.

Public Attributes

bool m_Handled = false

Protected Attributes

CoriMouseKeycode m_Button { CORI_MOUSEBUTTON_UNKNOWN }

Detailed Description

Definition at line 67 of file MouseEvent.hpp.

Constructor & Destructor Documentation

◆ MouseButtonReleasedEvent()

Cori::Core::MouseButtonReleasedEvent::MouseButtonReleasedEvent ( const CoriMouseKeycode button)
inlineexplicit

Definition at line 69 of file MouseEvent.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ GetCategoryFlags()

uint32_t Cori::Core::MouseButtonEvent::GetCategoryFlags ( ) const
inlineoverridevirtualinherited

Gives the flags of particular Event.

Note
You shouldn't overload this, it is overloaded by EVENT_CLASS_CATEGORY macro!
Returns
Flag variable that stores all the relevant EventCategory flags.

Implements Cori::Core::Event.

Definition at line 48 of file MouseEvent.hpp.

◆ GetEventType()

std::type_index Cori::Core::MouseButtonReleasedEvent::GetEventType ( ) const
inlineconstexproverridevirtual

Gives the return type of the Event.

Note
You shouldn't overload this, it is overloaded by EVENT_CLASS_TYPE macro!
Returns
Type index of derived event type.

Implements Cori::Core::Event.

Definition at line 76 of file MouseEvent.hpp.

Here is the call graph for this function:

◆ GetMouseButton()

CoriMouseKeycode Cori::Core::MouseButtonEvent::GetMouseButton ( ) const
inlineinherited

Definition at line 47 of file MouseEvent.hpp.

◆ GetName()

const char * Cori::Core::MouseButtonReleasedEvent::GetName ( ) const
inlineoverridevirtual

This will give you the string version of EventType.

Note
You shouldn't overload this, it is overloaded by EVENT_CLASS_TYPE macro!
Returns
EventType name.

Implements Cori::Core::Event.

Definition at line 76 of file MouseEvent.hpp.

◆ IsInCategory()

bool Cori::Core::Event::IsInCategory ( const EventCategory category) const
inlinenodiscardinherited

Checks if the Event is in specific category.

Parameters
categoryBitmask that we need to check presence of.
Returns
True is present, false otherwise.

Definition at line 59 of file Event.hpp.

Here is the call graph for this function:

◆ ToString()

std::string Cori::Core::MouseButtonReleasedEvent::ToString ( ) const
inlineoverridevirtual

Returns the name of the Event.

Note
This is up to the user to overload, by default return the same thing GetName() does.
Returns
Event name.

Reimplemented from Cori::Core::Event.

Definition at line 72 of file MouseEvent.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_Button

CoriMouseKeycode Cori::Core::MouseButtonEvent::m_Button { CORI_MOUSEBUTTON_UNKNOWN }
protectedinherited

Definition at line 53 of file MouseEvent.hpp.

◆ m_Handled

bool Cori::Core::Event::m_Handled = false
inherited

Definition at line 63 of file Event.hpp.


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