AppendTextColumn appends a text column to t. name is displayed in the table header. textModelColumn is where the text comes from. If a row is editable according to textEditableModelColumn, SetCellValue is called with textModelColumn as the column.
(name string, textModelColumn int, textEditableModelColumn int, textParams *TableTextColumnOptionalParams)
| 88 | // textEditableModelColumn, SetCellValue is called with |
| 89 | // textModelColumn as the column. |
| 90 | func (t *Table) AppendTextColumn(name string, textModelColumn int, textEditableModelColumn int, textParams *TableTextColumnOptionalParams) { |
| 91 | cname := C.CString(name) |
| 92 | defer freestr(cname) |
| 93 | cp := textParams.toLibui() |
| 94 | defer C.pkguiFreeTableTextColumnOptionalParams(cp) |
| 95 | C.uiTableAppendTextColumn(t.t, cname, C.int(textModelColumn), C.int(textEditableModelColumn), cp) |
| 96 | } |
| 97 | |
| 98 | // AppendImageColumn appends an image column to t. |
| 99 | // Images are drawn at icon size, appropriate to the pixel density |