Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CEventCanvasKey.hpp
Go to the documentation of this file.
1#ifndef LIBS_GUI_CEVENTCANVASKEY_HPP_
2#define LIBS_GUI_CEVENTCANVASKEY_HPP_
3
5
7{
8public:
9 explicit CEventCanvasKey(const iv::ui::KeysPressed &keysPressed);
10 CEventCanvasKey() = delete;
11 ~CEventCanvasKey() = default;
12 CEventCanvasKey(const CEventCanvasKey &other) = delete;
14 CEventCanvasKey &operator=(const CEventCanvasKey &other) = delete;
16
17 [[nodiscard]] bool isShift() const;
18 [[nodiscard]] bool isDelete() const;
19 [[nodiscard]] bool isControl() const;
20 [[nodiscard]] bool isKeyC() const;
21 [[nodiscard]] bool isKeyV() const;
22 [[nodiscard]] bool isKeyX() const;
23 [[nodiscard]] bool isKeyDown() const;
24 [[nodiscard]] bool isKeyRight() const;
25 [[nodiscard]] bool isKeyUp() const;
26 [[nodiscard]] bool isKeyLeft() const;
27
28 [[nodiscard]] bool isArrowKey() const;
29 [[nodiscard]] bool isCutShortcut() const;
30 [[nodiscard]] bool isCopyShortcut() const;
31 [[nodiscard]] bool isPasteShortcut() const;
32
33private:
35};
36
37#endif /* LIBS_GUI_CEVENTCANVASKEY_HPP_ */
Definition CEventCanvasKey.hpp:7
CEventCanvasKey & operator=(const CEventCanvasKey &other)=delete
bool isCopyShortcut() const
Definition CEventCanvasKey.cpp:69
CEventCanvasKey & operator=(CEventCanvasKey &&other)=delete
bool isDelete() const
Definition CEventCanvasKey.cpp:13
iv::ui::KeysPressed m_keysPressed
Definition CEventCanvasKey.hpp:34
bool isControl() const
Definition CEventCanvasKey.cpp:18
bool isKeyC() const
Definition CEventCanvasKey.cpp:23
CEventCanvasKey(const CEventCanvasKey &other)=delete
~CEventCanvasKey()=default
bool isKeyDown() const
Definition CEventCanvasKey.cpp:38
bool isKeyRight() const
Definition CEventCanvasKey.cpp:43
bool isKeyV() const
Definition CEventCanvasKey.cpp:28
bool isArrowKey() const
Definition CEventCanvasKey.cpp:58
CEventCanvasKey()=delete
bool isKeyLeft() const
Definition CEventCanvasKey.cpp:53
bool isPasteShortcut() const
Definition CEventCanvasKey.cpp:74
CEventCanvasKey(CEventCanvasKey &&other)=delete
bool isKeyX() const
Definition CEventCanvasKey.cpp:33
bool isShift() const
Definition CEventCanvasKey.cpp:8
bool isCutShortcut() const
Definition CEventCanvasKey.cpp:64
bool isKeyUp() const
Definition CEventCanvasKey.cpp:48
Definition interactionsStructs.hpp:24