diff options
Diffstat (limited to 'wintable/new/coord.h')
| -rw-r--r-- | wintable/new/coord.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/wintable/new/coord.h b/wintable/new/coord.h new file mode 100644 index 0000000..1814e87 --- /dev/null +++ b/wintable/new/coord.h @@ -0,0 +1,31 @@ +// 4 december 2014 + +typedef struct rowcol rowcol; + +struct rowcol { + intptr_t row; + intptr_t column; +}; + +static rowcol clientCoordToRowColumn(struct table *t, POINT pt) +{ + // TODO +} + +// same as client coordinates, but stored in a lParam (like the various mouse messages provide) +static rowcol lParamToRowColumn(struct table *t, LPARAM lParam) +{ + POINT pt; + + pt.x = GET_X_LPARAM(lParam); + pt.y = GET_Y_LPARAM(lParam); + return clientCoordToRowColumn(t, pt); +} + +// returns TRUE if the row is visible and thus has client coordinates; FALSE otherwise +static BOOL rowColumnToClientCoord(struct table *t, rowcol rc, struct POINT *pt) +{ + // TODO +} + +// TODO idealCoordToRowColumn/rowColumnToIdealCoord? |
