Minsky
|
#include <grid.h>
Public Member Functions | |
virtual | ~Grid ()=default |
virtual Cell & | cell (unsigned row, unsigned col)=0 |
return reference to cell row, col. Reference is valid until next call to cell() More... | |
virtual unsigned | numRows () const =0 |
virtual unsigned | numCols () const =0 |
virtual JustificationStruct::Justification | justification (unsigned col) const |
justification of col More... | |
virtual bool | evenHeight () const |
whether cells all have the same height or not More... | |
void | draw () |
draw the grid More... | |
int | colX (double x) const |
column at x in unzoomed coordinates More... | |
int | rowY (double y) const |
row at y in unzoomed coordinates More... | |
Public Attributes | |
std::vector< double > | rightColMargin |
coordinates of right and bottom margins of cells. Valid after draw() More... | |
std::vector< double > | bottomRowMargin |
Private Member Functions | |
virtual void | moveCursorTo (double x, double y)=0 |
move current cursor to x,y More... | |
CLASSDESC_ACCESS (Grid) | |
Additional Inherited Members | |
![]() | |
enum | Justification { left, right, centre } |
|
virtualdefault |
|
pure virtual |
return reference to cell row, col. Reference is valid until next call to cell()
Implemented in minsky::VariablePane.
|
private |
int minsky::Grid< Cell >::colX | ( | double | x | ) | const |
void minsky::Grid< Cell >::draw | ( | ) |
draw the grid
Definition at line 42 of file grid.cc.
Referenced by minsky::VariablePane::redraw().
|
inlinevirtual |
whether cells all have the same height or not
Reimplemented in minsky::VariablePane.
|
inlinevirtual |
|
privatepure virtual |
move current cursor to x,y
Implemented in minsky::VariablePane.
|
pure virtual |
Implemented in minsky::VariablePane.
|
pure virtual |
Implemented in minsky::VariablePane.
int minsky::Grid< Cell >::rowY | ( | double | y | ) | const |
std::vector<double> minsky::Grid< Cell >::bottomRowMargin |
std::vector<double> minsky::Grid< Cell >::rightColMargin |