Radium Engine  1.5.0
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.


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