7 #ifndef __FWRENDERQT_DATA_EVENT_HPP__ 8 #define __FWRENDERQT_DATA_EVENT_HPP__ 10 #include "fwRenderQt/data/Coord.hpp" 11 #include "fwRenderQt/data/Size.hpp" 36 MouseButtonDoubleClick,
69 m_modifier(NoModifier),
71 m_key(Qt::Key_unknown)
75 bool isAccepted()
const;
76 void setAccepted(
bool accepted);
78 Button getButton()
const;
79 void setButton(Button button);
81 const Coord& getCoord()
const;
82 void setCoord(
const Coord& coord);
87 Modifier getModifier()
const;
88 void setModifier(Modifier modifier);
90 const Size& getOldSize()
const;
91 void setOldSize(
const Size& oldSize);
93 const Size& getSize()
const;
94 void setSize(
const Size& size);
97 void setType(Type type);
113 inline bool Event::isAccepted()
const 120 inline void Event::setAccepted(
bool accepted)
122 m_accepted = accepted;
127 inline Event::Button Event::getButton()
const 134 inline void Event::setButton(Button button)
141 inline const Coord& Event::getCoord()
const 148 inline void Event::setCoord(
const Coord& coord)
155 inline int Event::getKey()
const 162 inline void Event::setKey(
int key)
169 inline Event::Modifier Event::getModifier()
const 176 inline void Event::setModifier(Modifier modifier)
178 m_modifier = modifier;
183 inline const Size& Event::getOldSize()
const 190 inline void Event::setOldSize(
const Size& oldSize)
197 inline const Size& Event::getSize()
const 204 inline void Event::setSize(
const Size& size)
211 inline Event::Type Event::getType()
const 218 inline void Event::setType(Type type)
226 #endif // __FWRENDERQT_DATA_EVENT_HPP__
Manage the current viewport of the fwRenderQt.
The namespace fwRenderQt contains classes for rendering with Qt.
This class manage events on the scene 2D (mouse event, keyboard event , ...).