libcvd
Public Types | Public Member Functions | Public Attributes | List of all members
CVD::GLWindow::EventSummary Struct Reference

A summary of multiple events. More...

#include <glwindow.h>

Collaboration diagram for CVD::GLWindow::EventSummary:
Collaboration graph
[legend]

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.
 
bool should_quit () const
 Has escape been pressed or the close button pressed?
 

Public Attributes

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
 
std::map< int, int > events
 Generic window events -> frequency.
 
ImageRef cursor
 last seen cursor position from mouse_move
 
bool cursor_moved
 was the cursor moved during the recording of the history
 

Detailed Description

A summary of multiple events.


The documentation for this struct was generated from the following files: