ChessPlusPlus  WIP
cplusplus.com Community Project
chesspp::SfmlEventHandler Class Reference

Base class for all classes wishing to process SFML events. More...

#include <SfmlEventHandler.hpp>

Inheritance diagram for chesspp::SfmlEventHandler:
chesspp::app::AppState chesspp::app::ChessPlusPlusState chesspp::app::StartMenuState

Public Types

using uint = unsigned int
 

Public Member Functions

virtual void onClosed ()
 
virtual void onResized (uint w, uint h)
 
virtual void onLostFocus ()
 
virtual void onGainedFocus ()
 
virtual void onTextEntered (sf::Uint32 unicode)
 
virtual void onKeyPressed (sf::Keyboard::Key key, bool alt, bool control, bool shift, bool system)
 
virtual void onKeyReleased (sf::Keyboard::Key key, bool alt, bool control, bool shift, bool system)
 
virtual void onMouseWheelMoved (int delta, int x, int y)
 
virtual void onLButtonPressed (int x, int y)
 
virtual void onLButtonReleased (int x, int y)
 
virtual void onRButtonPressed (int x, int y)
 
virtual void onRButtonReleased (int x, int y)
 
virtual void onMButtonPressed (int x, int y)
 
virtual void onMButtonReleased (int x, int y)
 
virtual void onMouseButtonPressed (sf::Mouse::Button button, int x, int y)
 
virtual void onMouseButtonReleased (sf::Mouse::Button button, int x, int y)
 
virtual void onMouseMoved (int x, int y)
 
virtual void onMouseEnteredWindow ()
 
virtual void onMouseLeftWindow ()
 
virtual void onJoystickButtonPressed (uint joystickID, uint button)
 
virtual void onJoystickButtonReleased (uint joystickID, uint button)
 
virtual void onJoystickMoved (uint joystickID, sf::Joystick::Axis axis, float position)
 
virtual void onJoystickConnected (uint joystickID)
 
virtual void onJoystickDisconnected (uint joystickID)
 
virtual ~SfmlEventHandler ()=default
 

Detailed Description

Base class for all classes wishing to process SFML events.

All of the member functions in this class are virtual and have a no-op default implementation. Deriving classes need only override the member functions corresponding to the events they are interested in.

Member Typedef Documentation

using chesspp::SfmlEventHandler::uint = unsigned int

Constructor & Destructor Documentation

virtual chesspp::SfmlEventHandler::~SfmlEventHandler ( )
virtualdefault

Member Function Documentation

virtual void chesspp::SfmlEventHandler::onClosed ( )
inlinevirtual
virtual void chesspp::SfmlEventHandler::onGainedFocus ( )
inlinevirtual
virtual void chesspp::SfmlEventHandler::onJoystickButtonPressed ( uint  joystickID,
uint  button 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onJoystickButtonReleased ( uint  joystickID,
uint  button 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onJoystickConnected ( uint  joystickID)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onJoystickDisconnected ( uint  joystickID)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onJoystickMoved ( uint  joystickID,
sf::Joystick::Axis  axis,
float  position 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onKeyPressed ( sf::Keyboard::Key  key,
bool  alt,
bool  control,
bool  shift,
bool  system 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onKeyReleased ( sf::Keyboard::Key  key,
bool  alt,
bool  control,
bool  shift,
bool  system 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onLButtonPressed ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onLButtonReleased ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onLostFocus ( )
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMButtonPressed ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMButtonReleased ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseButtonPressed ( sf::Mouse::Button  button,
int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseButtonReleased ( sf::Mouse::Button  button,
int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseEnteredWindow ( )
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseLeftWindow ( )
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseMoved ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onMouseWheelMoved ( int  delta,
int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onRButtonPressed ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onRButtonReleased ( int  x,
int  y 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onResized ( uint  w,
uint  h 
)
inlinevirtual
virtual void chesspp::SfmlEventHandler::onTextEntered ( sf::Uint32  unicode)
inlinevirtual

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