|
GL Studio SCECpp Runtime Library
|
#include <gls_text_grid.h>
Public Member Functions | |
| CharAttributeGrid (const GlsUInt32 columns, const GlsUInt32 rows, const GlsText::CharAttribute &initialAttributes) | |
| virtual | ~CharAttributeGrid () |
| const GlsText::CharAttribute & | GetCharAttribute (const GlsUInt32 column, const GlsUInt32 row) const |
| void | SetCharAttribute (const GlsUInt32 column, const GlsUInt32 row, const GlsText::CharAttribute &charAttribute) |
Protected Attributes | |
| const GlsUInt32 | _columns |
| const GlsUInt32 | _rows |
| GlsText::CharAttribute *const | _charAttributes |
Helper class encapsulates a grid of GlsText::CharAttribute 's
| GlsTextGrid::CharAttributeGrid::CharAttributeGrid | ( | const GlsUInt32 | columns, |
| const GlsUInt32 | rows, | ||
| const GlsText::CharAttribute & | initialAttributes | ||
| ) |
Constructor - create an instance
| columns | number of columns in grid ( > 0 ) |
| rows | number of rows in grid ( > 0 ) |
| initialAttributes | initial value of each attribute in the grid |
|
virtual |
Destructor - shall never be called
| const GlsText::CharAttribute& GlsTextGrid::CharAttributeGrid::GetCharAttribute | ( | const GlsUInt32 | column, |
| const GlsUInt32 | row | ||
| ) | const |
get a const ref to the attribute at the given column and row
| column | column in question ( column < _columns ) |
| row | row in question ( row < _rows ) |
| void GlsTextGrid::CharAttributeGrid::SetCharAttribute | ( | const GlsUInt32 | column, |
| const GlsUInt32 | row, | ||
| const GlsText::CharAttribute & | charAttribute | ||
| ) |
set the attribute at the given column and row
| column | column in question ( column < _columns ) |
| row | row in question ( row < _rows ) |
| charAttribute | new value for attribue |
|
protected |
grid array of attributes (_columns*_rows) in row major
|
protected |
number of columns in grid ( > 0 )
|
protected |
number of rows in grid ( > 0 )
1.8.10