A summary of multiple events. More...
#include <glwindow.h>
Public Types | |
| typedef std::map< int, int > ::const_iterator | key_iterator |
| typedef std::map< int, std::pair< ImageRef, int > >::const_iterator | mouse_iterator |
Public Member Functions | |
| void | clear () |
| Reset the summary. | |
| EventSummary () | |
| bool | should_quit () const |
| Has escape been pressed or the close button pressed? | |
Public Attributes | |
| ImageRef | cursor |
| last seen cursor position from mouse_move | |
| bool | cursor_moved |
| was the cursor moved during the recording of the history | |
| std::map< int, int > | events |
| Generic window events -> frequency. | |
| std::map< int, int > | key_down |
| key->frequency mapping for key presses and releases | |
| std::map< int, int > | key_up |
| std::map< int, std::pair < ImageRef, int > > | mouse_down |
| button->frequency mapping for mouse presses and releases | |
| std::map< int, std::pair < ImageRef, int > > | mouse_up |
A summary of multiple events.
Definition at line 74 of file glwindow.h.
| typedef std::map<int,int>::const_iterator CVD::GLWindow::EventSummary::key_iterator |
Definition at line 78 of file glwindow.h.
| typedef std::map<int,std::pair<ImageRef,int> >::const_iterator CVD::GLWindow::EventSummary::mouse_iterator |
Definition at line 81 of file glwindow.h.
| CVD::GLWindow::EventSummary::EventSummary | ( | ) | [inline] |
Definition at line 75 of file glwindow.h.
| void CVD::GLWindow::EventSummary::clear | ( | ) | [inline] |
Reset the summary.
Definition at line 85 of file glwindow.h.
| bool CVD::GLWindow::EventSummary::should_quit | ( | ) | const |
Has escape been pressed or the close button pressed?
last seen cursor position from mouse_move
Definition at line 89 of file glwindow.h.
was the cursor moved during the recording of the history
Definition at line 91 of file glwindow.h.
| std::map<int,int> CVD::GLWindow::EventSummary::events |
Generic window events -> frequency.
Definition at line 83 of file glwindow.h.
| std::map<int,int> CVD::GLWindow::EventSummary::key_down |
key->frequency mapping for key presses and releases
Definition at line 77 of file glwindow.h.
| std::map<int,int> CVD::GLWindow::EventSummary::key_up |
Definition at line 77 of file glwindow.h.
| std::map<int,std::pair<ImageRef,int> > CVD::GLWindow::EventSummary::mouse_down |
button->frequency mapping for mouse presses and releases
Definition at line 80 of file glwindow.h.
| std::map<int,std::pair<ImageRef,int> > CVD::GLWindow::EventSummary::mouse_up |
Definition at line 80 of file glwindow.h.