mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 19:35:32 +08:00
Improved doxygen docs for draw_cell() parameters in the various contexts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+26
-17
@@ -331,38 +331,47 @@ protected:
|
|||||||
<table border=1>
|
<table border=1>
|
||||||
<tr>
|
<tr>
|
||||||
<td>\p Fl_Table::CONTEXT_STARTPAGE</td>
|
<td>\p Fl_Table::CONTEXT_STARTPAGE</td>
|
||||||
<td> When table, or parts of the table, are about to be redrawn.
|
<td>When table, or parts of the table, are about to be redrawn.<br>
|
||||||
Use to initialize static data, such as font selections.
|
Use to initialize static data, such as font selections.<p>
|
||||||
r/c will be zero, x/y/w/h will be the dimensions of the
|
R/C will be zero,<br>
|
||||||
table's entire data area.
|
X/Y/W/H will be the dimensions of the table's entire data area.<br>
|
||||||
(Useful for locking a database before accessing; see
|
(Useful for locking a database before accessing; see
|
||||||
also visible_cells())</td>
|
also visible_cells())</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>\p Fl_Table::CONTEXT_ENDPAGE</td>
|
<td>\p Fl_Table::CONTEXT_ENDPAGE</td>
|
||||||
<td>When table has completed being redrawn.
|
<td>When table has completed being redrawn.<br>
|
||||||
r/c will be zero, x/y/w/h dimensions of table's data area.
|
R/C will be zero, X/Y/W/H dimensions of table's data area.<br>
|
||||||
(Useful for unlocking a database after accessing)</td>
|
(Useful for unlocking a database after accessing)</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>\p Fl_Table::CONTEXT_ROW_HEADER</td>
|
<td>\p Fl_Table::CONTEXT_ROW_HEADER</td>
|
||||||
<td>Whenever a row header cell needs to be drawn.</td>
|
<td>Whenever a row header cell needs to be drawn.<br>
|
||||||
|
R will be the row number of the header being redrawn,<br>
|
||||||
|
C will be zero,<br>
|
||||||
|
X/Y/W/H will be the fltk drawing area of the row header in the window </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>\p Fl_Table::CONTEXT_COL_HEADER</td>
|
<td>\p Fl_Table::CONTEXT_COL_HEADER</td>
|
||||||
<td>Whenever a column header cell needs to be drawn.</td>
|
<td>Whenever a column header cell needs to be drawn.<br>
|
||||||
|
R will be zero, <br>
|
||||||
|
C will be the column number of the header being redrawn,<br>
|
||||||
|
X/Y/W/H will be the fltk drawing area of the column header in the window </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>\p Fl_Table::CONTEXT_CELL</td>
|
<td>\p Fl_Table::CONTEXT_CELL</td>
|
||||||
<td>Whenever a data cell in the table needs to be drawn.</td>
|
<td>Whenever a data cell in the table needs to be drawn.<br>
|
||||||
|
R/C will be the row/column of the cell to be drawn,<br>
|
||||||
|
X/Y/W/H will be the fltk drawing area of the cell in the window </td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>\p Fl_Table::CONTEXT_RC_RESIZE</td>
|
<td>\p Fl_Table::CONTEXT_RC_RESIZE</td>
|
||||||
<td>Whenever table or row/column is resized or scrolled,
|
<td>Whenever table or row/column is resized or scrolled,
|
||||||
either interactively or via col_width() or row_height().
|
either interactively or via col_width() or row_height().<br>
|
||||||
|
R/C/X/Y/W/H will all be zero.
|
||||||
Useful for fltk containers that need to resize or move
|
<p>
|
||||||
the child fltk widgets.</td>
|
Useful for fltk containers that need to resize or move
|
||||||
|
the child fltk widgets.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
\p row and \p col will be set to the row and column number
|
\p row and \p col will be set to the row and column number
|
||||||
the user clicked on. In the case of row headers, \p col will be \a 0.
|
of the cell being drawn. In the case of row headers, \p col will be \a 0.
|
||||||
In the case of column headers, \p row will be \a 0.
|
In the case of column headers, \p row will be \a 0.
|
||||||
|
|
||||||
<tt>x/y/w/h</tt> will be the position and dimensions of where the cell
|
<tt>x/y/w/h</tt> will be the position and dimensions of where the cell
|
||||||
|
|||||||
Reference in New Issue
Block a user