Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Gui::KeyMappingManager::EventBinding Class Reference

Inner class to store event binding. More...

#include <Gui/Utils/KeyMappingManager.hpp>

+ Collaboration diagram for Ra::Gui::KeyMappingManager::EventBinding:

Public Member Functions

 EventBinding ()=default
 
 EventBinding (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, int key, bool wheel=false)
 
 EventBinding (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers=Qt::NoModifier)
 
 EventBinding (int key, Qt::KeyboardModifiers modifiers=Qt::NoModifier)
 
 EventBinding (bool wheel, Qt::KeyboardModifiers modifiers=Qt::NoModifier)
 
bool isMouseEvent ()
 
bool isWheelEvent ()
 
bool isKeyEvent ()
 
bool operator< (const EventBinding &b) const
 

Public Attributes

Qt::MouseButtons m_buttons { Qt::NoButton }
 
Qt::KeyboardModifiers m_modifiers { Qt::NoModifier }
 
int m_key { -1 }
 
bool m_wheel { false }
 

Detailed Description

Inner class to store event binding.

Definition at line 28 of file KeyMappingManager.hpp.

Constructor & Destructor Documentation

◆ EventBinding() [1/5]

Ra::Gui::KeyMappingManager::EventBinding::EventBinding ( )
default

Empty event ctor

◆ EventBinding() [2/5]

Ra::Gui::KeyMappingManager::EventBinding::EventBinding ( Qt::MouseButtons buttons,
Qt::KeyboardModifiers modifiers,
int key,
bool wheel = false )
inline

Specifies all data members.

Note
key should not contains modifier, use modifiers instead. This is not checked.

Definition at line 40 of file KeyMappingManager.hpp.

◆ EventBinding() [3/5]

Ra::Gui::KeyMappingManager::EventBinding::EventBinding ( Qt::MouseButtons buttons,
Qt::KeyboardModifiers modifiers = Qt::NoModifier )
inlineexplicit

Mouse event ctor.

Definition at line 49 of file KeyMappingManager.hpp.

◆ EventBinding() [4/5]

Ra::Gui::KeyMappingManager::EventBinding::EventBinding ( int key,
Qt::KeyboardModifiers modifiers = Qt::NoModifier )
inlineexplicit

Key event ctor.

Definition at line 56 of file KeyMappingManager.hpp.

◆ EventBinding() [5/5]

Ra::Gui::KeyMappingManager::EventBinding::EventBinding ( bool wheel,
Qt::KeyboardModifiers modifiers = Qt::NoModifier )
inlineexplicit

Wheel event ctor.

Definition at line 62 of file KeyMappingManager.hpp.

Member Function Documentation

◆ isKeyEvent()

bool Ra::Gui::KeyMappingManager::EventBinding::isKeyEvent ( )
inline

Definition at line 67 of file KeyMappingManager.hpp.

◆ isMouseEvent()

bool Ra::Gui::KeyMappingManager::EventBinding::isMouseEvent ( )
inline

Definition at line 65 of file KeyMappingManager.hpp.

◆ isWheelEvent()

bool Ra::Gui::KeyMappingManager::EventBinding::isWheelEvent ( )
inline

Definition at line 66 of file KeyMappingManager.hpp.

◆ operator<()

bool Ra::Gui::KeyMappingManager::EventBinding::operator< ( const EventBinding & b) const
inline

Definition at line 314 of file KeyMappingManager.hpp.

Member Data Documentation

◆ m_buttons

Qt::MouseButtons Ra::Gui::KeyMappingManager::EventBinding::m_buttons { Qt::NoButton }

Definition at line 71 of file KeyMappingManager.hpp.

◆ m_key

int Ra::Gui::KeyMappingManager::EventBinding::m_key { -1 }

Definition at line 74 of file KeyMappingManager.hpp.

◆ m_modifiers

Qt::KeyboardModifiers Ra::Gui::KeyMappingManager::EventBinding::m_modifiers { Qt::NoModifier }

Definition at line 72 of file KeyMappingManager.hpp.

◆ m_wheel

bool Ra::Gui::KeyMappingManager::EventBinding::m_wheel { false }

Definition at line 75 of file KeyMappingManager.hpp.


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