mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
39
src/event/CEvent.hpp
Normal file
39
src/event/CEvent.hpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef EVENT_C_EVENT_HPP
|
||||
#define EVENT_C_EVENT_HPP
|
||||
|
||||
#include "event/Types.hpp"
|
||||
#include <cstdint>
|
||||
#include <common/Ref.hpp>
|
||||
|
||||
class CEvent : public TRefCnt {
|
||||
public:
|
||||
// Member variables
|
||||
uint32_t id;
|
||||
void* param;
|
||||
};
|
||||
|
||||
class CCharEvent : public CEvent, public EVENT_DATA_CHAR {
|
||||
public:
|
||||
// Member functions
|
||||
CCharEvent& operator=(const EVENT_DATA_CHAR&);
|
||||
};
|
||||
|
||||
class CKeyEvent : public CEvent, public EVENT_DATA_KEY {
|
||||
public:
|
||||
// Member functions
|
||||
CKeyEvent& operator=(const EVENT_DATA_KEY&);
|
||||
};
|
||||
|
||||
class CMouseEvent : public CEvent, public EVENT_DATA_MOUSE {
|
||||
public:
|
||||
// Member functions
|
||||
CMouseEvent& operator=(const EVENT_DATA_MOUSE&);
|
||||
};
|
||||
|
||||
class CSizeEvent : public CEvent, public EVENT_DATA_SIZE {
|
||||
public:
|
||||
// Member functions
|
||||
CSizeEvent& operator=(const EVENT_DATA_SIZE&);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue