CursorInfo Struct Reference

Set the "edit cell" for the table in world coordinates. If the cursor is currently visible and not already at the specified location it will be moved. More...

#include <tableviewer.h>

List of all members.

Public Member Functions

 CursorInfo (size_t r, size_t c, bool d)

Public Attributes

size_t col_
bool displayed_
size_t row_

Detailed Description

Set the "edit cell" for the table in world coordinates. If the cursor is currently visible and not already at the specified location it will be moved.

If the current edit cell has been modified, its modifications will be kept but no action will be triggered as a result of the move to another cell.

Parameters:
vp defines the viewport to draw in
worldRow defines the row in the table to be highlighted
worldCol defines the column in the table to be highlighted
displayed indicates that the screen should be updated to show the highlighting.

Note: the displayed parameter is optional

This function is virtual so that derived classes can detect cursor movement and handle input field editing resetting, flushing data, etc. Information about the table cursor, as opposed to the screen cursor. The row_ and col_ are refer to table entries, not screen locations. The displayed_ member refers to the cursor being actually displayed at this time.

Definition at line 472 of file tableviewer.h.


Constructor & Destructor Documentation

CursorInfo ( size_t  r,
size_t  c,
bool  d 
)

Definition at line 482 of file tableviewer.h.


Member Data Documentation

size_t col_

Definition at line 479 of file tableviewer.h.

bool displayed_

Definition at line 480 of file tableviewer.h.

size_t row_

Definition at line 478 of file tableviewer.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:57:17 2012 for CXXUtilities by  doxygen 1.6.3