![]() |
OpenCV
3.4.16
Open Source Computer Vision
|
This class represents a keyboard event. More...
#include <opencv2/viz/types.hpp>
Public Types | |
| enum | { NONE = 0, ALT = 1, CTRL = 2, SHIFT = 4 } |
| enum | Action { KEY_UP = 0, KEY_DOWN = 1 } |
Public Member Functions | |
| KeyboardEvent (Action action, const String &symbol, unsigned char code, int modifiers) | |
| Constructs a KeyboardEvent. More... | |
Public Attributes | |
| Action | action |
| unsigned char | code |
| int | modifiers |
| String | symbol |
This class represents a keyboard event.
| cv::viz::KeyboardEvent::KeyboardEvent | ( | Action | action, |
| const String & | symbol, | ||
| unsigned char | code, | ||
| int | modifiers | ||
| ) |
Constructs a KeyboardEvent.
| action | Signals if key is pressed or released. |
| symbol | Name of the key. |
| code | Code of the key. |
| modifiers | Signals if alt, ctrl or shift are pressed or their combination. |
| Action cv::viz::KeyboardEvent::action |
| unsigned char cv::viz::KeyboardEvent::code |
| int cv::viz::KeyboardEvent::modifiers |
| String cv::viz::KeyboardEvent::symbol |
1.8.13